Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Debugging Intellij Idea Plugin in Android Studio on Windows

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?

like image 517
MihaiBC Avatar asked Oct 15 '22 13:10

MihaiBC


1 Answers

You should change alternativeIdePath to:

alternativeIdePath 'C:\\Program Files\\Android\\Android Studio'
like image 88
IvanGalitskiy Avatar answered Oct 27 '22 08:10

IvanGalitskiy