specific error message is as follows:
AGPBI: {"kind":"error","text":"Program type already present: android.support.v4.app.FragmentTransitionCompat21$1","sources":[{}],"tool":"D8"}
:app:transformDexArchiveWithExternalLibsDexMergerForDebug FAILED
there are several methods (the last one is available) :
1. Add “multiDexEnabled true” to defaultConfig
android {} : p>
defaultConfig {
multiDexEnabled true
applicationId "com.example.m1571.mycolorfulnews"
minSdkVersion 15
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
this method has no effect on my project
2. Add:
to gradle. Properties Chinaandroid.useAndroidX=true android.enableJetifier=true
this method has no effect on my project
3. Remove conflicting dependencies:
implementation 'com.android.support:appcompat-v7:28.0.0'
delete the above v7 package, you can run
Read More:
- Perfect solution Error:Execution failed for task ‘: APP:transformClassesWithDexForDebug ‘… Problem
- Execution failed for task ‘:app:processDebugManifest’
- Quick solution org.gradle.api . tasks.TaskExecutionException : Execution failed for task ‘: app:compileJava ‘
- Error:Execution failed for task ‘:app:transformClassesWithDexForDebug’
- To solve the execution failed for task ‘: app:transformDexArchiveWithDexMergerForDebug ‘
- Execution failed for task ‘:app:mergeDebugResources’.
- Execution failed for task ‘:app:stripDebugDebugSymbols‘.
- Execution failed for task ‘:app:processDebugManifest’.
- Error:Execution failed for task’:app:processDebugResources’. Personally resolved
- Execution failed for task ‘:app:installDebug’.
- Android: How to Solve Execution failed for task ‘:app:compileDebugJavaWithJavac‘. > javax/xml/bind/JAXBException
- Execution failed for task :Test:lintVitalRelease/Lint found fatal errors while assembling a release
- Error code 1 error resolution (NPX create react app my app execution reports an error)
- DB2 timed task execution stored procedure cannot complete scheduler thread’s initialization
- Hive execution task report cannot find main class error
- No task available solution
- Session app error launching activity solution