且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Android Studio 3.0:无法解决模块依赖性

更新时间:2023-08-22 09:11:34

解决了我的问题.

我应该使用Apply插件:com.android.library创建了测试模块,该应用模块使用了comm.android.application.

I created test module using apply plugin: 'com.android.application' when it should be using apply plugin: 'com.android.library'.

尽管一个项目中可以有多个应用程序模块,但是您的应用程序模块不能依赖于其他应用程序模块.

While you can have multiple application modules in a project, you cannot have application modules depend on other application modules.