I am trying to write a script file that builds my apk and uploads it to Crashlytics beta without success.
echo "\n > cordova build android\n" cordova build android --release echo "\n > signing apk\n" jarsigner \ -storepass $STOREPASS \ -sigalg SHA1withRSA \ -digestalg SHA1 \ -keystore $KEYSTORE \ $APK_PATH \ $NAME mkdir -p releases zipalign -f -v 4 \ $APK_PATH \ $TARGET_PATH
The script works fine, but when I run
java -jar scripts/crashlytics-devtools.jar \ -projectPath $PROJECT_PATH \ -androidManifest $PROJECT_PATH/AndroidManifest.xml \ -androidRes $PROJECT_PATH/res \ -androidAssets $PROJECT_PATH/assets \ -apiKey $FABRIC_API_KEY \ -apiSecret $FABRIC_BUILD_SECRET \ -uploadDist $APK \ -verbose
it gives me Exception in thread "main" com.crashlytics.tools.android.DeveloperTools$PluginException: Crashlytics halted compilation because it can't extract Crashlytics build info from the APK
Any help?
source share