cbeust / kobalt-intellij-plugin

An IntelliJ plug-in for Kobalt
21 stars 7 forks source link

Fail when run the project of branch"android_studio" in Intellij #65

Open Shinelw opened 7 years ago

Shinelw commented 7 years ago

Error:Kotlin: Conflicting versions of Kotlin runtime on classpath: /Applications/IntelliJ IDEA.app/Contents/lib/kotlin-runtime.jar, /Users/shinelw/Code/kobalt-intellij-plugin-android_studio/lib/kotlin-runtime.jar

Shinelw commented 7 years ago

I deleted one of the two files named "kotlin-runtime.jar". however,it cause another error.

/Users/peixuan/Code/kobalt-intellij-plugin-android_studio/src/com/beust/kobalt/intellij/manager/KobaltManager.kt
Error:(106, 61) Kotlin: Unresolved reference: PROXY_LOGIN
Error:(107, 51) Kotlin: Unresolved reference: PROXY_LOGIN
Error:(108, 52) Kotlin: Unresolved reference: PROXY_LOGIN
dmitry-zhuravlev commented 7 years ago

Android studio branch is outdated. Probably I will merge all the latest changes to it.

dmitry-zhuravlev commented 7 years ago

Merged all changes from master to android studio branch but not tested since have no Android Studio installed.... But I expect that the mentioned problem with Unresolved reference: PROXY_LOGIN should be solved. @cbeust Could you please build the plugin from Android branch and upload it to JB repository?

cbeust commented 7 years ago

@dmitry-zhuravlev I'm having difficulties building the kotlin-1.1.1-migration branch:

image

Maybe it would be easier if you build the .zip yourself and attach it to this issue for @Shinelw to try directly?

cbeust commented 7 years ago

I can't find how to fix:

Warning:Kotlin: Runtime JAR files in the classpath should have the same version. These files were found in the classpath:
    /Applications/IntelliJ IDEA.app/Contents/lib/kotlin-reflect.jar (version 1.0)
    /Applications/IntelliJ IDEA.app/Contents/lib/kotlin-runtime.jar (version 1.0)

These files are in the IDEA distribution, how do I fix this error?

dmitry-zhuravlev commented 7 years ago

Hm... looks weird. @cbeust FYI kotlin-1.1.1-migration merged to master since Kotlin 1.1 officially released and I see no reason to keep it separatelly anymore.

@Shinelw here is the builded plugin from Android studio branch, please have a try kobalt-intellij-plugin.zip

Shinelw commented 7 years ago

OK. I will try it. thanks for your help.