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

前端 未结 9 1682
我寻月下人不归
我寻月下人不归 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 19:52

    In my case I had the same error first, then a whole bunch of other packages (org.ow2.asm:asm-analysis:4.0@jar, etc...) that could also not be resolved.

    The problem was that I upgraded Gradle to v5 (to be able to support the new version of Crashlytic). Doing so, I upgraded the repository to Google(), and deleted the old maven { url ... } entries.

    But I also deleted jcenter(), which was still required for a lot of nodes.

    Now my repository section looks like this:

    buildscript {
        repositories {
            maven { url "$rootDir/../node_modules/react-native/android" }
            google() // Google Maven repository
            jcenter()
        }
        //...
    

    So if someone else is reading this but was not happy with the current accepted solution of downgrading Gradle, check if you have jcenter().

    Ps.: I realize this is an old issue but I recently found it while searching on google.

提交回复
热议问题