-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Build Issue Android #1460
Comments
@dezudas thanks for the bug report. Oddly enough I had a similar problem with the FCM library complaining about the |
@dezudas can you try installing the latest from master? You'll need to make sure you have the 25.1.0 support library installed. |
@macdonst thank you! issue has been resolved, phonegap-plugin-push 1.9.2 "PushPlugin" |
I'm having the exact same problem when trying to build android. $ cordova --version
6.4.0
$ cordova platform version android
Installed platforms:
android 6.1.1
$ cordova plugin version | grep phonegap-plugin-push
phonegap-plugin-push 2.0.0-rc2 "PushPlugin" I get this message after running
|
+1, exactly same error message, same versions |
@alonsovb and @kirillgroshkov, I solved it (actually it is a workaround, I didn't figured out how to really solve it) by editing the file platforms/android/project.properties, according to this post http://stackoverflow.com/questions/41408514/com-google-android-gms-common-internal-safe-parcel-safe-parcelable-not-found. I said it's a workaround because this file is generated every time we add the android platform. Hope it helps. |
Having the same problem on android as well
The workaround mentioned above did not work, going to go back to a 1.x version for now |
* Added partial Android FCM support (#975) * Modified plugin.xml to include FCM changes * Plugin.xml changes for FCM * Java changes for FCM * Increased plugin version to 2.0.0 * Increased plugin version in package.json * Added topic subscription/unsubscription * Removed some empty lines * Fixed empty token on android first run (#1008) * Removed GCM files and added FCM files * Added .framework files as custom frameworks * Changed code to work with FCM * Added hook and resource file to copy GoogleService-Info.plist * fixed registration and removed unused code * Use CocoaPods * Fix rebase errors * Fix topic subscription and unsubscription on FCM * Refactor GCMIntentService to FCMService * Issue #689: Remove sender id from PushNotification init Android options * Issue #689: Remove sender id from PushNotification init iOS options * 📝 Update to using fcm-node * 🐛 Issue #1188: Strings.xml google_app_id conflict with google-services.json * Add empty google services plist * Pin FCM to 9.8.0 * 🔧 Add browser platform back for FCM branch * 🔨🔧⬆️ Use Babel to transpile ES2015 code * 🔧 add tern to gitignore * 🔖 Bumping plugin version to 2.0.0-rc1 * 2.0.0-rc1 * Updating CHANGELOG * Fixing my merge error for PR #1378 Optional event emit instead of function call for action buttons * 🐛🍎 Issue #1461: App crashes when initialising with topics (v2.0.0-rc1) * 🐛🐧📝⬆️ #1460: Build Issue Android * 🐛🍎🔧 Fixing a merge issue where aps-environment was accidentally removed * 🐧📝🐛 Issue #1470: Cannot install phonegap-plugin-push on master * 📝 Using a newer version on the examples * 🍎🐛 Issue #1497: App crashes after refreshing when using FCM (v2) * Bumping plugin version to 2.0.0-rc2 * 2.0.0-rc2 * Updating CHANGELOG * Added partial Android FCM support (#975) * Modified plugin.xml to include FCM changes * Plugin.xml changes for FCM * Java changes for FCM * Increased plugin version to 2.0.0 * Increased plugin version in package.json * Added topic subscription/unsubscription * Removed some empty lines * Removed GCM files and added FCM files * Changed code to work with FCM * Added hook and resource file to copy GoogleService-Info.plist * Use CocoaPods * Fix rebase errors * Issue #689: Remove sender id from PushNotification init Android options * 🐛 Issue #1188: Strings.xml google_app_id conflict with google-services.json * Pin FCM to 9.8.0 * 🔧 Add browser platform back for FCM branch * 🔨🔧⬆️ Use Babel to transpile ES2015 code * 🔧 add tern to gitignore * 🔖 Bumping plugin version to 2.0.0-rc1 * 🐛🐧📝⬆️ #1460: Build Issue Android * Bumping plugin version to 2.0.0-rc2 * Added partial Android FCM support (#975) * Modified plugin.xml to include FCM changes * Plugin.xml changes for FCM * Java changes for FCM * Increased plugin version to 2.0.0 * Increased plugin version in package.json * Added topic subscription/unsubscription * Removed some empty lines * Removed GCM files and added FCM files * Added hook and resource file to copy GoogleService-Info.plist * Use CocoaPods * Fix rebase errors * 🐛 Issue #1188: Strings.xml google_app_id conflict with google-services.json * Updating CHANGELOG * ✏️ fixing error in CHANGELOG * Bumping plugin version to 2.0.0-rc2 * Updating CHANGELOG * Added partial Android FCM support (#975) * Modified plugin.xml to include FCM changes * Plugin.xml changes for FCM * Java changes for FCM * Increased plugin version to 2.0.0 * Increased plugin version in package.json * Added topic subscription/unsubscription * Removed some empty lines * Removed GCM files and added FCM files * Changed code to work with FCM * Added hook and resource file to copy GoogleService-Info.plist * fixed registration and removed unused code * Use CocoaPods * Fix rebase errors * Issue #689: Remove sender id from PushNotification init Android options * Issue #689: Remove sender id from PushNotification init iOS options * 🐛 Issue #1188: Strings.xml google_app_id conflict with google-services.json * 🔧 add tern to gitignore * 🔖 Bumping plugin version to 2.0.0-rc1 * Bumping plugin version to 2.0.0-rc2 * Remove hook and use resource-file tag to copy google services file * Add resource-file way of copying google services files * Bump requirements * 🔧 Update cordovaDependencies * 🔖 Bumping plugin version to 2.0.0-rc3 * 2.0.0-rc3 * Updating CHANGELOG * Fixes 'framework not found GoogleToolboxForMac' linker error in 2.0.0-rc3 (#1715) * Remove unused files (#1732) * Remove GTM framework. (#1739)
HI, here same problem, I can not get running "cordova-plugin-googleplus 5.1.1" with "phonegap-plugin-push 2.0.0-rc4" together. I am on Ubuntu 16.04 using cordova 7.0.1 and Android Studio 2.3.3. cordova requirements android: cordova run android: FAILURE: Build failed with an exception.
BUILD FAILED How can I fix that? tnk |
This thread has been automatically locked. |
Expected Behaviour
Build/Compilation success
Actual Behaviour
compilation broken for android platform
Reproduce Scenario (including but not limited to)
Steps to Reproduce
Platform and Version (eg. Android 5.0 or iOS 9.2.1)
(Android) What device vendor (e.g. Samsung, HTC, Sony...)
Cordova CLI version and cordova platform version
Plugin version
Sample Push Data Payload
Sample Code that illustrates the problem
cordova build android -d
Logs taken while reproducing problem
Executing script found in config.xml for hook "before_build": scripts/copy_resource_files.js
No scripts found for hook "before_prepare".
Checking config.xml for saved platforms that haven't been added to the project
Checking for any plugins added to the project that have not been installed in android platform
No differences found between plugins added to project and installed in android platform. Continuing...
Generating platform-specific config.xml from defaults for android at /Users/dijup/mobileapp/chordpedia/platforms/android/res/xml/config.xml
Merging project's config.xml into platform-specific android config.xml
Merging and updating files from [www, platforms/android/platform_www] to platforms/android/assets/www
Wrote out android application name "Chordpedia" to /Users/dijup/mobileapp/chordpedia/platforms/android/res/values/strings.xml
Wrote out Android package name "com.dez.chordpedia" to /Users/dijup/mobileapp/chordpedia/platforms/android/src/com/dez/chordpedia/MainActivity.java
Updating icons at platforms/android/res
Updating splash screens at platforms/android/res
Prepared android project successfully
Executing script found in hooks directory for hook "after_prepare": hooks/after_prepare/uglify.js
Running command: /Users/dijup/mobileapp/chordpedia/hooks/after_prepare/uglify.js /Users/dijup/mobileapp/chordpedia
Command finished with error code 0: /Users/dijup/mobileapp/chordpedia/hooks/after_prepare/uglify.js /Users/dijup/mobileapp/chordpedia
Checking config.xml for saved plugins that haven't been added to the project
No scripts found for hook "before_compile".
ANDROID_HOME=/Users/dijup/Development/sdk/
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home
Reading build config file: /Users/dijup/mobileapp/chordpedia/build.json
Reading the keystore from: /Users/dijup/mobileapp/chordpedia/chordpedia.keystore
Subproject Path: CordovaLib
Running command: /Users/dijup/mobileapp/chordpedia/platforms/android/gradlew cdvBuildDebug -b /Users/dijup/mobileapp/chordpedia/platforms/android/build.gradle -Dorg.gradle.daemon=true -Dorg.gradle.jvmargs=-Xmx2048m -Pandroid.useDeprecatedNdk=true
FAILURE: Build failed with an exception.
Where:
Script '/Users/dijup/mobileapp/chordpedia/platforms/android/phonegap-plugin-push/chordpedia-push.gradle' line: 12
What went wrong:
A problem occurred evaluating root project 'android'.
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 0.771 secs
Command finished with error code 1: /Users/dijup/mobileapp/chordpedia/platforms/android/gradlew cdvBuildDebug,-b,/Users/dijup/mobileapp/chordpedia/platforms/android/build.gradle,-Dorg.gradle.daemon=true,-Dorg.gradle.jvmargs=-Xmx2048m,-Pandroid.useDeprecatedNdk=true
Error: /Users/dijup/mobileapp/chordpedia/platforms/android/gradlew: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.
Where:
Script '/Users/dijup/mobileapp/chordpedia/platforms/android/phonegap-plugin-push/chordpedia-push.gradle' line: 12
What went wrong:
A problem occurred evaluating root project 'android'.
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
at ChildProcess.whenDone (/Users/dijup/mobileapp/chordpedia/platforms/android/cordova/node_modules/cordova-common/src/superspawn.js:169:23)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:877:16)
at Socket. (internal/child_process.js:334:11)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at Pipe._handle.close [as _onclose] (net.js:493:12)
The text was updated successfully, but these errors were encountered: