android-sdk-tools

Failed to run sdkmanager --list with Java 9

China☆狼群 提交于 2019-11-26 03:49:55
问题 I downloaded and installed: JDK ( jdk-9.0.1_osx-x64_bin.dmg ) from Oracle here Android SDK ( sdk-tools-darwin-3859397.zip ) from Google here. After configuring the PATH variable, I tried running sdkmanager , which replaced the android command for managing SDK components. However, it failed as shown here: $ sdkmanager --list Exception in thread \"main\" java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema at com.android.repository.api.SchemaModule$SchemaModuleVersion.<init>

You have not accepted the license agreements of the following SDK components [duplicate]

风格不统一 提交于 2019-11-26 03:00:48
问题 This question already has answers here : Automatically accept all SDK licences (42 answers) Closed last year . I downloaded the latest Android SDK tools version 24.4.1. I used the command line to install SDKs. I typed y when asked Do you accept the license \'android-sdk-license-c81a61d9\' [y/n]: y after that install succeeded. But when using Gradle 3.1 to build, the follows shows up You have not accepted the license agreements of the following SDK components: [Android SDK Platform 23, Android

Automatically accept all SDK licences

社会主义新天地 提交于 2019-11-26 00:35:09
问题 Since gradle android plugins 2.2-alpha4: Gradle will attempt to download missing SDK packages that a project depends on Which is amazingly cool and was know to be a JakeWharton project. But, to download the SDK library you need to: accept the license agreements or gradle tells you: You have not accepted the license agreements of the following SDK components: [Android SDK Build-Tools 24, Android SDK Platform 24]. Before building your project, you need to accept the license agreements and

Unable to execute dex: Multiple dex files define Lcom/myapp/R$array;

天大地大妈咪最大 提交于 2019-11-25 22:57:44
问题 Since updating to ADT 14 I can no longer build my project. It was building fine prior to updating. The error: [2011-10-23 16:23:29 - Dex Loader] Unable to execute dex: Multiple dex files define Lcom/myapp/R$array; [2011-10-23 16:23:29 - myProj] Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Lcom/myapp/R$array; Similar issues have been reported and I have tried the suggestions there including Restarting Eclipse . Cleaning the project and rebuild - Disable

R cannot be resolved - Android error

懵懂的女人 提交于 2019-11-25 22:12:30
问题 I just downloaded and installed the new Android SDK. I wanted to create a simple application to test drive it. The wizard created this code: package eu.mauriziopz.gps; import android.app.Activity; import android.os.Bundle; public class ggps extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); } } but Eclipse gives me the error R cannot be resolved on