BlueBoxWare / LibGDXPlugin

An IntelliJ plugin for use with LibGDX
Apache License 2.0
147 stars 8 forks source link

Got an error when trying to install LibGDXPlugin on Android Studio #11

Closed FuriFull closed 7 years ago

FuriFull commented 7 years ago

Good day to you @BlueBoxWare . First of all, when i am trying to install any plugins from LibGDXInspections (annotations, kotlin-runtime, etc.), i'm getting an error: "Fail to load plugin descriptor from file annotations-13.0.jar"

So i'm able to only install the LibGDXPlugin with some errors, and when i'm running AS, i'm getting this error when compiling build.graddle:

Plugin Error: LibGDX Inspections threw an uncaught NoSuchMethodError. Disable Plugin

com.gmail.blueboxware.libgdxplugin.components.VersionManager@df32fa2: kotlin.text.StringsKt.toLongOrNull(Ljava/lang/String;)Ljava/lang/Long;

Please explain how can i use it, many thx.

BlueBoxWare commented 7 years ago

Does this happen when you install from https://plugins.jetbrains.com/plugin/8509-libgdx-inspections (or Android Studio's plugin manager) or when you install from source?

FuriFull commented 7 years ago

That happens when i try to install from https://plugins.jetbrains.com/plugin/8509-libgdx-inspections. I also tried to install from source, but i've got an error when installing Grammar-Kit to Android Studio, also had problems with Plugin DevKit.

BlueBoxWare commented 7 years ago

And which version of the Kotlin plugin do you have installed in Android Studio?

FuriFull commented 7 years ago

I will try to re-install Android Studio and try to install https://plugins.jetbrains.com/plugin/8509-libgdx-inspections from the beginning

FuriFull commented 7 years ago

Well, i've :

  1. Reinstalled Android Studio;
  2. Installed Kotlin;
  3. Put LibGDX Inspections 1.13 to AS plugin directory;
  4. Installed only libgdxplugin_1.13.jar Now everything should work fine? I've tried to mark uiskin.json as a LibGDX skin, but still have jsontest instead of https://github.com/BlueBoxWare/LibGDXPlugin/blob/master/images/skinCompletion.gif?raw=true

and .fnt does not load in window, just infinite Loading...

Did i do everything right or with mistakes?

BlueBoxWare commented 7 years ago

When you download the plugin from plugins.jetbrains.com, you get a zip file. You should not unzip it, but in Android Studio go to Settings->Plugins->"Install plugin from disk" and select the zip file you downloaded.

But the easiest way is: Settings->Plugins->"Browse repositories" and search for "LibGDX" and install the plugin from there.

FuriFull commented 7 years ago

Thanks a lot, everything is fine now. That was very weird of me trying to install unzipped files... Have a nice day!