0

I upgraded Android studio and then I tried to adapt for my project to Admob but I have this error: enter image description here My build config compile sdk version like this;

android { compileSdkVersion 28 defaultConfig { applicationId "samples.hasan.deneme.com" minSdkVersion 21 targetSdkVersion 26 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" vectorDrawables.useSupportLibrary = true } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } } enter image description here

hkyaaa
  • 100
  • 9
  • Add this in your application tag in Manifest file: tools:replace="android:appComponentFactory" – Erselan Khan Apr 05 '20 at 11:46
  • between which tags will be written? @ErselanKhan – hkyaaa Apr 05 '20 at 12:49
  • Application tag where you define your application name, icon, theme etc – Erselan Khan Apr 05 '20 at 12:52
  • @ErselanKhan Error changed; :app:transformDexArchiveWithExternalLibsDexMergerForDebug FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'. > java.lang.RuntimeException: java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. * Get more help at https://help.gradle.org BUILD FAILED in 51s – hkyaaa Apr 05 '20 at 13:15

0 Answers0