android-sdk-tools

Finding Android SDK on Mac and adding to PATH

浪尽此生 提交于 2019-11-29 18:43:15
I have installed Android Studio on my MacBook Air (OS Version 10.11 El Capitan) and have successfully written a small "hello, world" app and installed on device (Nexus 7) and ran on AVD. All I want to do now is be able to build the app and install it on device from the command line as opposed to Android Studio. I'm following the directions here: http://developer.android.com/training/basics/firstapp/running-app.html and the relevant line is: Make sure the Android SDK platform-tools/ directory is included in your PATH environment variable, then execute: The problem is I can't find the Android

Eclipse: Error in xml Graphical Layout after the new update

…衆ロ難τιáo~ 提交于 2019-11-29 16:33:18
I updated the Android tools, etc from : SDK Manager help->check for updates help-> Install new Software... It is actually an improvement with fragment now included when creating an activity. I get this error in each and every Graphical layout of every xml Error Log: I added layoutlib-api-22.4.2.jar Add to build path in the project but didn't worked ! How to solve this issue ? Thanks in advance The new update has a lot of problems the easy way is create your project from command line then import it to eclipse to do that: Go to sdk folder for example mine is (The folder included android execute)

Clean Blank Android App fails to build - 'failed to find Build Tools revision 23.0.0 rc1'

前提是你 提交于 2019-11-29 14:04:08
问题 New to Android, Tried to build a clean 'Blank App' android project. I get the below error, which is confusing because I have version 24 installed using the SDK manager not sure why its looking for versoin 23. It doesn't give me any kind of line number to look at though, any suggestions? Thank you. Configuration on demand is an incubating feature. :app:preBuild UP-TO-DATE :app:preDebugBuild UP-TO-DATE :app:checkDebugManifest :app:preReleaseBuild UP-TO-DATE :app

Keep on getting SDK error message

梦想与她 提交于 2019-11-29 13:40:49
I have been working on Android Studio for a while now. But today when I tried to create a new project, I got the following error message: Your Android SDK is out of date or is missing templates. Please ensure you are using SDK version 22 or later. You can configure your SDK via Configure | Project Defaults | Project Structure | SDKs I upgraded my SDK tools, android studio. I have also configured my sdk location in studio as per the message, but to no avail. I have faced the same issue, to solve it: 1- delete (or move) the projects folder ( AndroidStudioProjects ). 2- Run the Android-Studio (a

SDK Manager unable to fetch content - Connection to https://dl-ssl.google.com refused

荒凉一梦 提交于 2019-11-29 12:46:01
My Android SDK manager starts and then tries to fetch new updates. But it can't fetch content and shows following error in log window: Failed to fetch URL https://dl-ssl.google.com/android/repository/addons_list-1.xml , reason: Connection to https://dl-ssl.google.com refused I am using windows 7 32-bit and working with Eclipse ADT. Solutions: Starting SDK manager as Administrator Starting android.bat from command-line. Updating Eclipse ADT from help/check for updates . Disabling windows firewall from Control Panel\System and Security\Windows Firewall\Customize Settings Clearing download catche

Exclude Tablets from APK publishing

删除回忆录丶 提交于 2019-11-29 12:37:43
I need to limit the installation availability of my android app to only Phones (or devices that have SMS capability or SIM Card) I know I can limit the devices by screen size . But that won't work for me, because as you know we now have phones that have bigger and better resolution screens than some tablets. The functionality of my app revolves around sending SMS (Text) messages. If the device does not have a SIM Card, I don't want my app to get installed on that device because user reviews be like "the app does not work on my tablet". I'm also aware that it's probably not possible to filter

Android API level annotation for Android libraries

孤人 提交于 2019-11-29 12:00:56
问题 I am writing an Android library. The vast majority of the interface in the lbirary supports Android API level 10 or above. Some functionality, though, requires a higher API level. For instance, part of the library requires API 18 for Bluetooth Low Energy. For the sake of concreteness, let's say that the library produces three classes ClassA , ClassB and ClassC . ClassA uses functionality available in API 10, ClassB uses functionality available in API 14 and ClassC uses functionality available

Install Dependencies not resolved in ADT r20

元气小坏坏 提交于 2019-11-29 09:05:40
I just update my ADT and SDK to latest version of ADT r20 and Android 4.1 in SDK. Now in Eclipse i can not make a new project with default BlankActivity implemented in it. In the new project dialog i am sticking at the last screen which mention that there is "Install Dependencies" of android support library revision 8 required for this. I already have revision 9 installed in SDK. I also clicked " Install/Upgrade " button and it also fetch library from internet but after that no success. Below is screenshot of that dialog I know that we can create blank project by unchecking CreateActivity

How to Export an APK file using Eclipse?

给你一囗甜甜゛ 提交于 2019-11-29 08:51:19
There are two ways to export Application Package in Eclipse using Android Tools - Export Unsigned Application Package Export Signed Application Package Steps of generating an APK file using Eclipse - Go to File > Export From the Export window, go to Android > Export Android Application . Click Browse... and select the Android Application project to Export. Click Browse and select the debug.keystore. The default location for debug.key store on OSX is " /Users//.android/debug.keystore " and the password is " android ". When you're ready to release your app to an application marketplace, you

Blank activity not getting created using New->Android Activity Wizard

Deadly 提交于 2019-11-29 04:39:14
I had recently updated my Android SDK from 22.3 to 22.6. After updating, i tried creating a Blank Activity using the wizard. I am unable to create one as i used to create earlier. Also,i am unable to create LoginActivity, or Settings Activity etc. I somehow managed to create the Activity through wizard, i found that instead of extending simple Activity , my class was extending something else. Did anyone else faced such a problem? Please help me out in this. I have not suffer this problem with 22.6 but with 23. In my case, the problem seems to be the free maker sintax of the .flt files of the