ionic打包apk报错问题A problem occurred configuring root project 'android'.

来源:互联网 发布:新一代人工智能规划 编辑:程序博客网 时间:2024/06/06 09:48

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

 What went wrong:A problem occurred configuring root project 'android'.> Could not resolve all dependencies for configuration ':_debugCompile'.   > Could not find any version that matches com.android.support:support-v4:24.1.1+.     Searched in the following locations:         https://repo1.maven.org/maven2/com/android/support/support-v4/maven-metadata.xml         https://repo1.maven.org/maven2/com/android/support/support-v4/     Required by:         :android:unspecified* Try:Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
错误原因是sdk的包没下载全,主要缺的是下面的几个文件,通过sdk manager下载;


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

2 0
原创粉丝点击