Cannot build, After add Admob Free plugin.
multiDexEnabled issue resolved by adding "multiDexEnabled true".
Now, Problem:
Execution failed for task ':transformClassesWithJarMergingForRelease' ......
duplicate entry: com/google/android/gms/internal/zzalj.class
Created a Repo: https://github.com/amin2009/conf102
Related
I am creating a simple app that consist of sms retrieving and firebase mobile OTP modules, everything works fine only on app running but could not build apk for output.
Errors:
Execution failed for task ':sms:verifyReleaseResources'.
A problem occurred evaluating root project 'firebase_auth'.
I have no idea for first error, but the second one is most related to firebase_core plugin. but i have added it too. let me know where i made mistakes.
I have tried all possible ways that is, cleaning build and reinstalled the plugins noting works for me.
installed plugins:
sms: ^0.2.4,
firebase_auth: ^0.19.0,
firebase_core: ^0.6.0,
I can't publish my App Bundle to Google PlayStore via Google Cloud and CodeMagic.io.
The Error is below:
Publishing failed :| Failed to publish: The bundle targets unrecognized languages: fb
Previously, this AppBundle build using Flutter.
any idea how to solve this error?
Update:
If I choose to build APK instead of App Bundle. it will succeed to be uploaded to the play store.
Although the size increase from 23 MB to 31 MB...
Thank You
I ran into the same issue. I added this to the app build.gradle under the defaultConfig:
defaultConfig {
resConfigs "en"
}
When I run the project on emulator or a real device it runs perfect.
but when I try to build a release with
flutter build apk --release
or
flutter build appbundle
it gives me this error
*******************************************************************************************
The Gradle failure may have been because of AndroidX incompatibilities in this Flutter app.
See URL for more information on the problem and how to fix it.
*******************************************************************************************
Gradle task assembleRelease failed with exit code 1
although I tried this
I had a similar error and put the following lines in gradle.properties file in /android folder of my project.
android.enableJetifier=true
android.useAndroidX=true
But according to comments section, main problem is not the AndroidX warning but a problem in assembleBuild task of Gradle regarding a library.
Looks like the question is not about AndroidX.
I was using fiirebase_admob dependency 0.5.5 which was working great but when I went to release the apk version by flutter build apk --release it gave me error so I had to change the dependency from 0.5.5 to 0.8.0+4 and add API 'com.google.firebase:firebase-ads:16.0.1' in dependency of build>gradle this gave me the app-release.apk but causing app is crashing on startup. So, what should I change my dependency to get the app running smoothly?.
look for the file project.properties and modify the dependencies there with the versions that the error marks, the file build> gradle is modified each time the packager executes, so it does not keep them.
Platform: Phonegap CLI 7.1.0 crosswalk 2.2.0
Until now I've been building with success using minsdkversion=15 in my config.xml file.
I tried to change minsdkversion from 15 to 26 in my config.xml (Google starting from august will require it) and I got this error:
uses-sdk:minSdkVersion 15 cannot be smaller than version 16 declared in library [org.xwalk:xwalk_core_library:22.52.561.4] /build/intermediates/exploded-aar/org.xwalk/xwalk_core_library/22.52.561.4/AndroidManifest.xml
so I tried to understand which plugin was in error and I found cordova-facebook-plugin4 (removing it the building succeeds)
So I wrote to author of the plugin who suggested to me to fork the project and to change minsdkversion in plugin.xml from 15 to 26. I did it and I changed my config.xml in order to use that git repo.
The build fails with this error:
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':transformClassesWithJarMergingForRelease'.
com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/google/zxing/aztec/AztecDetectorResult.class
What it means? how to fix the problem?
please help me
The most common cause of this problem is that cordova will overwrite your platforms/android/AndroidManifest.xml file when you do a build. Check if your minSdkVersion in the manifest keeps your change to 26 after you do a build. If it doesn't, you'll want to add the following to the build command:
-- --gradleArg=-PcdvMinSdkVersion=26
So for cordova it would be:
cordova build android -- --gradleArg=-PcdvMinSdkVersion=26
Undo your forking of the plugin, add the original one back in, and give that build command a shot.