GithubHelp home page GithubHelp logo

Comments (6)

cimtiaz avatar cimtiaz commented on September 15, 2024 17

You are running gradle command in wrong directory, it is clear from error that settings.gradle is not found in current directory.
Please step back to project root and run the gradle command.

Solution:
PS C:\Users\Zach\Documents\gmailListServ> gradle build

Error:

Project directory 'C:\Users\Zach\Documents\gmailListServ\src\main\java' is not part of the build defined by settings file 'C:\Users\Zach\Documents\gmailListServ\settings.gradle'. If this is an unrelated build, it must have its own settings file.

from java-samples.

Twinamatsiko-Benon avatar Twinamatsiko-Benon commented on September 15, 2024 1

Project directory 'C:\Users\Twine\AndroidStudioProjects\Travelinggs' is not part of the build defined by settings file 'C:\Users\Twine\AndroidStudioProjects\settings.gradle'. If this is an unrelated build, it must have its own settings file.

Help me out members

from java-samples.

sqrrrl avatar sqrrrl commented on September 15, 2024

From the error, looks like you've made changes. There's no project named gmailListServe in this repo.

Without additional information about what you did (e.g. what do your settings.gradle and build.gradle files look like) we can't provide any help.

from java-samples.

Tetrisman avatar Tetrisman commented on September 15, 2024

I'm getting The same error when I try to follow the procedure mentioned here https://developers.google.com/admin-sdk/directory/v1/quickstart/java

In my case this is the information that I have on the files that you mentioned
$ cat build.gradle
/*

mainClassName = 'AdminSDKDirectoryQuickstart'
sourceCompatibility = 1.7
targetCompatibility = 1.7
version = '1.0'

repositories {
mavenCentral()
}

dependencies {
compile 'com.google.api-client:google-api-client:1.20.0'
compile 'com.google.oauth-client:google-oauth-client-jetty:1.20.0'
compile 'com.google.apis:google-api-services-admin-directory:directory_v1-rev53-1.20.0'
}

$cat settings.gradle

/*

rootProject.name = 'AdminSDKDirectoryQuickstart'

what I'm trying to is use is the below command for the file AdminSDKDirectoryQuickstart.java
$gradle run

  • What went wrong:
    Project directory '/home/user/Project/src/main/java' is not part of the build defined by settings file '/home/user/Project/settings.gradle'. If this is an unrelated build, it must have its own settings file.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 0s

from java-samples.

erickoledadevrel avatar erickoledadevrel commented on September 15, 2024

@Tetrisman Let's follow up in issue #76.

from java-samples.

wovwlll avatar wovwlll commented on September 15, 2024

I also encountered a similar problem. The gradle file in the Android directory of the project is not generated by the setting.gradle configuration. What should I do if I change it

from java-samples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.