chemerisuk / cordova-support-google-services

DEPRECATED. Cordova plugin to add google services support
MIT License
41 stars 107 forks source link

Fix error Could not find org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.60-eap-25 - Missing Kotlin Maven repo #26

Closed LuisEGR closed 4 years ago

LuisEGR commented 4 years ago

This fixes the error: "Could not find org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.60-eap-25." adding the Kotlin Maven repository, as described here: https://androidstudio.googleblog.com/2019/10/android-studio-40-canary-1-available.html

This was tested with this environment:


Gradle 5.3.1

Build time: 2019-03-28 09:09:23 UTC Revision: f2fae6ba563cfb772c8bc35d31e43c59a5b620c3

Kotlin: 1.3.21 Groovy: 2.5.4 Ant: Apache Ant(TM) version 1.9.13 compiled on July 10 2018 JVM: 1.8.0_192 (Oracle Corporation 25.192-b12) OS: Mac OS X 10.14.6 x86_64

Apache Maven 3.6.0 (97c98ec64a1fdfee7767ce5ffb20918da4f719f3; 2018-10-24T13:41:47-05:00) OS name: "mac os x", version: "10.14.6", arch: "x86_64", family: "mac"


Update 24/OCT: I've just fixed the gradle version to 3.+, avoiding adding the new maven repository, still working with the same environment, and also with Android Studio 4.0 Canary. As many of you say, this is a better solution for this issue

fmendoza commented 4 years ago

Same issue here.

LuisEGR commented 4 years ago

Same issue here.

You can use this temporal solution, this works for me: https://stackoverflow.com/a/58531201

bu4ak commented 4 years ago

Same issue

dmitryuk commented 4 years ago

Same issue

kotarella1110 commented 4 years ago

Same issue

rianet commented 4 years ago

Same issue

EinfachHans commented 4 years ago

Same Issue, please merge

galfert commented 4 years ago

We have the same issue, using this PR fixes it for us.

webmozart commented 4 years ago

Same problem here.

Towerism commented 4 years ago

Merge this. This broke all of our builds.

Surinderkaur329 commented 4 years ago

Same issue.

Michael-Francalanci commented 4 years ago

Same issue

tdakanalis commented 4 years ago

same issue

Towerism commented 4 years ago

@jimbergman ?? What are you talking about? The author didn't create the bucket on bintray.com. The author is following the article from the googleblog that specifically states how to get around this error. https://androidstudio.googleblog.com/2019/10/android-studio-40-canary-1-available.html

2085020 commented 4 years ago

Known issue for Missing Kotlin Maven repo If you upgrade an existing project to use Android Studio 4.0, you might see the following error message: Application build has failed with an error (Could not find org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.60-eap-25) To resolve this issue, include the following in your project's top-level build.gradle file: buildscript { repositories { ... maven { url 'https://dl.bintray.com/kotlin/kotlin-eap' } } }

allprojects { repositories { ... maven { url 'https://dl.bintray.com/kotlin/kotlin-eap' } } }

6a616e commented 4 years ago

27 (pinning the dependency) is a far better solution than this.

But I guess this one would work too. Please just merge any of those two. Thanks!

Sugamsm commented 4 years ago

Hello, we are blocked for a prod release. Can this be merged at the earliest please? Thank you.

fmendoza commented 4 years ago

@Sugamsm just use the @LuisEGR fork and you'll be good to go for now:

ionic cordova plugin rm cordova-support-google-services
ionic cordova plugin add https://github.com/LuisEGR/cordova-support-google-services.git
ionic build cordova build android/ios
LuisEGR commented 4 years ago

27 (pinning the dependency) is a far better solution than this.

But I guess this one would work too. Please just merge any of those two. Thanks!

Already changed this commit to fix the versión (But fixed to 3.+, no 3.5.0 so we can still get minor and patch updates)

