Why do packages from library module does not exist upon compilation, even when Android Studio shows no errors in code?

余生颓废 提交于 2019-12-01 20:29:40

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')
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!