问题
I downloaded the VLC sources from this link: https://code.videolan.org/videolan/vlc-android and tried to open it in Android Studio 2.1 on Windows 8.
When the project was opened I got a message 'Could not find com.jakewharton.sdkmanager:sdk-manager-plugin:1.5.0-SNAPSHOT'
Anyone encountered this issue? How to cure it?
UPDATED: Downloaded the required pack to the directory it tried to search in (C:\Program Files\Android\Android Studio\gradle\m2repository\com)
Now I have CreateProcess error=2
回答1:
just annotate it in build.gradle like this(classpath and apply plugin):
dependencies {
classpath 'com.android.tools.build:gradle:2.1.0'
//classpath 'com.jakewharton.sdkmanager:sdk-manager-plugin:1.5.0-SNAPSHOT'
}
//apply plugin: 'android-sdk-manager'
回答2:
You should do
sh compile.sh
before you use Android Studio open the project. sorry for my english.
来源:https://stackoverflow.com/questions/36967067/android-cant-compile-vlc-project-with-android-studio