android-sdk-tools

Failed to install the following Android SDK packages as some licences have not been accepted

我与影子孤独终老i 提交于 2020-01-14 13:12:17
问题 I need to integrate a continuous integration system in my Android project, I have seen that CodeShip is a good alternative so I have created and configured a project to compile my Android application using the following script: # Install java 8 jdk_switcher home oraclejdk8 jdk_switcher use oraclejdk8 export JAVA8_HOME=/usr/lib/jvm/java-8-oracle export BUILD_TOOLS_VERSION=23.0.3 export ANDROID_SDK=24 export ANDROID_SDK_REV=24.4.1 # # Install android sdk export SDK_TAR=android-sdk_r$ANDROID_SDK

List installed sdk package via command line

冷暖自知 提交于 2020-01-12 02:49:05
问题 I want to list the installed sdk packages by command lines.(For some reasons I cannot use the GUI) I have done some research and found out several commands to list the available packages on the remote server, but I fail to find any command to list the installed sdk packages yet. Thanks 回答1: With Android SDK Tools 25.2.3 (and higher): $ANDROID_HOME/tools/bin/sdkmanager --list See: https://developer.android.com/studio/command-line/sdkmanager.html#usage 回答2: As described in $ANDROID_HOME/tools

Can't install Intel HAXM for Android Studio. ERROR x86 emulation currently requires hardware acceleration

我的梦境 提交于 2020-01-11 09:18:09
问题 I just installed Android Studio without any problems. But when I run the emulator, I get an error: Cannot Launch AVD in emulator. Output: emulator emulator: ERROR: x86 emulation currently requires hardware acceleration! Please ensure Intel HAXM is properly installed and usable. CPU acceleration status: HAX kernel module is not installed! I have found a lot of similar posts and I have tried a few things but nothing has worked so far so I decided to make a post. What I've tried: Install HAXM

How to exit the android application on backpress?

倖福魔咒の 提交于 2020-01-11 07:37:06
问题 The situation could be like say, I've 5 activities. Say Main activity, Activity 1, Activity 2, Activity 3 and Activity 4. One can use the Activity 1,2,3 & 4 directly with the help of buttons so inserted on Main Activity layout. Situation: User enters into the Main Activity, and presses a button to enter into Activity 2. Then he back presses and comes back to Main Activity. from there he now enters Activity 3 with the help of another button and similarly when he presses back button he enters

How to avoid reverse engineering of an APK assets folder resources items file?

[亡魂溺海] 提交于 2020-01-11 03:12:47
问题 I am developing a android application, in this application assets folder contains some password and some imp information. I want to prevent a hacker from accessing any resources, assets or source code from the APK file , Mainly assets resources . How can I achieve this thing? I found and also think about following solutions, Please make me correct and provide your suggestions on this. 1) Put every data or files in assets folder in encrypted way. In this solution when i require to use this

Where is the “extra” folder in Android SDK Packages Installation?

ε祈祈猫儿з 提交于 2020-01-06 01:24:07
问题 I am a beginner to Android Mobile Development. Went to the web site to install Android studio http://developer.android.com/sdk/installing/adding-packages.html If you go to point 2, where it says "Get the support library for additional APIs", and it says, "Open the Extras directory and select.." Where is the Extras directory? I could not find it under C:\Program Files\Android. Nor did I see it when I loaded up the SDK Manager. Experts, please advise? 回答1: scroll all the way to the bottom in

inMutable cannot be resolved or is not a field

亡梦爱人 提交于 2020-01-05 22:21:13
问题 I'm getting an error message stating "inMutable cannot be resolved or is not a field" and I believe this is because this was introduced in API 11 and I was previously using API 8. I've upgraded my manifest to use minSDK 19, and updated my build path to include the external JAR for SDK 19, cleaned the project and I'm not sure what else I can do at this point in order to resolve this issue. Source: private Bitmap getThumb(String s) { //Bitmap bmp = Bitmap.createBitmap(150, 150, Bitmap.Config

How to update android emulator to 6.0.1

烈酒焚心 提交于 2020-01-03 10:33:03
问题 I am getting error 'E/Surface: getSlotFromBufferLocked: unknown buffer: 0xab7cffe0'. Upon research, I got understood that it is known issue in android 6.0. How to update android emulator from 6.0 to 6.0.1? In SDK manager I can see Android 7.0 and android 6.0 are installed ,but 6.0.1 is not there. How should I update 6.0 to 6.0.1? Also in AVD manager I cannot see any system image other that 6.0. I have installed other versions also, then how to select those versions of android for my AVD? Also

How to update android emulator to 6.0.1

江枫思渺然 提交于 2020-01-03 10:31:44
问题 I am getting error 'E/Surface: getSlotFromBufferLocked: unknown buffer: 0xab7cffe0'. Upon research, I got understood that it is known issue in android 6.0. How to update android emulator from 6.0 to 6.0.1? In SDK manager I can see Android 7.0 and android 6.0 are installed ,but 6.0.1 is not there. How should I update 6.0 to 6.0.1? Also in AVD manager I cannot see any system image other that 6.0. I have installed other versions also, then how to select those versions of android for my AVD? Also

Installing apk on android device via ADB with Java program on Linux

↘锁芯ラ 提交于 2020-01-03 05:17:31
问题 I am trying to pass a path from Java's inbuilt file manager to ADB with java program on Linux to install apk on android device. When the code is executed the apk selected using file manager never gets installed. Here is the code: JFileChooser chooser = new JFileChooser(); FileNameExtensionFilter filter = new FileNameExtensionFilter( "APK Files", "apk"); chooser.setFileFilter(filter); int returnVal = chooser.showOpenDialog(getParent()); if(returnVal == JFileChooser.APPROVE_OPTION) { System.out