使用Android Studio,新建了一个HelloWorld的程序,连接手机(三星S5),启动时报错:
* What went wrong:
A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugCompile'.
> Could not find any version that matches com.android.support:support-v4:19.+.
问题原因:找不到支持库,请在Android SDK Manager中安装。
所以打开我们的SDK Manager,安装Extras中的Android Support Library及Android Support Repository即可,如下图所示: