android-sdk-tools

Android sdk for Intellij IDEA

馋奶兔 提交于 2019-12-07 13:11:28
问题 I'm trying to setup IntelliJ IDEA to develop android applications and I faced an issue with android sdk. As far as I know, I need to download the sdk separately. But I all I managed to find was Android command line tools which is obviously not something I need. So my question how can I get android sdk for IntelliJ IDEA? 回答1: Same problem I have with IDEA 2017.1.1. I installed tools_r25.2.3-windows.zip and managed to install them. I've done: unzipped it to C:\Android\android_sdk\ renamed

Error: ANDROID_HOME is not set and “android” command not in your PATH on OS X

馋奶兔 提交于 2019-12-07 03:50:36
问题 I am getting this error in terminal when attempting to execute this command: $ cordova platform add android I read these answers here: Error: ANDROID_HOME is not set and "android" command not in your PATH. You must fulfill at least one of these conditions ANDROID_HOME is not set and "android" command not in your PATH Phonegap however I don't know where to place the code they provide. I am running OS X. 回答1: Option 1 for windows Right click on My computer -> properties -> Advanced system

How can Android project compile when imported class is missing in SDK?

删除回忆录丶 提交于 2019-12-06 20:27:35
问题 OK, perhaps it is very simple, but I just can not figure it out right now. I have imported google sample project Card Reader in Android Studio 1.5.1, it compiles at compileSdkVerison 23, it works on my Mobile. Then I walked through the SDK while came to source code to android.nfc.tech.BasicTagTechnology , I found TransceiveResult inside android.nfc.tech.BasicTagTechnology#transceive couldn't not be resolved then I found the class TransceiveResult is missing in my D:\Android\sdk\platforms

An error occurred after update the Android SDK Tool REV 22 “Unable to resolve superclass of L”

假如想象 提交于 2019-12-06 19:29:58
问题 The project is good yesterday, but when I update Sdk tools and ADT today(REV 22), the error occurred like "Unable to resolve superclass of L..." when I run the project. My project uses ActionbarSherlock and SlidingMenu. I have already tried: Copy external jars to my project's "libs" folder. (I have already do this before) Properties->Java Build Path->Projects and add the library project there. clean and rebuild reset the computer or IDE Try other project which also contains project lib Follow

Error within Debug UI: java.lang.reflect.InvocationTargetException after updating Android SDK Tool and ADT

巧了我就是萌 提交于 2019-12-06 13:04:13
Just now I updated Android SDK Tools to 22.6 and then updated ADT to 22.6. But after that I'm not able to run my android projects in eclipse. I'm getting an error dialog showing this message, Error within Debug UI: java.lang.reflect.InvocationTargetException Should I update DDMS also? here is the error window, Problem solved successfully by updating DDMS. Hope this will be helpful to someone, facing the same problem 来源: https://stackoverflow.com/questions/22345836/error-within-debug-ui-java-lang-reflect-invocationtargetexception-after-updatin

SDK Manager in Android Studio

萝らか妹 提交于 2019-12-06 07:36:42
I just installed Android Studio. How do I run SDK Manager in Android Studio? The Android docs say to go to Configure->SDK Manager . But when I do that, the SDK Manager button is grayed out: Is there something else I need to do or download? You will have to link the android sdk to intelliJ. Go to Project Defaults > Project Structure. Give the path to the SDK in the Android SDK location. If this is done, you will be able to run the SDK manager. If you don't have the SDK tools, download them from the developer.android.com website. Use this link to developer website and download android-sdk.zip

How to make “Hierarchy Viewer” work in a real device?

六眼飞鱼酱① 提交于 2019-12-06 05:54:08
问题 I am new to android development I started using "Hierarchy Viewer"...it works fine with emulator that comes up with sdk. The thing is I want to use this on a real device. I have made my research and found because of security reasons it works only on emulator and developers phone, from various sources. Official Android Developer Site But I also found that by using the "ViewServer.java" in our project, we can use this tool on real device. GitHub romainguy / ViewServer Link: What I understand is

I am getting a no space left on device error

别说谁变了你拦得住时间么 提交于 2019-12-06 03:25:19
问题 I tried installing a tablet as a virtual device and after installing it , It does not even show and my gradle stopped syncing citing no space on device... Also I could not get the gradle vm settings to increase the memory using the option -Xmx512m I could not delete the virtual device as it does not show any as intsalled , i cannot add as it shows no image available and the standalone sdk manager also does not open saying lack of memory... I have a lot of disk and RAM free , and am at a loss.

What is android:immersive attribute in Android manifest file?

微笑、不失礼 提交于 2019-12-06 03:19:19
I was developing an app for Google glass and i was facing a problem with my activity. They ended when i didn't interact with them for 7 to 10 seconds. After the screen turned off and i tapped my glass to wake it up again, my activity would disappear and i was on ok glass Screen. I searched a lot but couldn't find any solution to this. Then i came across this android:immersive attribute in Activity in AndroidManifest.xml file. After using android:immersive="true" in my activity (AndroidManifest.xml file). My activity stays alive even after screen is timed out and my activity resumes when i tap

Android SDK Lint tool Ignoring NewAPI warnings

一个人想着一个人 提交于 2019-12-06 03:02:40
问题 I am running the Lint tool from Eclipse(Android SDK). My settings are default and NewApi is set up as Error in my Android Lint Settings However, when I run Lint (by Package Explorer > Android Tools > Run Lint: Check for Common Errors .), It seems to ignore the fact that I have used API methods higher than the android:minSdkVersion in my manifest XML. What am I doing wrong? UPDATE: I tried to do the check by Lint command line tool by: lint "C:\Android\workspace\MyProject" -- still didnot show