Error: Could not find org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.60-eap-25 in Ionic 3

前端 未结 9 1685
我寻月下人不归
我寻月下人不归 2021-01-30 19:39

I am getting the following error suddenly while building Ionic 3 app for Android.

Could not find org.jetbrains.kotlin:ko         


        
9条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-30 20:05

    EDIT 10/28/19:

    cordova-support-google-services was updated today to version 1.3.2 which changes the classpath from classpath 'com.android.tools.build:gradle:+'

    to

    classpath 'com.android.tools.build:gradle:3.+'

    which seems to fix the kotlin error

    Original Answer

    I got mine to build successfully by doing the following:

    I edited platforms->android->cordova-support-google-services->myAppName-build.gradle

    and changed

    maventCentral()

    to

        maven { url "https://maven.google.com" }
        maven { url 'https://dl.bintray.com/kotlin/kotlin-eap' }
    

    That solved the kotlin error then I was getting a different error that I resolved by changing

    classpath 'com.google.gms:google-services:4.2.0'
    

    to

    classpath 'com.google.gms:google-services:4.1.0'
    

    It then built successfully.

提交回复
热议问题