大佬教程收集整理的这篇文章主要介绍了Android项目中的循环依赖,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
我正在开发一个基于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
以上是大佬教程为你收集整理的Android项目中的循环依赖全部内容,希望文章能够帮你解决Android项目中的循环依赖所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。