我正在尝试检索ADT版本以生成一些系统报告.
如何使用命令行检查系统上安装的android开发人员工具的版本?
我在我的Android Studio(Windows)上有一个有效的Android应用程序,我正在尝试为该项目创建一个带有MAVEN的apklib.
当我在MAVEN(3.0.5)上运行编译时,我收到以下错误消息:
Failed to execute goal com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.6.0:generate-sources (default-generate-sources) on project userprofile: Execution default-generate-sources of goal com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.6.0:generate-sources failed: Invalid SDK: Platform/API level 16 not available. This command should give you all you need:
[ERROR] C:\Program Files (x86)\Android\android-studio\sdk\tools\android update sdk --no-ui --obsolete --force
Run Code Online (Sandbox Code Playgroud)
我运行上面的命令更新sdk但没有运气(它成功了,但我一直得到上面的错误).我的SDK Manager显示已安装API 16.
有任何想法吗?(Web上的所有问题都归结为在SDK Manager上安装API :()
我正在尝试使用 Apache Maven 3.2.1 和 Java 版本:1.7.0_55 在 Mac(操作系统版本 Yosemite)上生成一个基本的 Android 项目。我按照http://stand.spree.de/wiki_details_maven_archetypes获取“ANDROID-RELEASE ARCHETYPE”,如下所示:
mvn archetype:generate -DarchetypeArtifactId=android-release -DarchetypeGroupId=de.akquinet.android.archetypes -DarchetypeVersion=1.0.11 -DgroupId=com.uluvit -DartifactId=UluvitAndroid -Dpackage=com.uluvit
Run Code Online (Sandbox Code Playgroud)
mvn clean install我从 UluvitAndroid 目录中收到以下错误:
[INFO] Scanning for projects...
Downloading: http://repo.maven.apache.org/maven2/com/jayway/maven/plugins/android/generation2/android-maven-plugin/3.6.0/android-maven-plugin-3.6.0.pom
Downloaded: http://repo.maven.apache.org/maven2/com/jayway/maven/plugins/android/generation2/android-maven-plugin/3.6.0/android-maven-plugin-3.6.0.pom (21 KB at 25.7 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/com/simpligility/maven/progressive-company-super-pom/0.6.0/progressive-company-super-pom-0.6.0.pom
Downloaded: http://repo.maven.apache.org/maven2/com/simpligility/maven/progressive-company-super-pom/0.6.0/progressive-company-super-pom-0.6.0.pom (24 KB at 86.0 KB/sec)
Run Code Online (Sandbox Code Playgroud)
..
Downloading: http://repo.maven.apache.org/maven2/org/json/json/20080701/json-20080701.jar
Downloaded: http://repo.maven.apache.org/maven2/org/json/json/20080701/json-20080701.jar (37 KB at 48.9 KB/sec)
Downloaded: http://repo.maven.apache.org/maven2/org/apache/httpcomponents/httpcore/4.0.1/httpcore-4.0.1.jar (169 KB at 87.7 KB/sec)
Downloaded: http://repo.maven.apache.org/maven2/xpp3/xpp3/1.1.4c/xpp3-1.1.4c.jar (118 KB at 69.4 KB/sec)
Downloaded: http://repo.maven.apache.org/maven2/org/apache/httpcomponents/httpclient/4.0.1/httpclient-4.0.1.jar (285 KB at …Run Code Online (Sandbox Code Playgroud)