Ionic Execution failed for task ':app:transformClassesWithDesugarForRelease'
I get this error when I try to build Android on my laptop and in Ionic's Pro dashboard.
[04:27:55]: ▸ FAILURE: Build failed with an exception.
[04:27:55]: ▸ * What went wrong:
[04:27:55]: ▸ Execution failed for task ':app:transformClassesWithDesugarForRelease'.
[04:27:55]: ▸ > com.android.build.api.transform.TransformException: java.lang.RuntimeException: java.lang.RuntimeException: com.android.ide.common.process.ProcessException: Error while executing java process with main class com.google.devtools.build.android.desugar.Desugar with arguments {--input /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/43.jar --output /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/desugar/release/45.jar --input /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/49.jar --output /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/desugar/release/51.jar --input /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/37.jar --output /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/desugar/release/39.jar --input /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/3.jar --output /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/desugar/release/5.jar --input /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/28.jar --output /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/desugar/release/30.jar --input /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/47.jar --output /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/desugar/release/49.jar --input /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/19.jar --output /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/desugar/release/21.jar --input /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/44.jar --output /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/desugar/release/46.jar --classpath_entry /builds/user/anonymous-social/platforms/android/CordovaLib/build/intermediates/intermediate-jars/release/classes.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/classes/release --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/0.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/1.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/2.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/3.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/4.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/5.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/6.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/7.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/8.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/9.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/10.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/11.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/12.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/13.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/14.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/15.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/16.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/17.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/18.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/19.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/20.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/21.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/22.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/23.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/24.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/25.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/26.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/27.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/28.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/29.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/30.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/31.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/32.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/33.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/34.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/35.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/36.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/37.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/38.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/39.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/40.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/41.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/42.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/43.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/44.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/45.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/46.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/47.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/48.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/49.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/50.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/51.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/52.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/53.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/54.jar --bootclasspath_entry /opt/android-sdk/platforms/android-27/android.jar --bootclasspath_entry /opt/android-sdk/platforms/android-27/optional/org.apache.http.legacy.jar --bootclasspath_entry /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/resources.jar --bootclasspath_entry /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/rt.jar --bootclasspath_entry /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/jsse.jar --bootclasspath_entry /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/jce.jar --bootclasspath_entry /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/charsets.jar --min_sdk_version 19 --nodesugar_try_with_resources_if_needed --desugar_try_with_resources_omit_runtime_classes}
For the entire build details I made a pastebin: https://pastebin.com/QmJ6Tee3
I noticed that if I go into Platforms > android > project.properties
my details are:
target=android-27
android.library.reference.1=CordovaLib
android.library.reference.2=app
cordova.gradle.include.1=cordova-android-firebase-gradle-release/bemochi-cordova-android-firebase-gradle-release.gradle
cordova.system.library.1=com.android.support:support-v4:24.1.1+
cordova.gradle.include.2=cordova-plugin-firebase/bemochi-build.gradle
cordova.system.library.2=com.google.gms:google-services:+
cordova.system.library.3=com.google.android.gms:play-services-tagmanager:+
cordova.system.library.4=com.google.firebase:firebase-core:+
cordova.system.library.5=com.google.firebase:firebase-messaging:+
cordova.system.library.6=com.google.firebase:firebase-crash:+
cordova.system.library.7=com.google.firebase:firebase-config:+
cordova.system.library.8=com.google.firebase:firebase-perf:+
cordova.system.library.9=com.google.android.gms:play-services-analytics:16.0.3
cordova.system.library.10=com.google.android.gms:play-services-location:15.+
cordova.system.library.11=com.android.support:support-v4:26.+
cordova.system.library.12=com.android.support:appcompat-v7:26.+
cordova.gradle.include.3=me.tonny.cordova.plugins.multidex/bemochi-build.gradle
I'm not sure what I'm doing wrong.
I'm not sure if this helps, but my build.gradle
has this section:
allprojects {
repositories {
jcenter()
maven {
url "https://maven.google.com"
}
}
//This replaces project.properties w.r.t. build settings
project.ext {
defaultBuildToolsVersion="27.0.1" //String
defaultMinSdkVersion=19 //Integer - Minimum requirement is Android 4.4
defaultTargetSdkVersion=27 //Integer - We ALWAYS target the latest by default
defaultCompileSdkVersion=27 //Integer - We ALWAYS compile with the latest by default
}
}
I also read that when you have this problem you can use 2 plugins to fix it, but they're clearly not working for me (config.xml):
<plugin name="cordova-android-support-gradle-release" spec="1.4.7">
<variable name="ANDROID_SUPPORT_VERSION" value="15.+" />
</plugin>
<plugin name="cordova-android-firebase-gradle-release" spec="^2.0.0">
<variable name="FIREBASE_VERSION" value="15.+" />
</plugin>
My guess is there is an issue with Firebase and Google services versions but I'm not entirely sure... I've tried multiple versions and I can't seem to figure it out.
Any ideas?
android cordova ionic-framework ionic2 ionic3
|
show 2 more comments
I get this error when I try to build Android on my laptop and in Ionic's Pro dashboard.
[04:27:55]: ▸ FAILURE: Build failed with an exception.
[04:27:55]: ▸ * What went wrong:
[04:27:55]: ▸ Execution failed for task ':app:transformClassesWithDesugarForRelease'.
[04:27:55]: ▸ > com.android.build.api.transform.TransformException: java.lang.RuntimeException: java.lang.RuntimeException: com.android.ide.common.process.ProcessException: Error while executing java process with main class com.google.devtools.build.android.desugar.Desugar with arguments {--input /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/43.jar --output /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/desugar/release/45.jar --input /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/49.jar --output /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/desugar/release/51.jar --input /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/37.jar --output /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/desugar/release/39.jar --input /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/3.jar --output /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/desugar/release/5.jar --input /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/28.jar --output /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/desugar/release/30.jar --input /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/47.jar --output /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/desugar/release/49.jar --input /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/19.jar --output /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/desugar/release/21.jar --input /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/44.jar --output /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/desugar/release/46.jar --classpath_entry /builds/user/anonymous-social/platforms/android/CordovaLib/build/intermediates/intermediate-jars/release/classes.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/classes/release --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/0.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/1.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/2.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/3.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/4.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/5.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/6.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/7.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/8.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/9.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/10.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/11.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/12.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/13.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/14.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/15.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/16.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/17.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/18.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/19.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/20.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/21.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/22.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/23.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/24.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/25.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/26.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/27.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/28.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/29.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/30.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/31.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/32.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/33.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/34.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/35.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/36.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/37.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/38.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/39.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/40.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/41.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/42.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/43.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/44.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/45.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/46.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/47.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/48.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/49.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/50.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/51.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/52.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/53.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/54.jar --bootclasspath_entry /opt/android-sdk/platforms/android-27/android.jar --bootclasspath_entry /opt/android-sdk/platforms/android-27/optional/org.apache.http.legacy.jar --bootclasspath_entry /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/resources.jar --bootclasspath_entry /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/rt.jar --bootclasspath_entry /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/jsse.jar --bootclasspath_entry /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/jce.jar --bootclasspath_entry /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/charsets.jar --min_sdk_version 19 --nodesugar_try_with_resources_if_needed --desugar_try_with_resources_omit_runtime_classes}
For the entire build details I made a pastebin: https://pastebin.com/QmJ6Tee3
I noticed that if I go into Platforms > android > project.properties
my details are:
target=android-27
android.library.reference.1=CordovaLib
android.library.reference.2=app
cordova.gradle.include.1=cordova-android-firebase-gradle-release/bemochi-cordova-android-firebase-gradle-release.gradle
cordova.system.library.1=com.android.support:support-v4:24.1.1+
cordova.gradle.include.2=cordova-plugin-firebase/bemochi-build.gradle
cordova.system.library.2=com.google.gms:google-services:+
cordova.system.library.3=com.google.android.gms:play-services-tagmanager:+
cordova.system.library.4=com.google.firebase:firebase-core:+
cordova.system.library.5=com.google.firebase:firebase-messaging:+
cordova.system.library.6=com.google.firebase:firebase-crash:+
cordova.system.library.7=com.google.firebase:firebase-config:+
cordova.system.library.8=com.google.firebase:firebase-perf:+
cordova.system.library.9=com.google.android.gms:play-services-analytics:16.0.3
cordova.system.library.10=com.google.android.gms:play-services-location:15.+
cordova.system.library.11=com.android.support:support-v4:26.+
cordova.system.library.12=com.android.support:appcompat-v7:26.+
cordova.gradle.include.3=me.tonny.cordova.plugins.multidex/bemochi-build.gradle
I'm not sure what I'm doing wrong.
I'm not sure if this helps, but my build.gradle
has this section:
allprojects {
repositories {
jcenter()
maven {
url "https://maven.google.com"
}
}
//This replaces project.properties w.r.t. build settings
project.ext {
defaultBuildToolsVersion="27.0.1" //String
defaultMinSdkVersion=19 //Integer - Minimum requirement is Android 4.4
defaultTargetSdkVersion=27 //Integer - We ALWAYS target the latest by default
defaultCompileSdkVersion=27 //Integer - We ALWAYS compile with the latest by default
}
}
I also read that when you have this problem you can use 2 plugins to fix it, but they're clearly not working for me (config.xml):
<plugin name="cordova-android-support-gradle-release" spec="1.4.7">
<variable name="ANDROID_SUPPORT_VERSION" value="15.+" />
</plugin>
<plugin name="cordova-android-firebase-gradle-release" spec="^2.0.0">
<variable name="FIREBASE_VERSION" value="15.+" />
</plugin>
My guess is there is an issue with Firebase and Google services versions but I'm not entirely sure... I've tried multiple versions and I can't seem to figure it out.
Any ideas?
android cordova ionic-framework ionic2 ionic3
yourbuild.gradle
looks not correct, stackoverflow.com/questions/51072319/…
– shizhen
Nov 20 '18 at 5:15
@shizhen what's wrong with it? the order of maven and jcenter?
– Jane Doe
Nov 20 '18 at 5:25
Yes, it may not be related to your problem in question, but just spot this when reading your post.
– shizhen
Nov 20 '18 at 5:32
Have you tried changing the targeted android SDK version to 26 ?
– Delwyn Pinto
Nov 21 '18 at 9:47
@DelwynPinto 26? I tried it and it still didn't work
– Jane Doe
Nov 22 '18 at 6:44
|
show 2 more comments
I get this error when I try to build Android on my laptop and in Ionic's Pro dashboard.
[04:27:55]: ▸ FAILURE: Build failed with an exception.
[04:27:55]: ▸ * What went wrong:
[04:27:55]: ▸ Execution failed for task ':app:transformClassesWithDesugarForRelease'.
[04:27:55]: ▸ > com.android.build.api.transform.TransformException: java.lang.RuntimeException: java.lang.RuntimeException: com.android.ide.common.process.ProcessException: Error while executing java process with main class com.google.devtools.build.android.desugar.Desugar with arguments {--input /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/43.jar --output /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/desugar/release/45.jar --input /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/49.jar --output /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/desugar/release/51.jar --input /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/37.jar --output /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/desugar/release/39.jar --input /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/3.jar --output /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/desugar/release/5.jar --input /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/28.jar --output /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/desugar/release/30.jar --input /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/47.jar --output /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/desugar/release/49.jar --input /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/19.jar --output /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/desugar/release/21.jar --input /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/44.jar --output /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/desugar/release/46.jar --classpath_entry /builds/user/anonymous-social/platforms/android/CordovaLib/build/intermediates/intermediate-jars/release/classes.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/classes/release --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/0.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/1.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/2.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/3.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/4.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/5.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/6.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/7.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/8.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/9.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/10.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/11.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/12.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/13.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/14.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/15.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/16.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/17.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/18.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/19.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/20.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/21.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/22.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/23.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/24.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/25.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/26.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/27.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/28.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/29.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/30.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/31.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/32.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/33.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/34.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/35.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/36.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/37.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/38.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/39.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/40.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/41.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/42.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/43.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/44.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/45.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/46.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/47.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/48.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/49.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/50.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/51.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/52.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/53.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/54.jar --bootclasspath_entry /opt/android-sdk/platforms/android-27/android.jar --bootclasspath_entry /opt/android-sdk/platforms/android-27/optional/org.apache.http.legacy.jar --bootclasspath_entry /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/resources.jar --bootclasspath_entry /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/rt.jar --bootclasspath_entry /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/jsse.jar --bootclasspath_entry /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/jce.jar --bootclasspath_entry /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/charsets.jar --min_sdk_version 19 --nodesugar_try_with_resources_if_needed --desugar_try_with_resources_omit_runtime_classes}
For the entire build details I made a pastebin: https://pastebin.com/QmJ6Tee3
I noticed that if I go into Platforms > android > project.properties
my details are:
target=android-27
android.library.reference.1=CordovaLib
android.library.reference.2=app
cordova.gradle.include.1=cordova-android-firebase-gradle-release/bemochi-cordova-android-firebase-gradle-release.gradle
cordova.system.library.1=com.android.support:support-v4:24.1.1+
cordova.gradle.include.2=cordova-plugin-firebase/bemochi-build.gradle
cordova.system.library.2=com.google.gms:google-services:+
cordova.system.library.3=com.google.android.gms:play-services-tagmanager:+
cordova.system.library.4=com.google.firebase:firebase-core:+
cordova.system.library.5=com.google.firebase:firebase-messaging:+
cordova.system.library.6=com.google.firebase:firebase-crash:+
cordova.system.library.7=com.google.firebase:firebase-config:+
cordova.system.library.8=com.google.firebase:firebase-perf:+
cordova.system.library.9=com.google.android.gms:play-services-analytics:16.0.3
cordova.system.library.10=com.google.android.gms:play-services-location:15.+
cordova.system.library.11=com.android.support:support-v4:26.+
cordova.system.library.12=com.android.support:appcompat-v7:26.+
cordova.gradle.include.3=me.tonny.cordova.plugins.multidex/bemochi-build.gradle
I'm not sure what I'm doing wrong.
I'm not sure if this helps, but my build.gradle
has this section:
allprojects {
repositories {
jcenter()
maven {
url "https://maven.google.com"
}
}
//This replaces project.properties w.r.t. build settings
project.ext {
defaultBuildToolsVersion="27.0.1" //String
defaultMinSdkVersion=19 //Integer - Minimum requirement is Android 4.4
defaultTargetSdkVersion=27 //Integer - We ALWAYS target the latest by default
defaultCompileSdkVersion=27 //Integer - We ALWAYS compile with the latest by default
}
}
I also read that when you have this problem you can use 2 plugins to fix it, but they're clearly not working for me (config.xml):
<plugin name="cordova-android-support-gradle-release" spec="1.4.7">
<variable name="ANDROID_SUPPORT_VERSION" value="15.+" />
</plugin>
<plugin name="cordova-android-firebase-gradle-release" spec="^2.0.0">
<variable name="FIREBASE_VERSION" value="15.+" />
</plugin>
My guess is there is an issue with Firebase and Google services versions but I'm not entirely sure... I've tried multiple versions and I can't seem to figure it out.
Any ideas?
android cordova ionic-framework ionic2 ionic3
I get this error when I try to build Android on my laptop and in Ionic's Pro dashboard.
[04:27:55]: ▸ FAILURE: Build failed with an exception.
[04:27:55]: ▸ * What went wrong:
[04:27:55]: ▸ Execution failed for task ':app:transformClassesWithDesugarForRelease'.
[04:27:55]: ▸ > com.android.build.api.transform.TransformException: java.lang.RuntimeException: java.lang.RuntimeException: com.android.ide.common.process.ProcessException: Error while executing java process with main class com.google.devtools.build.android.desugar.Desugar with arguments {--input /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/43.jar --output /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/desugar/release/45.jar --input /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/49.jar --output /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/desugar/release/51.jar --input /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/37.jar --output /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/desugar/release/39.jar --input /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/3.jar --output /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/desugar/release/5.jar --input /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/28.jar --output /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/desugar/release/30.jar --input /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/47.jar --output /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/desugar/release/49.jar --input /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/19.jar --output /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/desugar/release/21.jar --input /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/44.jar --output /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/desugar/release/46.jar --classpath_entry /builds/user/anonymous-social/platforms/android/CordovaLib/build/intermediates/intermediate-jars/release/classes.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/classes/release --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/0.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/1.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/2.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/3.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/4.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/5.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/6.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/7.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/8.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/9.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/10.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/11.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/12.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/13.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/14.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/15.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/16.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/17.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/18.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/19.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/20.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/21.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/22.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/23.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/24.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/25.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/26.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/27.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/28.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/29.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/30.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/31.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/32.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/33.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/34.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/35.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/36.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/37.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/38.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/39.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/40.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/41.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/42.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/43.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/44.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/45.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/46.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/47.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/48.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/49.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/50.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/51.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/52.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/53.jar --classpath_entry /builds/user/anonymous-social/platforms/android/app/build/intermediates/transforms/stackFramesFixer/release/54.jar --bootclasspath_entry /opt/android-sdk/platforms/android-27/android.jar --bootclasspath_entry /opt/android-sdk/platforms/android-27/optional/org.apache.http.legacy.jar --bootclasspath_entry /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/resources.jar --bootclasspath_entry /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/rt.jar --bootclasspath_entry /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/jsse.jar --bootclasspath_entry /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/jce.jar --bootclasspath_entry /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/charsets.jar --min_sdk_version 19 --nodesugar_try_with_resources_if_needed --desugar_try_with_resources_omit_runtime_classes}
For the entire build details I made a pastebin: https://pastebin.com/QmJ6Tee3
I noticed that if I go into Platforms > android > project.properties
my details are:
target=android-27
android.library.reference.1=CordovaLib
android.library.reference.2=app
cordova.gradle.include.1=cordova-android-firebase-gradle-release/bemochi-cordova-android-firebase-gradle-release.gradle
cordova.system.library.1=com.android.support:support-v4:24.1.1+
cordova.gradle.include.2=cordova-plugin-firebase/bemochi-build.gradle
cordova.system.library.2=com.google.gms:google-services:+
cordova.system.library.3=com.google.android.gms:play-services-tagmanager:+
cordova.system.library.4=com.google.firebase:firebase-core:+
cordova.system.library.5=com.google.firebase:firebase-messaging:+
cordova.system.library.6=com.google.firebase:firebase-crash:+
cordova.system.library.7=com.google.firebase:firebase-config:+
cordova.system.library.8=com.google.firebase:firebase-perf:+
cordova.system.library.9=com.google.android.gms:play-services-analytics:16.0.3
cordova.system.library.10=com.google.android.gms:play-services-location:15.+
cordova.system.library.11=com.android.support:support-v4:26.+
cordova.system.library.12=com.android.support:appcompat-v7:26.+
cordova.gradle.include.3=me.tonny.cordova.plugins.multidex/bemochi-build.gradle
I'm not sure what I'm doing wrong.
I'm not sure if this helps, but my build.gradle
has this section:
allprojects {
repositories {
jcenter()
maven {
url "https://maven.google.com"
}
}
//This replaces project.properties w.r.t. build settings
project.ext {
defaultBuildToolsVersion="27.0.1" //String
defaultMinSdkVersion=19 //Integer - Minimum requirement is Android 4.4
defaultTargetSdkVersion=27 //Integer - We ALWAYS target the latest by default
defaultCompileSdkVersion=27 //Integer - We ALWAYS compile with the latest by default
}
}
I also read that when you have this problem you can use 2 plugins to fix it, but they're clearly not working for me (config.xml):
<plugin name="cordova-android-support-gradle-release" spec="1.4.7">
<variable name="ANDROID_SUPPORT_VERSION" value="15.+" />
</plugin>
<plugin name="cordova-android-firebase-gradle-release" spec="^2.0.0">
<variable name="FIREBASE_VERSION" value="15.+" />
</plugin>
My guess is there is an issue with Firebase and Google services versions but I'm not entirely sure... I've tried multiple versions and I can't seem to figure it out.
Any ideas?
android cordova ionic-framework ionic2 ionic3
android cordova ionic-framework ionic2 ionic3
edited Nov 20 '18 at 5:10
asked Nov 12 '18 at 3:56
Jane Doe
689931
689931
yourbuild.gradle
looks not correct, stackoverflow.com/questions/51072319/…
– shizhen
Nov 20 '18 at 5:15
@shizhen what's wrong with it? the order of maven and jcenter?
– Jane Doe
Nov 20 '18 at 5:25
Yes, it may not be related to your problem in question, but just spot this when reading your post.
– shizhen
Nov 20 '18 at 5:32
Have you tried changing the targeted android SDK version to 26 ?
– Delwyn Pinto
Nov 21 '18 at 9:47
@DelwynPinto 26? I tried it and it still didn't work
– Jane Doe
Nov 22 '18 at 6:44
|
show 2 more comments
yourbuild.gradle
looks not correct, stackoverflow.com/questions/51072319/…
– shizhen
Nov 20 '18 at 5:15
@shizhen what's wrong with it? the order of maven and jcenter?
– Jane Doe
Nov 20 '18 at 5:25
Yes, it may not be related to your problem in question, but just spot this when reading your post.
– shizhen
Nov 20 '18 at 5:32
Have you tried changing the targeted android SDK version to 26 ?
– Delwyn Pinto
Nov 21 '18 at 9:47
@DelwynPinto 26? I tried it and it still didn't work
– Jane Doe
Nov 22 '18 at 6:44
your
build.gradle
looks not correct, stackoverflow.com/questions/51072319/…– shizhen
Nov 20 '18 at 5:15
your
build.gradle
looks not correct, stackoverflow.com/questions/51072319/…– shizhen
Nov 20 '18 at 5:15
@shizhen what's wrong with it? the order of maven and jcenter?
– Jane Doe
Nov 20 '18 at 5:25
@shizhen what's wrong with it? the order of maven and jcenter?
– Jane Doe
Nov 20 '18 at 5:25
Yes, it may not be related to your problem in question, but just spot this when reading your post.
– shizhen
Nov 20 '18 at 5:32
Yes, it may not be related to your problem in question, but just spot this when reading your post.
– shizhen
Nov 20 '18 at 5:32
Have you tried changing the targeted android SDK version to 26 ?
– Delwyn Pinto
Nov 21 '18 at 9:47
Have you tried changing the targeted android SDK version to 26 ?
– Delwyn Pinto
Nov 21 '18 at 9:47
@DelwynPinto 26? I tried it and it still didn't work
– Jane Doe
Nov 22 '18 at 6:44
@DelwynPinto 26? I tried it and it still didn't work
– Jane Doe
Nov 22 '18 at 6:44
|
show 2 more comments
3 Answers
3
active
oldest
votes
I solved the problem. There was a conflict with my cordova-plugin-firebase
and cordova-plugin-google-analytics
so what I ended up having to do was downgrade cordova-plugin-google-analytics
to version 1.8.3
which ended up working for me.
Simple fix in the end but absolutely 0 indication from the error log that this might be the problem. Very frustrating.
add a comment |
What you have to do:
- Delete the Platform folder from your project.
- Open your ionic project with android
studio
Now run the following commands in an android studio:
ionic Cordova build then it asks for android and ios then type Android
Feel free to comment for more help :)
This didn't work I'm afraid :/
– Jane Doe
Nov 12 '18 at 19:17
You can also delete you node-module folder and then run ionic serve and yes to install node module again ... sometimes cause be the node version confliction. And don't afraid, be patience. :)
– Harry
Nov 13 '18 at 5:15
that solution didn't work either.
– Jane Doe
Nov 20 '18 at 5:13
add a comment |
I also faced to a problem like this.
My problem was with cordova-plugin-firebase
.
Follow these steps.
1. Remove Android platform.
ionic cordova platform rm android
2. Remove cordova-plugin-firebase
plugin.
ionic cordova plugin rm cordova-plugin-firebase
3. Add cordova-plugin-firebase
plugin again with version 1.0.0.
ionic cordova plugin add cordova-plugin-firebase@1.0.0
4. Add Android platform again.
ionic cordova platform add android
5. Build Ionic app to Android
ionic cordova build android
Feel free to comment any issue that you faced.
I'm afraid this didn't work for me. I got the same problem
– Jane Doe
Nov 25 '18 at 19:16
Did you try github.com/ionic-team/ionic-cli/issues/… before try it remove<plugin name="cordova-android-support-gradle-release" spec="1.4.7"> <variable name="ANDROID_SUPPORT_VERSION" value="15.+" /> </plugin> <plugin name="cordova-android-firebase-gradle-release" spec="^2.0.0"> <variable name="FIREBASE_VERSION" value="15.+" /> </plugin>
from your config.xml file
– Sudarshana Dayananda
Nov 25 '18 at 19:37
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53255766%2fionic-execution-failed-for-task-apptransformclasseswithdesugarforrelease%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
I solved the problem. There was a conflict with my cordova-plugin-firebase
and cordova-plugin-google-analytics
so what I ended up having to do was downgrade cordova-plugin-google-analytics
to version 1.8.3
which ended up working for me.
Simple fix in the end but absolutely 0 indication from the error log that this might be the problem. Very frustrating.
add a comment |
I solved the problem. There was a conflict with my cordova-plugin-firebase
and cordova-plugin-google-analytics
so what I ended up having to do was downgrade cordova-plugin-google-analytics
to version 1.8.3
which ended up working for me.
Simple fix in the end but absolutely 0 indication from the error log that this might be the problem. Very frustrating.
add a comment |
I solved the problem. There was a conflict with my cordova-plugin-firebase
and cordova-plugin-google-analytics
so what I ended up having to do was downgrade cordova-plugin-google-analytics
to version 1.8.3
which ended up working for me.
Simple fix in the end but absolutely 0 indication from the error log that this might be the problem. Very frustrating.
I solved the problem. There was a conflict with my cordova-plugin-firebase
and cordova-plugin-google-analytics
so what I ended up having to do was downgrade cordova-plugin-google-analytics
to version 1.8.3
which ended up working for me.
Simple fix in the end but absolutely 0 indication from the error log that this might be the problem. Very frustrating.
answered Nov 26 '18 at 22:31
Jane Doe
689931
689931
add a comment |
add a comment |
What you have to do:
- Delete the Platform folder from your project.
- Open your ionic project with android
studio
Now run the following commands in an android studio:
ionic Cordova build then it asks for android and ios then type Android
Feel free to comment for more help :)
This didn't work I'm afraid :/
– Jane Doe
Nov 12 '18 at 19:17
You can also delete you node-module folder and then run ionic serve and yes to install node module again ... sometimes cause be the node version confliction. And don't afraid, be patience. :)
– Harry
Nov 13 '18 at 5:15
that solution didn't work either.
– Jane Doe
Nov 20 '18 at 5:13
add a comment |
What you have to do:
- Delete the Platform folder from your project.
- Open your ionic project with android
studio
Now run the following commands in an android studio:
ionic Cordova build then it asks for android and ios then type Android
Feel free to comment for more help :)
This didn't work I'm afraid :/
– Jane Doe
Nov 12 '18 at 19:17
You can also delete you node-module folder and then run ionic serve and yes to install node module again ... sometimes cause be the node version confliction. And don't afraid, be patience. :)
– Harry
Nov 13 '18 at 5:15
that solution didn't work either.
– Jane Doe
Nov 20 '18 at 5:13
add a comment |
What you have to do:
- Delete the Platform folder from your project.
- Open your ionic project with android
studio
Now run the following commands in an android studio:
ionic Cordova build then it asks for android and ios then type Android
Feel free to comment for more help :)
What you have to do:
- Delete the Platform folder from your project.
- Open your ionic project with android
studio
Now run the following commands in an android studio:
ionic Cordova build then it asks for android and ios then type Android
Feel free to comment for more help :)
answered Nov 12 '18 at 9:48
Harry
1485
1485
This didn't work I'm afraid :/
– Jane Doe
Nov 12 '18 at 19:17
You can also delete you node-module folder and then run ionic serve and yes to install node module again ... sometimes cause be the node version confliction. And don't afraid, be patience. :)
– Harry
Nov 13 '18 at 5:15
that solution didn't work either.
– Jane Doe
Nov 20 '18 at 5:13
add a comment |
This didn't work I'm afraid :/
– Jane Doe
Nov 12 '18 at 19:17
You can also delete you node-module folder and then run ionic serve and yes to install node module again ... sometimes cause be the node version confliction. And don't afraid, be patience. :)
– Harry
Nov 13 '18 at 5:15
that solution didn't work either.
– Jane Doe
Nov 20 '18 at 5:13
This didn't work I'm afraid :/
– Jane Doe
Nov 12 '18 at 19:17
This didn't work I'm afraid :/
– Jane Doe
Nov 12 '18 at 19:17
You can also delete you node-module folder and then run ionic serve and yes to install node module again ... sometimes cause be the node version confliction. And don't afraid, be patience. :)
– Harry
Nov 13 '18 at 5:15
You can also delete you node-module folder and then run ionic serve and yes to install node module again ... sometimes cause be the node version confliction. And don't afraid, be patience. :)
– Harry
Nov 13 '18 at 5:15
that solution didn't work either.
– Jane Doe
Nov 20 '18 at 5:13
that solution didn't work either.
– Jane Doe
Nov 20 '18 at 5:13
add a comment |
I also faced to a problem like this.
My problem was with cordova-plugin-firebase
.
Follow these steps.
1. Remove Android platform.
ionic cordova platform rm android
2. Remove cordova-plugin-firebase
plugin.
ionic cordova plugin rm cordova-plugin-firebase
3. Add cordova-plugin-firebase
plugin again with version 1.0.0.
ionic cordova plugin add cordova-plugin-firebase@1.0.0
4. Add Android platform again.
ionic cordova platform add android
5. Build Ionic app to Android
ionic cordova build android
Feel free to comment any issue that you faced.
I'm afraid this didn't work for me. I got the same problem
– Jane Doe
Nov 25 '18 at 19:16
Did you try github.com/ionic-team/ionic-cli/issues/… before try it remove<plugin name="cordova-android-support-gradle-release" spec="1.4.7"> <variable name="ANDROID_SUPPORT_VERSION" value="15.+" /> </plugin> <plugin name="cordova-android-firebase-gradle-release" spec="^2.0.0"> <variable name="FIREBASE_VERSION" value="15.+" /> </plugin>
from your config.xml file
– Sudarshana Dayananda
Nov 25 '18 at 19:37
add a comment |
I also faced to a problem like this.
My problem was with cordova-plugin-firebase
.
Follow these steps.
1. Remove Android platform.
ionic cordova platform rm android
2. Remove cordova-plugin-firebase
plugin.
ionic cordova plugin rm cordova-plugin-firebase
3. Add cordova-plugin-firebase
plugin again with version 1.0.0.
ionic cordova plugin add cordova-plugin-firebase@1.0.0
4. Add Android platform again.
ionic cordova platform add android
5. Build Ionic app to Android
ionic cordova build android
Feel free to comment any issue that you faced.
I'm afraid this didn't work for me. I got the same problem
– Jane Doe
Nov 25 '18 at 19:16
Did you try github.com/ionic-team/ionic-cli/issues/… before try it remove<plugin name="cordova-android-support-gradle-release" spec="1.4.7"> <variable name="ANDROID_SUPPORT_VERSION" value="15.+" /> </plugin> <plugin name="cordova-android-firebase-gradle-release" spec="^2.0.0"> <variable name="FIREBASE_VERSION" value="15.+" /> </plugin>
from your config.xml file
– Sudarshana Dayananda
Nov 25 '18 at 19:37
add a comment |
I also faced to a problem like this.
My problem was with cordova-plugin-firebase
.
Follow these steps.
1. Remove Android platform.
ionic cordova platform rm android
2. Remove cordova-plugin-firebase
plugin.
ionic cordova plugin rm cordova-plugin-firebase
3. Add cordova-plugin-firebase
plugin again with version 1.0.0.
ionic cordova plugin add cordova-plugin-firebase@1.0.0
4. Add Android platform again.
ionic cordova platform add android
5. Build Ionic app to Android
ionic cordova build android
Feel free to comment any issue that you faced.
I also faced to a problem like this.
My problem was with cordova-plugin-firebase
.
Follow these steps.
1. Remove Android platform.
ionic cordova platform rm android
2. Remove cordova-plugin-firebase
plugin.
ionic cordova plugin rm cordova-plugin-firebase
3. Add cordova-plugin-firebase
plugin again with version 1.0.0.
ionic cordova plugin add cordova-plugin-firebase@1.0.0
4. Add Android platform again.
ionic cordova platform add android
5. Build Ionic app to Android
ionic cordova build android
Feel free to comment any issue that you faced.
answered Nov 25 '18 at 7:12
Sudarshana Dayananda
966618
966618
I'm afraid this didn't work for me. I got the same problem
– Jane Doe
Nov 25 '18 at 19:16
Did you try github.com/ionic-team/ionic-cli/issues/… before try it remove<plugin name="cordova-android-support-gradle-release" spec="1.4.7"> <variable name="ANDROID_SUPPORT_VERSION" value="15.+" /> </plugin> <plugin name="cordova-android-firebase-gradle-release" spec="^2.0.0"> <variable name="FIREBASE_VERSION" value="15.+" /> </plugin>
from your config.xml file
– Sudarshana Dayananda
Nov 25 '18 at 19:37
add a comment |
I'm afraid this didn't work for me. I got the same problem
– Jane Doe
Nov 25 '18 at 19:16
Did you try github.com/ionic-team/ionic-cli/issues/… before try it remove<plugin name="cordova-android-support-gradle-release" spec="1.4.7"> <variable name="ANDROID_SUPPORT_VERSION" value="15.+" /> </plugin> <plugin name="cordova-android-firebase-gradle-release" spec="^2.0.0"> <variable name="FIREBASE_VERSION" value="15.+" /> </plugin>
from your config.xml file
– Sudarshana Dayananda
Nov 25 '18 at 19:37
I'm afraid this didn't work for me. I got the same problem
– Jane Doe
Nov 25 '18 at 19:16
I'm afraid this didn't work for me. I got the same problem
– Jane Doe
Nov 25 '18 at 19:16
Did you try github.com/ionic-team/ionic-cli/issues/… before try it remove
<plugin name="cordova-android-support-gradle-release" spec="1.4.7"> <variable name="ANDROID_SUPPORT_VERSION" value="15.+" /> </plugin> <plugin name="cordova-android-firebase-gradle-release" spec="^2.0.0"> <variable name="FIREBASE_VERSION" value="15.+" /> </plugin>
from your config.xml file– Sudarshana Dayananda
Nov 25 '18 at 19:37
Did you try github.com/ionic-team/ionic-cli/issues/… before try it remove
<plugin name="cordova-android-support-gradle-release" spec="1.4.7"> <variable name="ANDROID_SUPPORT_VERSION" value="15.+" /> </plugin> <plugin name="cordova-android-firebase-gradle-release" spec="^2.0.0"> <variable name="FIREBASE_VERSION" value="15.+" /> </plugin>
from your config.xml file– Sudarshana Dayananda
Nov 25 '18 at 19:37
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53255766%2fionic-execution-failed-for-task-apptransformclasseswithdesugarforrelease%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
your
build.gradle
looks not correct, stackoverflow.com/questions/51072319/…– shizhen
Nov 20 '18 at 5:15
@shizhen what's wrong with it? the order of maven and jcenter?
– Jane Doe
Nov 20 '18 at 5:25
Yes, it may not be related to your problem in question, but just spot this when reading your post.
– shizhen
Nov 20 '18 at 5:32
Have you tried changing the targeted android SDK version to 26 ?
– Delwyn Pinto
Nov 21 '18 at 9:47
@DelwynPinto 26? I tried it and it still didn't work
– Jane Doe
Nov 22 '18 at 6:44