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:
- Execution failed for task ‘:app:processDebugManifest’
- Andorid: Installation failed due to invalid APK file due to version mismatch
- Failed to resolve: com.github
- Caused by: com.android.builder.dexing.DexArchiveBuilderException: Failed to process D:\….\0.jar
- Perfect solution Error:Execution failed for task ‘: APP:transformClassesWithDexForDebug ‘… Problem
- Android appears java.lang.NoClassDefFoundError A solution to the error
- Install of Android studio_ FAILED_ OLDER_ Solutions to SDK
- Error: package android.support.annotation Does not exist
- As Error:Could not determine the class-path for interface com.android.builder.model.AndroidProject.
- ERROR: Unsupported method: AndroidProject.getVariantNames().
- Errorjava.lang.NullPointerException(no error message)
- ERROR Unsupported method AndroidProject.getVariantNames().
- Error:Execution failed for task ‘:app:transformClassesWithDexForDebug’
- How to Fix Android Error:This Gradle plugin requires Studio 3.0 minimum
- android studio Error Gradle project sync failed. Please fix your project and try again
- Solve gradle project refresh failed
- AndroidStudio sync failed solution
- Some file crashing failed, see logs for details
- Manifest merger failed with multiple errors