我正在开发一个基于pjsua2库的应用程序.
当我在Oreo下面的任何版本的android上运行项目时,它工作正常,我能够调试应用程序.但当我尝试在我的新手机上调试它有Android版奥利奥时,它给我以下错误
Circular dependency between the following tasks:
:app:checkManifestChangesDebug
\--- :app:instantRunMainApkResourcesDebug
\--- :app:transformClassesAndDexWithShrinkResForDebug
\--- :app:transformDexArchiveWithDexMergerForDebug
+--- :app:preColdswapDebug
| \--- :app:incrementalDebugTasks
| +---:app:transformClassesAndClassesEnhancedWithInstantReloadDexForDebug
| | \--- :app:transformClassesWithInstantRunForDebug
| | \--- :app:checkManifestChangesDebug (*)
| \--- :app:transformClassesWithInstantRunForDebug (*)
\--- :app:transformClassesWithDexBuilderForDebug
+--- :app:preColdswapDebug (*)
\--- :app:transformClassesWithInstantRunForDebug (*)
(*) - details omitted (listed previously)
我认为这是由于Android版本,但我真的需要解决这个问题.
所以,如果有人能提供帮助,我将非常感激
最佳答案
我实际上遇到了同样的问题,我找到了两种方法来绕过这个,等待有一个真正的解决方案来解决这个问题.
1)禁用即时运行:
– >设置/构建,执行,部署/即时运行(取消选中“启用即时运行”)
要么
2)如果在应用程序级别build.gradle中将其设置为true,则禁用shrinkResources
shrinkResources false
我仍然在寻找一种更好的方法来解决这个问题……
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。