Android Command line tools sdkmanager always shows: Warning: Could not create settings

I use the new command line tools for Android because the old sdk-tools repository of Android isn’t available anymore. So I changed my gitlab-ci to load the commandlintools. But when I try to run it I get the following error: Warning: Could not create settings java.lang.IllegalArgumentException at com.android.sdklib.tool.sdkmanager.SdkManagerCliSettings.<init>(SdkManagerCliSettings.java:428) at com.android.sdklib.tool.sdkmanager.SdkManagerCliSettings.createSettings(SdkManagerCliSettings.java:152) at com.android.sdklib.tool.sdkmanager.SdkManagerCliSettings.createSettings(SdkManagerCliSettings.java:134) at com.android.sdklib.tool.sdkmanager.SdkManagerCli.main(SdkManagerCli.java:57) at … Read more

How to install Android SDK Build Tools on the command line?

I want to setup the Android dev environment from command line, and encounter the following issue: wget http://dl.google.com/android/android-sdk_r22.0.5-linux.tgz after extract the file, run tools/android update sdk –no-ui However, it is too slow on running Fetching https://dl-ssl.google.com/android/repository/addons_list-2.xml The result is that nothing in folder build-tools, and I want is aapt and apkbuilder, since I want to … Read more

What is the difference between compileSdkVersion and targetSdkVersion?

I have looked at the documentation for building with Gradle, but I’m still not sure what the difference between compileSdkVersion and targetSdkVersion is. All it says is: The compileSdkVersion property specifies the compilation target. Well, what is the “compilation target”? I see two possible ways to interpret this: compileSdkVersion is the version of the compiler … Read more