[
https://issues.apache.org/jira/browse/CB-10342?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Nikhil Khandelwal updated CB-10342:
-----------------------------------
Component/s: (was: CordovaLib)
Android
> Different Android PhoneGap Apps with a
> 'com.google.android.gms:play-services-gcm' dependency can not install together
> ---------------------------------------------------------------------------------------------------------------------
>
> Key: CB-10342
> URL: https://issues.apache.org/jira/browse/CB-10342
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android
> Affects Versions: 5.3.2
> Environment: * Samsung Note 3 (SM-9005) with Android 5.0
> * Android Studio 1.5.1
> * PhoneGap 5.3.3
> * "cordova-plugin-whitelist": "1.2.0"
> Reporter: Ronny Schleicher
> Labels: triaged
>
> h3. Step to Reproduce:
> * Create a new blank Phonegap Application (in this example on the PC):
> * Identifier and Name *de.myapp.myapp MYAPP*
> {code:none}
> cd c:\
> call cordova create PhoneGap_android de.myapp.myapp MYAPP
> cd PhoneGap_android
> call cordova platform add android
> call cordova plugin ls
> {code}
> * Open the project in the Android Studio
> * Now add the dependency in the build.gradle file *compile
> "com.google.android.gms:play-services-gcm:+"* (why it is needed in this case
> no matter, but it is for Push Notification required)
> {code:none}
> dependencies {
> compile fileTree(dir: 'libs', include: '*.jar')
> // SUB-PROJECT DEPENDENCIES START
> debugCompile project(path: "CordovaLib", configuration: "debug")
> releaseCompile project(path: "CordovaLib", configuration: "release")
> compile "com.google.android.gms:play-services-gcm:+"
> // SUB-PROJECT DEPENDENCIES END
> }
> {code}
> * Try to install and run the MYAPP on a real Android device
> * *Also is fine!* The App can be installed and lanched too.
> * Close the App and close the Android Studio too
> * Create a second new Phonegap App
> * Identifier and Name are completely different to the first APP
> *de.myapp2.myapp2 MYAPP2*
> {code:none}
> cd c:\
> call cordova create PhoneGap_android2 de.myapp2.myapp2 MYAPP2
> cd PhoneGap_android2
> call cordova platform add android
> call cordova plugin ls
> {code}
> * Open the second project in the Android Studio
> * Now add also the dependency in build.gradle file *compile
> "com.google.android.gms:play-services-gcm:+"*
> {code:none}
> dependencies {
> compile fileTree(dir: 'libs', include: '*.jar')
> // SUB-PROJECT DEPENDENCIES START
> debugCompile project(path: "CordovaLib", configuration: "debug")
> releaseCompile project(path: "CordovaLib", configuration: "release")
> compile "com.google.android.gms:play-services-gcm:+"
> // SUB-PROJECT DEPENDENCIES END
> }
> {code}
> * Try to install and run the *MYAPP2* on the same real Android device (MYAPP
> is still installed)
> * Follow error message appear
> !https://cloud.githubusercontent.com/assets/1914203/12246839/15b99d7e-b8b1-11e5-919b-99feea099367.png!
> Then trying uninstalling proposes course fail. Because App does not exist.
> h3. Consequence
> * *You can never install more then one PhoneGap App required dependency
> (compile "com.google.android.gms:play-services-gcm:+") on the same device!*
> * *This also happens with released Apps (sent via email as an APK MYAPP and
> MyApp2)*
> * *And it happens even if the apps are installed from the +Play Store+!
> Mostly then comes the error +-505+*
> * Without dependencies it would work. (But then I can not use any Push
> Notification implementation in my App)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]