-
Notifications
You must be signed in to change notification settings - Fork 500
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cordova build is rejecting the plugin #123
Comments
Yep, updating the latest version broke our build that we've been using for 6+ months |
Ref to pr: #118 |
Researching (but currently unable to reproduce, any other information you can give would be helpful)... In the meantime, you can always revert to the older version by running:
|
I've just created a new project and the same is occurring for me. Error Log:
I guess i'm using the incorrect play-services? But I just added it to my build with the command
|
I apologize, the previous version on npm was 0.7.1 - I have updated the previous comment.
|
I fixed this by running
EXCEPT... i get another error when building:
Which i assume is because another plugin uses a bundled version of the support library |
I've got the same error as @Deminetix ( |
I will try it too. Thank you. |
I couldn't fix it so i just used @0.7.1 |
@htsnet did you solved? I use XDK too and I cannot build! |
I tryed and occurs error too. Considering that I was hurry, I used another plugin with a little changes. |
I also just recently can no longer add this plugin to my project. And I can't install from the Cordova registry or npm, only the git url. But like @xale76 says, don't know how to specify a version in the git url. It seems this plugin is no longer in the registry |
Having the same issue here. Anyways, looking for updates on the topic. |
Same issue here - any update on the issue or a fix?
|
Just to confirm that the latest version of this plugin DOES NOT work with INTEL XDK. Unfortunately, no error log is provided by the XDK build. when using XDK, first Download the 0.7.1 version from npm, then add the downloaded folder to your project as a "Local Plugin" |
ok but how to donwload from npm? |
Hello guys, I am using phonegap 4.1.2 so I can't download the plugin from npm. Have you found a solution without use npm? |
I was able to resolve the issue for myself by installing the Android Support Repository in my Android sdk manager (under the "extras" section). |
+1 Android Support Repository |
+1 same issue for me here! |
Looks like that 0.7.1 version is at risk of losing its gplay dependency with the move to npm. So to help future-proof the build just install the dep manually using |
I was attempting to revert to 0.7.1, and ran into an issue where this line
...persisted in my project.properties file. Removing that line, and reinstalling with 0.7.1 via |
As per @Deminetix's comments, I updated:
Then bumped into the same issue:
I resolved this by deleting the google services jar from |
I think the steps @Deminetix and @kim3er used are the way to go to be on the latest version and get rid of lingering files from the old version of the plugin - thanks! |
@danwilson I am using Phonegap Build to compile the code So I guess I won't be able to remove Google service jar as suggested by @kim3er. So can you help me how can I get it resolved for Phonegap Build. I am using Phonegap CLI-5.2.0 Build Date: 2015-10-30 07:06:18 +0000 Running: /project/gradlew cdvBuildRelease -b /project/build.gradle -Dorg.gradle.daemon=true -x lintVitalRelease FAILURE: Build failed with an exception. * What went wrong: A problem occurred configuring root project 'project'. > Could not resolve all dependencies for configuration ':_debugCompile'. > Could not find any version that matches com.google.android.gms:play-services-analytics:+. Searched in the following locations: https://repo1.maven.org/maven2/com/google/android/gms/play-services-analytics/maven-metadata.xml https://repo1.maven.org/maven2/com/google/android/gms/play-services-analytics/ file:/android-sdk/extras/android/m2repository/com/google/android/gms/play-services-analytics/maven-metadata.xml file:/android-sdk/extras/android/m2repository/com/google/android/gms/play-services-analytics/ Required by: :project:unspecified * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. BUILD FAILED Total time: 38.004 secs /project/cordova/node_modules/q/q.js:126 throw e; ^ Error code 1 for command: /project/gradlew with args: cdvBuildRelease,-b,/project/build.gradle,-Dorg.gradle.daemon=true,-x,lintVitalRelease P.S. I am also using phonegap-plugin-push which is also running with similar error regarding Google play service issue. |
Now i'm getting this error if i try to iinstall google analytics @0.7.1
|
@MazzMazz As to why it works in one but not the other, my guess is that it relates to what dependencies other plugins have -- likely no other plugins you use have a dependency on Google Play Services, or if they do it ends up being specified in the same way as this plugin in 0.8.1. As for your second error, I believe that is because [email protected] isn't published on npm. The version to use is 19.0.3, and you may have to update the plugin.xml to adjust the version spec appropriately, Or try to manually install |
After update: Do not forget to restart Android SDK Manager and update any other version which has appear. |
Is this still an issue? I'm still getting errors even after following the steps described above. |
@johannds I was also encountering build issues after following the steps above. For me, the I tried installing |
try this |
I've tried all your solutions, but i still get the error... :transformClassesWithDexForArmv7Release All is up-to-date in my SDK Manager I use cordova-cli v6 and local maven package for crosswalk-lite. |
I've just removed "googleplayservice" cordova plugin, and everything works fine now. :) |
@fryck, For sure googleplayservice plugin was a workaround for old cordova versions. |
The com.android.dex.DexIndexOverflowException: method ID not in [0, 0xffff]: 65536 error is because yo have more than 65K Methods in the project due to plugins :) I resolve with this http://developer.android.com/intl/es/tools/building/multidex.html |
I've followed all of suggested solutions but no luck. |
@michelevirgilio What do you mean Android doesn't compile but shows no errors? What does it say? |
@RezaRahmati I had the same issue. Turns out that adding the
|
@niraj-shah Thanks for answer, I will try that |
This did it for me |
I still have the issue Tried everything proposed on this thread. [email protected] Any clear procedure to solve the problem? Edit: Seems like there is a conflict with another plugin I use for Push Notifications (ibm-mfp-push) |
@jmereaux, have you tried create a new Cordova project, install google-analytics-plugin and build it? |
@betorobson, no I have not. But as I edited the post above, seems like there is a conflict with the google analytics plugin and another plugin I use for push notifications Edit: unfortunately, the link is not so helpful |
Modifying the project.properties file in the android platform folder seems to have done the trick... |
For the record I had that error too. Installing both Google Play Services and Android Support Repository and still no luck. Tried to change the number as @jmereaux did but wasn't successful...finally it turns out my ANDROID_HOME was pointing to the wrong path. Fixing it and everything works perfectly P.S.: Ionic RC.1 |
Still having this issue. Running: [email protected] @jmereaux I tried your fix of switching the cordova system library, but it didn't seem to do anything. For the record my project.properties file looks like this
|
Right seems to be a conflict with the intercom plugin. Running intercom plugin version 1.1.7 |
Changing
to
has resolved my issue. 🎉 |
this worked for me:
|
as per kim3er: "I resolved this by deleting the google services jar from /libs." - where is this? |
My issue was with another plugin trying to use another version of com.google.android.gms:play-service. By updating all plugins to their latest version respectively and making sure they all use the same version of play-service, the issue was resolved |
(may need sudo) cordova plugin add cordova-plugin-google-analytics@latest --variable GMS_VERSION=(your version) (latest = 16.0.8) |
I don´t know why, but today (07/13/15 19h00 -3GMT) my APP using your plugin is not been build. I use the XDK Intel. The program do not inform any addicional information, but end the building.
What can be happened?
The text was updated successfully, but these errors were encountered: