fastlane - cant publish to google playstore - flutter

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"
}

Related

Execution failed for task ':app:packageRelease' in Flutter

Having a lot of issues with building the release apk in flutter.
Here is my key.properties
Here is my Gradle.
Please read this instruction from a flutter to release android apk : here error is related to key.jks file. please follow steps carefully
also watch this video from youtube : how to release android apk

Crashlytics and obfuscated Flutter stack traces

Is there a way to send symbols from flutter build appbundle --release --obfuscate --split-debug-info=... to Crashlytics for automatic deobfuscation?
Mapping files to deobfuscate Android stacktraces on Crashlytics can be uploaded automatically by configuring firebaseCrashlytics.mappingFileUploadEnabled to true in your app/build.gradle as mentioned in the documentation.
However, if you're referring to Android NDK crash reports, here's the guide that you can follow to automatically upload symbols.

choose flutter build apk release?(abi)

i need upload my release apk generated by flutter to the Google play store. When i run "flutter build apk --release" the response is and apk but the size is 21MB(Based in the documentation is a FAT apk that includes all abi's apk).
javier.hospital#COBOADM-UD-P01 Flutter-APP-BODYTECH % flutter build apk --release
Building without sound null safety
For more information see https://dart.dev/null-safety/unsound-null-safety
Running Gradle task 'assembleRelease'...
Running Gradle task 'assembleRelease'... Done 20,5s
✓ Built build/app/outputs/flutter-apk/app-release.apk (21.9MB).
I found out othe command "flutter build apk --split-per-abi", this commands generate 3 apks with 8mb size. I think that is a good option beacause i need that the size of my application are small.
javier.hospital#COBOADM-UD-P01 Flutter-APP-BODYTECH % flutter build apk --split-per-abi
Building without sound null safety
For more information see https://dart.dev/null-safety/unsound-null-safety
Running Gradle task 'assembleRelease'...
Running Gradle task 'assembleRelease'... Done 12,7s
✓ Built build/app/outputs/flutter-apk/app-armeabi-v7a-release.apk (8.4MB).
The problem is when i try sign any of this 3 apks, it's not possible to sign an the code error is "jarsigner: unable to sign jar: java.util.zip.ZipException: invalid entry compressed size (expected 5654 but got 5205 bytes)".
My question is that when i upload the first apk (21MB) to google play, the user download only 8mb apk?. or is neccesary upload 3 abi apks for the user to download only 8 mb?
In which case it is so, what way is there to sign an apk generated only for a specific abi?.
Thanks for your help!
Uploading the App bundle is the recommended method by Google.
I always use the App bundle to upload my Apps to the playstore.
My question is that when i upload the first apk (21MB) to google play,
the user download only 8mb apk?
Yes the user only has to download an 8MB file
Read More about App bundle here https://developer.android.com/platform/technology/app-bundle

Fastlane upload_to_play_store returns an error `apkNotificationMessageKeyBundleRequiresPlaySigning`

Fastlane builds a bundle and I can upload it manually, but if I run
upload_to_play_store(
track: 'internal',
package_name: "package-name",
skip_upload_apk: true
)
it throws the following error:
Google Api Error: apkNotificationMessageKeyBundleRequiresPlaySigning:
For uploading an AppBundle you must be enrolled in Play Signing.
The Play Signing is enabled, I released a version after I enabled it. What may be a reason for the error?
Enrolling in the new singing option through Google Play Console would be best.

how to resolve installation problem in device ionic 4

I'm trying install .APK in my divece but I get the following error "app was not installed", I'm using ionic v 4 and my divece is android 6.0.1, any idea ?
Use this command for V4 :
ionic cordova build --release android
This will generate unsigned apk file under
platforms/android/build/outputs/apk/your-project-name.apk
And simply download apk file to your phone and install it. More details can be found here
I faced this error before and the cause was that using unsigned APK or the device contains app with same "App Id"
So to Solve it, Please Follow this instructions:
Use this Command
ionic cordova build android --prod
Then Try to remove any other apps from your phone that may have same app id (any old versions or sample apps) or change your app id from config.xml (before build of course)
<widget id="com.android.YOUR_UNIQE_APP_ID" ... >