How to find ADB root path programatically?
I am developing a plugin for Android Studio. For that, I need adb support.
If the development machine configured with ADb (setting environment variable), it is easy to execute commands. But the system is not configured with ADB, I need the root path for ADB.
So how to find the ADB path that Android Studio is using by programmatically?
Please sign in to leave a comment.
org.jetbrains.android.sdk.AndroidSdkUtils#getAdb
It is not resolved in my project. Maybe the jar is not with me. Can you please help me to find out the jar?
It is part of Android Studio, nothing special.
I am developing in IntelliJ IDEA CE. There is no package with org.jetbrains.android.*
The external libs

Then you didn't include Android plugin as required dependency or did not choose AS as target IDE.
http://www.jetbrains.org/intellij/sdk/docs/basics/getting_started/plugin_compatibility.html
my plugin.xml looks like
Previously I only have
<depends>com.intellij.modules.lang</depends>. But I have added
<depends>com.intellij.modules.java</depends>
And I rebuild my code, But there is no change
<depends>com.intellij.modules.androidstudio</depends> This one is getting error.
You must either add Android plugin to classpath of your IntelliJ Platform SDK or use Android Studio as Platform SDK instead of IntelliJ CE.
See http://www.jetbrains.org/intellij/sdk/docs/basics/plugin_structure/plugin_dependencies.
So how can I convert this existing source to Android Plugin?
http://www.jetbrains.org/intellij/sdk/docs/basics/plugin_structure/plugin_dependencies this website is not available
Sorry, correct link is www.jetbrains.org/intellij/sdk/docs/basics/plugin_structure/plugin_dependencies.html. It has all instructions how to setup/modify setup your project.