You can look at the last commit: https://github.com/chemerisuk/cordova-support-google-services/pull/26/commits/e5e78088a935dd2b9923eb26f8b157b4b53ba700

I've tested this again with the same successful results, and also tested it with Android Studio 4 Canary, everything works fine.

Just waiting for anyone who can merge this.

andrefelipefraga commented 4 years ago

Same error here

MRCSDZ commented 4 years ago

I have the same problem

joeldhenry commented 4 years ago

Please merge this asap! broken all my builds

steppe87 commented 4 years ago

Same Problem!

volkancoskun commented 4 years ago

please merge this, its blocking our production release

lucbors commented 4 years ago

Same issue here... Going live next week. Please merge, the solution works for me.

solcre-gr commented 4 years ago

Same issue here!!

egonzalez-T commented 4 years ago

@LuisEGR I am using your fork but still seeing the issue after adding the plugin and removing the platform. Any suggestions?

LuisEGR commented 4 years ago

@LuisEGR I am using your fork but still seeing the issue after adding the plugin and removing the platform. Any suggestions?

You have to remove the plugins folder also:

rm -rf plugins/
rm -rf platforms/

and then run npm i to replace the current plugin you have in node_modules/ after that you can run your build command again.

khaled-developer commented 4 years ago

same problem please any recommendations ?

egonzalez-T commented 4 years ago

@LuisEGR I am using your fork but still seeing the issue after adding the plugin and removing the platform. Any suggestions?

You have to remove the plugins folder also:

rm -rf plugins/
rm -rf platforms/

and then run npm i to replace the current plugin you have in node_modules/ after that you can run your build command again.

This didn't work for me on my local env or in our CI environment. We don't persist the plugins or platforms directories.

Edit: @LuisEGR I found I had another plugin with the same dependency for gradle com.android.tools.build:gradle:+. As soon as I patched that to 3.+ as you suggested the android build worked.

dmitryuk commented 4 years ago

@chemerisuk Please accept some PR, we need to fix it, thank you.

visuallization commented 4 years ago

@chemerisuk It would be great if you can merge this fix. ATM we have to fork your plugin. Btw thanks for your plugin!

chemerisuk commented 4 years ago

The bugfix published in patch release 1.3.2, so just reinstall plugins and it will be fetched automatically

volkancoskun commented 4 years ago

@chemerisuk thanks!

ogtexter39 commented 4 years ago

@Sugamsm just use the @LuisEGR fork and you'll be good to go for now:

ionic cordova plugin rm cordova-support-google-services
ionic cordova plugin add https://github.com/LuisEGR/cordova-support-google-services.git
ionic build cordova build android/ios

This is working for me,Thank you....After running these command we should add google-service.json.

visuallization commented 4 years ago

@chemerisuk and @LuisEGR great thank you

josephlaw commented 4 years ago

i use below successfully build my project without upgrade cordova-support-goolge-services to 1.3.2.

file: platforms/android/cordova-support-goolge-services/[project]-build.gradle

buildscript { repositories { google() //mavenCentral() maven { url "https://maven.google.com" } maven { url 'https://dl.bintray.com/kotlin/kotlin-eap' } jcenter() } dependencies { classpath 'com.android.tools.build:gradle:+' classpath 'com.google.gms:google-services:4.2.0' } }

chadanuk commented 4 years ago

@chemerisuk Thanks for resolving this great work :)

pdsolutions commented 4 years ago

The bugfix published in patch release 1.3.2, so just reinstall plugins and it will be fetched automatically

I have the 1.3.2 and it's not working!!!

davidquon commented 4 years ago

@pdsolutions Did you try uninstall and install as this worked for me. Thanks @chemerisuk.

xixe commented 4 years ago

@pdsolutions Perhaps there are other plugins in your application that don't work and need to be fixed and updated. For example, cordova-pushwoosh-plugin did not work, but here https://github.com/Pushwoosh/pushwoosh-phonegap-plugin/issues/326 they solved the problem, now everything works fine for me.