Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AndroidStudio Exception when starting android in a libgdx project

I get an exception when running the android gradle task in Android Studio 3.0.1. My project is build with libgdx. My desktop gradle task runs just perfect.

org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':android:validateSigningDebug'.

where the root cause is

Caused by: java.lang.SecurityException: class "org.bouncycastle.jcajce.provider.symmetric.IDEA$Mappings"'s signer information does not match signer information of other classes in the same package

I have absoluty no idea how to fix this.

like image 521
Mewel Avatar asked Dec 05 '17 20:12

Mewel


1 Answers

Mar Dev gave the right hint for me. I did:

cd ~/.android
keytool -genkey -v -keystore debug.keystore -alias androiddebugkey -keyalg RSA -keysize 2048 -validity 10000
keytool -importkeystore -srckeystore debug.keystore -destkeystore debug.keystore -deststoretype pkcs12

Then in AndroidStudio I followed the accepted answer of Where is debug.keystore in Android Studio

like image 190
Mewel Avatar answered Oct 31 '22 13:10

Mewel