score:0
Just in case people (like myself or gladman) still have this problem and couldn't find a solution. With the current version of Gradle you can do this:
Move the file settings.gradle
to the directory My-App
and replace the include
by includeFlat 'MyApp-AndroidLibrary'
. This should fix the problem.
Also compare this question and see this section in the Gradle User Guide for further details.
score:13
You are asking several different questions. Here are some hints:
':MyApp-AndroidLibrary'
is a logical project path, which gets mapped to a physical path based on information provided insettings.gradle
.- A multi-project build can have an arbitrary directory structure, which is configured in
settings.gradle
. No need to move directories around, unless you want to. - Eclipse workspace and Gradle build are separate boundaries. You can have multiple builds in the same workspace.
- When working with libraries built from source, you can either make them part of the same build, or have a separate build for them. In the latter case, you need to make sure to build the library before the app, and exchange artifacts via a Maven or Ivy repository. This could be automated using a CI server and a corporate Maven/Ivy repository. Alternatively, you could trigger the library's build manually on your machine and use a local Maven/Ivy repository.
For more information, check out the Gradle User Guide, especially the chapter on multi-project builds.
Source: stackoverflow.com
Related Query
- Why does Gradle need a settings.gradle file?
- Why does Eclipse generate .class file if there is a syntax error in my Java source file?
- Why does one need the Eclipse Snippets View when editor templates already exist?
- Need to exclude a dependency from eclipse using a gradle build file
- Why does Eclipse update the workbench.xmi file every five minutes?
- Why does blackberry and Android SDK need old versions of Eclipse IDE?
- Why does eclipse break when the .project file is hidden?
- Why does the OSGi model based Eclipse need to restart after install a new plug-in?
- Why does gradle project creation take SO LONG with eclipse STS plugin?
- Why does Connection to SQLite fail although I added jar file to classpath (Eclipse)?
- Why does my .jar file raise exceptions even if my program runs without exceptions in Eclipse?
- Gradle does not copy xml file that store with java file to war file when it assemble
- Why Eclipse does not see .jar file of a library?
- Why does a jar file work differently with and without console?
- Why is the Eclipse jar file generating compile errors when the application does not have errors?
- Why does Eclipse CDT generate a binary file when I make a .out extension file (instead of making a regular text file)
- Why does the jBPM demo run despite the xml file displaying errors?
- Why does importStatic Eclipse template variable need a namespace?
- why does my java code run in eclipse but not as an .exe. or .class file
- Why does Eclipse need to be restarted periodically to prevent performance deterioration?
- Why do I need package line in my class file while coding java in Eclipse?
- Why does eclipse create a class file in bin directory as soon as I create a java file in it?
- Why does my eclipse.ini file not recognize the following command?
- Why I need to add .jar file into libs derectory if libs is being generated?
- Why does Eclipse continually delete my R file when cleaning the project?
- Why does my jar file contains nothing but the META-INF directory, when I deploy my artifact to Nexus by Maven?
- Why does gradle use 2 local caches?
- Why does git stop commit when some other file was changed?
- Why does Eclipse keyboard shortcut for "Run Ant Build" only work for certain file extensions?
- Why does gradle not recognise a local dependency?
More Query from same tag
- Eclipse IDE to AWS - Editor will not connect
- Atmosphere servlet classloading conflict with java
- PyCuda and Eclipse
- Add events to this Calender
- Beginning JavaScript question using the Eclipse IDE
- Android SDK Eclipse Error (Fail to Load Library)
- How best to provide JAXB components in an RCP application
- Poor debugging support for Grails web app in Eclipse
- Am using selenium with java for automating web based application. I couldnt interact with browse button
- STS Dashboard defaulting to old with error
- Debug SplashScreen from Eclipse without generating the Jar
- Trouble Creating REST project using start.spring.io
- How to include .jar library, that is inside java project and make application use this library that is inside application after compilation?
- XSD Validation in Eclipse: "No grammar constraints" warning?
- Eclipse suspends my process in debug mode
- ImageIcon cannot be resolved to a type
- I installed Maven Integration in the Eclipse but I can't create Maven POM file! Why?
- Django unresolved importing in Eclipse
- Eclipse Java version not fully updating
- Eclipse CDT Build Output Parser to work with Microsoft compiler (cl.exe)
- How to turn off automatic syntax checking in Eclipse?
- it's possible to change message when Android application is unfortunately apps has stopped?
- I'm trying use Unity Ads to my game, but doesn't work
- exception: cursor index out of range
- Java - Jena QueryParseException
- getting java.lang.UnsatisfiedLinkError: The specified module could not be found while working with tesseract in windows
- Making a shape move back and forth using EventHandlers in Java
- one program(eclipse Mars) need java 8 and one program(console app) need java 7 what to do?
- Android set custom image off of label text
- java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory