[英]Suddenly receiving the below error in Android Studio. The app was working fine then when I re-opened it I got this error. Anyone know why?
[英]I got this error when I tried to run my app in android studio. Does anyone know how to solve this problem?
以下任務之間的循環依賴關系:
: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)
這是我的build.gradle
buildTypes {
debug {
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
debuggable true
}
customDebuggableBuildType {
debuggable true
}
release {
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
debuggable false
signingConfig signingConfigs.config
}
}
我試圖將可調試的true更改為false,但可以,但是無法提前進行調試Thx
當您在RelativeLayout
添加2個視圖而第一個視圖依賴於第二個視圖,而第二個視圖依賴於第一個視圖時,會顯示此常見錯誤。 例如,當您將第一個視圖toRightOf="@+id/secondView"
secondView和第二個視圖toRightOf="@+id/firstView"
第一個視圖時,這將導致此錯誤。
您下面的兩個gradle任務彼此依賴。
:app:checkManifestChangesDebug
:app:transformClassesWithInstantRunForDebug
但是,這在Gradle構建系統中是不允許的。 您應該刪除此循環依賴項。
一種更簡單的解決方案是禁用即時運行功能,請參閱: https : //developer.android.com/studio/run/#disable-ir
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.