简体   繁体   English

离子构建apk android

[英]Ionic build apk android

I'm trying to build an apk from my ionic project. 我正在尝试从离子项目中构建apk。 When I launch ionic build android, i get this error 当我启动ionic build android时,出现此错误

FAILURE: Build failed with an exception.
  • What went wrong: A problem occurred configuring root project 'android'. 出了什么问题:配置根项目“ android”时出现问题。

    Could not resolve all dependencies for configuration ':_debugCompile'. 无法解析配置':_debugCompile'的所有依赖项。 Could not find any version that matches com.android.support:support-v13:23+ . 找不到与com.android.support:support-v13:23+匹配的任何版本。 Searched in the following locations: https://repo1.maven.org/maven2/com/android/support/support-v13/maven-me tadata.xml https://repo1.maven.org/maven2/com/android/support/support-v13/ Required by: :android:unspecified Could not find any version that matches com.google.android.gms:play-service s-gcm:+. 在以下位置搜索: https: //repo1.maven.org/maven2/com/android/support/support-v13/maven-me tadata.xml https://repo1.maven.org/maven2/com/android/ support / support-v13 /所需的::android:unspecified找不到与com.google.android.gms:play-service s-gcm:+匹配的任何版本。 Searched in the following locations: //repo1.maven.org/maven2/com/google/android/gms/play-services-gcm /maven-metadata.xml 在以下位置搜索://repo1.maven.org/maven2/com/google/android/gms/play-services-gcm /maven-metadata.xml

BUILD FAILED 建立失败

What is it? 它是什么?

This is an error related to android tools version .By executing the following commands will resolve your issue. 这是与android tools version有关的错误。执行以下命令即可解决您的问题。

android list sdk

and

android update sdk --no-ui --filter extra

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM