android-sdk-tools

ProGuard can cause incorrect calculations

南楼画角 提交于 2019-12-03 12:19:54
I have met a pretty strange bug. The following small piece of code uses a rather simple math. protected double C_n_k(int n, int k) { if(k<0 || k>n) return 0; double s=1; for(int i=1;i<=k;i++) s=s*(n+1-i)/i; return s; } Edit Using ProGuard can make it go wrong on some devices. I have it confirmed on HTC One S Android 4.1.1 build 3.16.401.8, but judging by e-mails I got, a lot of phones with Android 4+ are affected. For some of them (Galaxy S3), american operator-branded phones are affected, while international versions are not. Many phones are not affected. Below is the code of activity which

Why is the intel x86 emulator accelerator (HAXM installer) is showing not compatible with windows?

泄露秘密 提交于 2019-12-03 11:40:39
Why is the intel x86 emulator accelerator (HAXM installer) is showing not compatible with windows. I have windows 10 ,64 bit. Check your system have Intel® VT-x Technology. If yes then goto bios settings and turn it on. Check This Link : https://software.intel.com/en-us/android/articles/installation-instructions-for-intel-hardware-accelerated-execution-manager-windows . I did face the same issue (standalone sdk manager showing that its not windows compatible). Step 1: Open Settings -> Android SDK -> SDK Tools Tab Select the HAXM entry (see the last entry) It installed it successfully!! NOTE:

Navbar overlapping last ListView item (Android)

一曲冷凌霜 提交于 2019-12-03 11:14:33
问题 My problem is similar to above Image I am getting this issue in Nexus Devices. I added margin from bottom by getting Bottom Navigation Bar height. But my application is showing extra margin from the bottom on a tablet. I do not want to change anything in my style file. Code:- <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:id="@+id/main_coordinator_layout" android:layout

AVD Emulator stuck on loading screen in Android Studio

孤街浪徒 提交于 2019-12-03 10:33:43
I decided to try Android Studio 2.0 having used Eclipse in the past but I'm having considerable difficulty getting the AVD to load correctly. I've done quite a bit of googling and research into the problem, both here on SO and Google.So far nothing has worked. The emulator simply hangs on the android load-up screen ever time I try to run it. I've seen it advised to use Genymotion but I would first prefer to resolve the issue natively in Android Studio to feel confident going forward using the IDE for building projects. Here's what I've tried: Complete reinstall of Android, SDK and SDK Tools

Android Studio - Issue with Android SDK on Windows 7

主宰稳场 提交于 2019-12-03 10:20:20
Im having a issue with the latest developer tool announced at Google i/o 2013 "Android Studio". I have successfully installed the program and am able to launch just fine. I can import exsisting projects and edit them just fine. However when i attempt to click the SDK Manager icon or the AVD Manager icon, Or when i attempt to create a new project. I get the following error "Please specify Android SDK" Now, I have already gone into File > Other Settings > Default Project Structure > under "Platform Settings" SDK's . I have created a Android SDK item with the source to my Android SDK folder.

I upgraded Android from targetSdk 22 to 23 and i'm getting a NoSuchMethodError. How could i fix this?

点点圈 提交于 2019-12-03 10:12:21
Here are is my config and my excpetion, i'm not sure how to fix this? compileSdkVersion 23 buildToolsVersion "23.0.1" defaultConfig { applicationId "com.rithmio.coach" minSdkVersion 19 targetSdkVersion 23 } 09-17 22:52:15.645 15249-15249/com.rithmio.coach E/AndroidRuntime﹕ FATAL EXCEPTION: main Process: com.rithmio.coach, PID: 15249 java.lang.NoSuchMethodError: No virtual method getColor(ILandroid/content/res/Resources$Theme;)I in class Landroid/content/res/Resources; or its super classes (declaration of 'android.content.res.Resources' appears in /system/framework/framework.jar) at com.rithmio

How to change Android minSdkVersion in flutter project

耗尽温柔 提交于 2019-12-03 09:19:53
问题 I was trying to start a flutter project for an App using bluetooth to communicate. For that, I was using flutter blue. Unfortunately, when trying to run (on an Android device) the first example I created I was met with the following error: FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:processDebugManifest'. > Manifest merger failed : uses-sdk:minSdkVersion 16 cannot be smaller than version 19 declared in library [:flutter_blue] /home/maldus

Updating to Android SDK Tools R22

若如初见. 提交于 2019-12-03 09:16:58
问题 I updated the SDK Tools to R22 and the ADT Plugin as well. Everything worked well before the update but since then, I have problems. Basically I have 2 library projects and an app project. One of my library projects contains some jar files in the "libs" folder. One of these jars is used in the app project itself for some initial setup. Before the update, everything worked fine, but now it asks me to add the jar to the build path and even if I do so, when running the app it still gives me

PANIC: Missing emulator engine program for 'x86' CPU. windows 10

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-03 08:27:07
I have this cordova app and tried to run cordova platform add android cordova emualate android but it give me below error from the console and when I check from the android studio, everything seems installed below is my android studio info and I my environment variables and I can confirm from the folder location that those path I put existed, any help, ideas please? Check this answer: PANIC: Missing emulator engine program for 'x86' CPU. and Mac and "PANIC: Missing emulator engine program for 'arm' CPU." For newer version of Android SDK, the emulator path should be /<xxx>/Android/sdk/emulator

Android Studio SDK Managed Disabled

谁都会走 提交于 2019-12-03 08:08:11
问题 I just downloaded the Android Studio .dmg for OSX. Per the installation instructions, I've dragged it to the application folder and launched the application. But the SDK Manager and AVD Manager are greyed out and are impossible to use. Any ideas on an installation step I may have missed? 回答1: For people coming for this same problem for Windows : you won't have an Android SDK anywhere if it is your first time with Android. Also, here the Android Studio doesn't come with a packed SDK Manager,