简体   繁体   中英

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?

您应该将替代 IdePath 更改为:

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM