android - can't compile VLC project with Android Studio

大城市里の小女人 提交于 2019-12-08 10:37:35

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!