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

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

    As a further temporary fix to follow-up on the suggestion from @MisterSmith, use a hook to re-apply the lock:

    
    

    with this overly wordy bash code:

    #!/usr/bin/env bash
    
    ## temporary fix for android studio EAP issue
    ## SOURCE: https://stackoverflow.com/a/58536638/56545
    if [ -d "platforms/android/cordova-support-google-services" ]; then
      file="platforms/android/cordova-support-google-services/app-build.gradle"
      from="classpath 'com.android.tools.build:gradle:+'"
      to="classpath 'com.android.tools.build:gradle:3.5.1'"
    
      change=`sed "s/$from/$to/" < "$file"`
      echo "$change" > "$file"
    fi
    

提交回复
热议问题