3.cordova打包apk报错问题

打包项目的时候报出了下面错误:

[html] view plain copy

 print?

  1.  What went wrong:  
  2. A problem occurred configuring root project 'android'.  
  3. > Could not resolve all dependencies for configuration ':_debugCompile'.  
  4.    > Could not find any version that matches com.android.support:support-v4:24.1.1+.  
  5.      Searched in the following locations:  
  6.          https://repo1.maven.org/maven2/com/android/support/support-v4/maven-metadata.xml  
  7.          https://repo1.maven.org/maven2/com/android/support/support-v4/  
  8.      Required by:  
  9.          :android:unspecified  
  10. * Try:  
  11. Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

错误原因是sdk的包没下载全,主要缺的是下面的几个文件,通过sdk manager下载;

下载完成之后,运行“cordova build android”命令

猜你喜欢

转载自blog.csdn.net/wx13227855087/article/details/81392008