android-sdk-tools

I have updated SDK.R cannot be resolved to a variable

走远了吗. 提交于 2019-12-13 04:34:54
问题 I have updated SDK for the latest but still I am getting this error .R cannot be resolved to a variable. I know its not generating R.java. what should I do to resolve this issue. 回答1: update your Platform-Tools and install Android Build tools too... and restart your eclipse... hope this helps.. check here for more info.. 回答2: Assuming your Java code is correct, most likely your cause is an error in a resource or your AndroidManifest.xml file that is preventing R.java from being regenerated.

Apache http client error with json version provided by android

老子叫甜甜 提交于 2019-12-13 02:01:33
问题 I am trying to parse json from url, Apache http client removed from Android API level 23. If I use httpclient.jar files in android studio, it shows error like: "Warning:Dependency org.json:json:20090211 is ignored for debug as it may be conflicting with the internal version provided by Android." dependencies{ compile files('libs/httpclient-4.5.1.jar') compile files('libs/httpcore-4.5.1.jar') } How to resolve this error. Thank you. 回答1: Remove the above two statements from your build.gradle

React Native : target with hash string 'android-28' not found

老子叫甜甜 提交于 2019-12-13 00:56:50
问题 I've got the below problem when trying to build a React Native android app from command line. It is on Ubuntu Server so no Android Studio GUI. I do have android-28 installed in the folder which the error states. $ANDROID_HOME is at /home/build/android-tools build@v-ope-we-build-vm:~/Awesome/android$ ./gradlew assembleRelease --scan > Configure project :app Checking the license for package Android SDK Build-Tools 28.0.3 in /home/build/android-tools/licenses License for package Android SDK

Error : WatchActivity cannot be resolved to a type,Why i'm getting this? [duplicate]

血红的双手。 提交于 2019-12-12 09:10:03
问题 This question already has answers here : Update Eclipse with Android development tools v. 23 (43 answers) Closed 5 years ago . Well i have update my Android Sdk to 23 & even Eclips ADT plugin to the latest version. why i'm getting the error in import library of WatchActivity . And i have already fixed this issue "Update eclipse with Android Development tools 23". When i create a new android project with "Blank Activity" my Src & Layout folder is empty. When i create a new android project with

Unity3D - Failed to re-package resources | Android APK

守給你的承諾、 提交于 2019-12-12 03:25:54
问题 I'm trying to compile a simple game without any additional plugin, but I am facing the errors below: CommandInvokationFailure: Failed to re-package resources. See the Console for details. C:\Program Files (x86)\Android\android-sdk\build-tools\24.0.0-preview\aapt.exe package --auto-add-overlay -v -f -m -J gen -M AndroidManifest.xml -S "res" -I "C:/Program Files (x86)/Android/android-sdk\platforms\android-23\android.jar" -F bin/resources.ap_ stderr[ ] stdout[ -----------------------------------

Issues with AVD Manager (v21.0.1 and 21.1rc2): xxhdpi not supported

♀尐吖头ヾ 提交于 2019-12-11 18:53:50
问题 I'm having trouble creating a custom AVD for XPeria ZL phone using the Device Definitions tab. I noticed the AVD manager is unable to parse devices.xml file if one of them uses the xxhdpi density. As a side note, the emulator is no longer able to scale display to real size. Has anyone faced these issue and was able to fix it? I really need to emulate that device for a POC we are working on. 回答1: For the first issue, about the error in parsing after adding xxhdpi devices, try updating the

Run app with higher SDK on lower SDK

。_饼干妹妹 提交于 2019-12-11 16:55:29
问题 I wanted to know whether an app developed in Android 3.0 runs on Android 2.1. If so, how can I do that? If I develop the app using the libraries from 3.0 such as fragments, will it work in 2.1? 回答1: It is possible to write an app targeted for 3.0 that also runs under 2.1. However, it requires careful use of libraries and the Compatibility library. The first step is to set appropriate android:minSdkVersion and android:targetSdkVersion values in your manifest file. This will define which range

Unable to build Android APK - Execution failed for task ':app:mergeDebugResources'

和自甴很熟 提交于 2019-12-11 12:13:26
问题 Some People marked this question as duplicate. But the issue is still not solved even after I tried all the methods which was given in similar question. aapt2.exe still throwing error and saying aapt2.exe is stopped working. I have developed a project in Mac machine and it's completely working fine in that. Now I wanted to move this project to another system so that other members can also work in it. When I installed Android Studio and open this same project in Windows machine its showing me

Android Studio doesn't install SDKs… what?

╄→尐↘猪︶ㄣ 提交于 2019-12-11 06:48:00
问题 I'm trying to use Cordova to build a hello world app and after adding ANDROID_HOME variable (You'd be shocked how long that took to figure out) all I keep seeing when building is this: BUILD FAILED Total time: 1 mins 6.679 secs Error: /Users/vladdy/Desktop/laboratory/cordovaBackgroundApp/platforms/android/gradlew: Command failed with exit code 1 Error output: FAILURE: Build failed with an exception. What went wrong: A problem occurred configuring root project 'android'. Failed to find target

AndroidManifest.xml processed output tool

人走茶凉 提交于 2019-12-11 04:17:26
问题 I'm going off a very vague memory, but there's a tool that is included in the Android SDK which, when you run it against an unsigned or a debug-signed application APK (I do not recall which), it outputs a 'processed' AndroidManifest file. Howevever, I forgotten what the tool/flags are and I cannot find it online! Can someone help me? I hope the terminology is understandable but, you ran this SDK tool with a parameter on your unsigned/debug-signed APK (as I say, I can't recall which) and it