Why Do Packages From Library Module Does Not Exist Upon Compilation, Even When Android Studio Shows No Errors In Code?
I have a library module (AndEngine) inside my libs/AndEngine folder. The code from that compiles fine. In my root settings.gradle file I have this : include ':app:libs:AndEngine'
Solution 1:
Change this line.
compile project('libs:AndEngine')
in
compile project(':app:libs:AndEngine')
In any case it is not a good idea to put a library module inside the app module. I suggest you using this structure:
root
settings.gradle
app
build.gradle
libs
AndEngine
build.gradle
Then in your settings.gradle
include':libs:AndEngine'include':app'
And in your app/build.gradle
compile project(':libs:AndEngine')
Post a Comment for "Why Do Packages From Library Module Does Not Exist Upon Compilation, Even When Android Studio Shows No Errors In Code?"