Open arunkumarbrt opened 6 years ago
had the same issue but caused through other plugins.
@arunkumarbrt can you post your cordova plugin ls
?
Did you find a solution ? I got same problem with GooglePlus plugin
@Larablock faced with this issue in version 5.3.1. Rolled back to 5.3.0 and all work like it should.
@X2Style There is really nothing in the changed diff that would explain why it would work with 5.3.0 and not work with 5.3.1. Strange..
@Larablock @EddyVerbruggen all working with 5.3.1. In my case it was some issue with cordova-plugin-facebook4. Also I'm using phonegap-plugin-push and after npm i and platform add, I should modify all Google libraries versions in "project.properties", and then build. But if I modify them after first build it will be crashed.
My issue was caused by some SDK version shenanigans.
I got my build working after I manually unpinned the framework versions in cordova-plugin-googleplus from 11.8.0
to +
.
cordova platform rm android
<framework src="com.google.android.gms:play-services-auth:11.8.0" />
to <framework src="com.google.android.gms:play-services-auth:+" />
<framework src="com.google.android.gms:play-services-identity:11.8.0" />
to <framework src="com.google.android.gms:play-services-identity:+" />
cordova platform add android@6.x
Not very sexy solution as the changes won't persist if you remove the plugin, but some work-around.
Ionic Info:
ionic (Ionic CLI) : 4.1.0 (/usr/local/lib/node_modules/ionic) Ionic Framework : ionic-angular 3.9.2 @ionic/app-scripts : 3.1.11
Cordova:
cordova (Cordova CLI) : 7.0.0 Cordova Platforms : android 7.0.0 Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.2, cordova-plugin-ionic-webview 2.0.3, (and 6 other plugins)
System:
ios-deploy : 2.0.0 NodeJS : v10.8.0 (/usr/local/bin/node) npm : 6.3.0 OS : macOS High Sierra Xcode : Xcode 9.4.1 Build version 9F2000
Environment:
Error:
:app:compileDebugAidl :CordovaLib:packageDebugRenderscript NO-SOURCE :app:compileDebugRenderscript UP-TO-DATE :app:checkDebugManifest UP-TO-DATE :app:generateDebugBuildConfig UP-TO-DATE :app:prepareLintJar UP-TO-DATE :app:generateDebugResValues UP-TO-DATE :app:generateDebugResources UP-TO-DATE :app:mergeDebugResources :app:createDebugCompatibleScreenManifests UP-TO-DATE :app:processDebugManifest :app:splitsDiscoveryTaskDebug UP-TO-DATE :app:processDebugResources :app:generateDebugSources :app:javaPreCompileDebug Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. :app:compileDebugJavaWithJavac :app:compileDebugNdk NO-SOURCE :app:compileDebugSources :CordovaLib:mergeDebugShaders UP-TO-DATE :CordovaLib:compileDebugShaders UP-TO-DATE :CordovaLib:generateDebugAssets UP-TO-DATE :CordovaLib:mergeDebugAssets UP-TO-DATE :app:mergeDebugShaders UP-TO-DATE :app:compileDebugShaders UP-TO-DATE :app:generateDebugAssets UP-TO-DATE :app:mergeDebugAssets :app:transformClassesWithStackFramesFixerForDebug :app:transformClassesWithDesugarForDebug :app:transformClassesWithDexBuilderForDebug :app:transformDexArchiveWithExternalLibsDexMergerForDebug FAILED
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Get more help at https://help.gradle.org
BUILD FAILED in 10s 37 actionable tasks: 12 executed, 25 up-to-date Error: /Users/brt/Documents/Developement/ionic/Belafy/platforms/android/gradlew: Command failed with exit code 1 Error output: Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details.
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Get more help at https://help.gradle.org
BUILD FAILED in 10s [ERROR] An error occurred while running subprocess cordova.