android-sdk-tools

Multiple entries with same key: 24.0.0 rc4=24.0.0 rc4

☆樱花仙子☆ 提交于 2019-12-01 06:06:37
问题 After upgrade Android Studio to 2.2.3 it shows an error with: IllegalArgumentException: Multiple entries with same key: 24.0.0 rc4=24.0.0 rc4 and 24.0.0 rc4=24.0.0 rc4 回答1: Had this occur recently after updating a few bits. My solution was to open the Preferences in Android Studio, browse to Android SDK -> SDK Tools , you will most likely see multiple copies of 24.0.0 rc4 (one with a dash instead of a space in the version name) under Android SDK Build-Tools . Uninstall both copies by

Android ADT 23.0.4 is showing Compile With: API21:Android 4.X(L Preview) Instead of API21:Android 5.0

本秂侑毒 提交于 2019-12-01 05:52:08
What I did? I updated my SDK from L preview API 20 to new Android 5.0 API 21 andADT to 23.0.4 in my Ubuntu. Problem: Android ADT 23.0.4 not showing Compile With: API21:Android 4.X(L Preview) Instead of Compile With:API21:Android 5.0 Screenshots: (Files-->New-->Android Application Project-->Compile with/target sdk) Highlighted in red texts should be changed to Compile With:API21:Android 5.0!!` SDK(updated to latest): ADT(updated to latest): it's a bug ? or So I'm only the one facing this or it's just error?, I need to download the fresh copy of SDK to solve this error!!?? After the project

SmsMessage.createFromPdu is deprecated in android API level 23

青春壹個敷衍的年華 提交于 2019-12-01 04:20:01
问题 I am trying to read received SMS using below code, it is working below API level 23, but in API level 23 createFromPdu method is deprecated. In google docs it has an alternate method but how do I use it. public class IncomingSms extends BroadcastReceiver { // Get the object of SmsManager final SmsManager sms = SmsManager.getDefault(); public void onReceive(Context context, Intent intent) { // Retrieves a map of extended data from the intent. final Bundle bundle = intent.getExtras(); try { if

Google play services out of date. Requires 5089000 but found 3136130

*爱你&永不变心* 提交于 2019-12-01 04:18:06
问题 I'm trying to use Google cloud messaging for an android app (Target name: Google APIs , platform: 4.3 , API level: 18 . I implemented my GCM client by following the isntructions here: http://developer.android.com/google/gcm/client.html, and setup play services by following the steps here: http://developer.android.com/google/play-services/setup.html#Setup, but still get the above error Most of the solutions I've found on stack overflow redirect to the above two links, or suggest that we change

How can I change the --android-platform in Qt Creator to not be android--1 in debug mode?

这一生的挚爱 提交于 2019-12-01 03:36:25
I'm trying to run a new Qt Quick application on my android device through Qt Creator. However, Qt Creator keeps using Android API version 1 whereas I would like it to target an Android API version 10 ( aka Android 2.3.3). When I run Debug->Start Debugging and then select either an armeabi or armeabi-v7a on my physical device and emulators, Qt mysteriously continues to target android--1 : "C:\Qt\5.4\android_armv5\bin\androiddeployqt.exe" --input C:/dev/qc/build-qc_mobile-Android_for_armeabi_GCC_4_9_Qt_5_4_0-Debug/android-libqc_mobile.so-deployment-settings.json --output C:/dev/qc/build-qc

Eclipse and Android SDK issue “aapt.exe has stopped”

我只是一个虾纸丫 提交于 2019-12-01 03:04:31
I'm having an issue on my Windows 7 64-bit machine with aapt.exe. It is throwing the following error: aapt.exe has stopped working Its not project related, Since i've tried multiple projects, it seems to happen with any workspace in Eclipse as well. New project or old project it just keeps failing when building and running my application. I'm using the latest JDK-6 with the latest Android SDK 22.0.1, with Build Tools and Platform tools. Deleting the entire SDK and Eclipse and unziping and resetting up doesnt seem to resolve it either. Any ideas? Remove id from style like here @+id then build

NativeScript can't find Android SDK on Mac OS

孤街浪徒 提交于 2019-12-01 00:51:47
I've installed NativeScript and I try to do tns platform add android but it doesn't work. ANDROID_HOME path is correct and I have installed SDK (API 22 and the newest one) and tools (25.0.2). When I run tns doctor it says: WARNING: The Android SDK is not installed or is not configured properly. Cannot find a compatible Android SDK for compilation. To be able to build for Android, install Android SDK 22 or later. You need to have the Android SDK Build-tools installed on your system. You can install any version in the following range: '>=25.0.2'. You need to have Android SDK 22 or later and the

Check if Android SDK package is installed programmatically

不羁的心 提交于 2019-11-30 23:13:13
问题 I'm making an alternative for the GUI stand-alone SDK Manager (it's gone on Android SDK 25), I've found in Android Studio the required XMLs to retrieve packages. Android Repository https://dl.google.com/android/repository/repository2-1.xml Android System Images https://dl.google.com/android/repository/sys-img/android/sys-img2-1.xml Android TV System Images https://dl.google.com/android/repository/sys-img/android-tv/sys-img2-1.xml Android Wear System Images https://dl.google.com/android

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

江枫思渺然 提交于 2019-11-30 21:43:34
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 assets folder data then i need to do decryption every time that make my application slow. 2) To secure

Android sdkmanager available packages

倖福魔咒の 提交于 2019-11-30 20:55:12
Is there a way to list the whole name of a package so I can install it. If I do a sdkmanager --list , I get a sample of the following: system-images;a...ult;armeabi-v7a | 4 | ARM EABI v7a System Image system-images;a...-10;default;x86 | 4 | Intel x86 Atom System Image system-images;a...pis;armeabi-v7a | 5 | Google APIs ARM EABI v7a Syste... system-images;a...google_apis;x86 | 5 | Google APIs Intel x86 Atom Sys... system-images;a...ult;armeabi-v7a | 2 | ARM EABI v7a System Image system-images;a...ult;armeabi-v7a | 4 | ARM EABI v7a System Image system-images;a...15;default;mips | 1 | MIPS System