Debugging Intellij Idea Plugin in Android Studio on Windows

391 Views Asked by At

I am building an plugin for Intellij Idea / Android Studio and I am unable to debug it on Android Studio.

As i've seen in the documentation that in order to debug it in Android studio the alternativeIdePath needs to be set with the path to Android Studio. I did that but it seems that the path is not corect.

I did some research and I found how it sould be on mac and linux but not on Windows.

the values I tried are :

alternativeIdePath 'C:\\Program Files\\Android\\Android Studio\\bin\\studio64.exe'

and

alternativeIdePath 'C:\\Program Files\\Android\\Android Studio\\bin'

the error I got for the first variant is : Directory 'C:\Program Files\Android\Android Studio\bin\studio64.exe' specified for property 'ideaDirectory' is not a directory.

and for the second is: C:\Program Files\Android\Android Studio\bin\build.txt (The system cannot find the file specified)

Do you know how it should be set for windows?

1

There are 1 best solutions below

0
On

You should change alternativeIdePath to:

alternativeIdePath 'C:\\Program Files\\Android\\Android Studio'