Generate and upload key to sign flutter app on Intellij? - android

I'm using Intellij IDE to work on a flutter app.
I need to sign my app.
Everyone give example on how to do so on Android Studio.
How to do it without IDE ? On Intellij IDE ?
Context:
flutter build appbundle --debug-> success Built build/app/outputs/bundle/debug/app-debug.aab.
flutter build appbundle -> crash
* What went wrong:
Execution failed for task ':app:signReleaseBundle'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.FinalizeBundleTask$BundleToolRunnable
> kotlin.KotlinNullPointerException (no error message)

Related

I can't build appbundle with error "Execution failed for task ':app:signReleaseBundle'."

The error below occurs when I try "flutter build appbundle".
What went wrong:
Execution failed for task ':app:signReleaseBundle'.
A failure occurred while executing com.android.build.gradle.internal.tasks.FinalizeBundleTask$BundleToolRunnable
java.lang.NullPointerException (no error message)
I made this project with flutter,
so I made the release key in android studio menu build -> "generate signed bundle(apk)" (to use it, i had opened android module in android studio)
and the below is my code.
app build.gradle
key.properties
my project tree
you can see myreleasekey.jks in android\app,
and key.properties in android.
so I don't know what is the cause ...
thank you.

ionic capacitor build android fail processDebugGoogleServices missing

I work with ionic. I successfully make and build an app to ios with capacitor, but when I run command ionic cordova build android it run 'Success Buid'.
But when I run app from Android Studio throw error.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':capacitor-cordova-android-plugins:processDebugGoogleServices'.
> No matching client found for package name 'capacitor.android.plugins'
I put google-info.json to the app. Add line to app build.gradle and projek build.gradle.
Fixed for me by renaming package_name to : capacitor.android.plugins in google-services.json

Jenkins build failed with crashlytics

Trying to build android in Jenkins with crashlytics but every-time the error message is coming in log as
"FAILURE: Build failed with an exception.
Where:
Build file
What went wrong:
A problem occurred evaluating project ':app'.
Failed to apply plugin [id 'io.fabric']
Could not create plugin of type 'CrashlyticsPlugin'.
Could not initialize class com.crashlytics.tools.gradle.CrashlyticsPlugin"
Please help, tried this way also "Android Jenkins build fails with crashlytics"
It did not work.
You have to install Crashlytics jar manuel into Jenkins. From here.
I guess the plug-in is facing some problems when downloading this file from Amazon.
You can check here.

Android Studio 3.0 Beta 2 generate Release build Execution failed for task ':app:processReleaseResource'

I won't able to generate release build in android studio 3.0 Beta 2,
Execution failed with below error
Error:Execution failed for task ':app:processReleaseResources'.
java.io.IOException: Internal error: Symbol file with package cannot be empty.
Issue is resolved in Android studio beta-4
Just update your android studio and related build script.

Gradle error: Execution failed for task ':crashlyticsGenerateSymbolsArmRelease'. > Crashlytics Developer Tools error

I had setup crashlytics to get ndk crashes for my Android app. Crashes are getting recorded in crashlytics but I am not getting the line numbers.
Went through: https://support.crashlytics.com/knowledgebase/articles/605190-missing-line-numbers-in-native-crashes
I am getting the following error on running below command:
./gradlew crashlyticsUploadSymbolsArmRelease
What went wrong:
Execution failed for task ':crashlyticsGenerateSymbolsArmRelease'.
Crashlytics Developer Tools error.
I have tried various solutions but nothing is helping.
In case you are still looking: I had the same problem and found the correct command in the Gradle view:
app->Tasks->other->crashlyticsUploadSymbolsMYAPPVARIANTNAME
You can search the gradle tasks in the gradle window as well by just starting to type:

Categories

Resources