android-sdk-tools

How to change Android minSdkVersion in flutter project

≯℡__Kan透↙ 提交于 2019-12-03 00:05:32
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/Projects/flutter/polmac/build/flutter_blue/intermediates/manifests/full/debug/AndroidManifest.xml as the

Android plugin 1.3 error

﹥>﹥吖頭↗ 提交于 2019-12-02 22:25:41
This is error I got when updated my SDK and Build tool to Android M Android Build Tools Found incompatible Build Tools and Android plugin versions: * Module 'app' is using Android plugin 1.2.3 and Build Tools 23.0.0 rc1 Please use Android plugin 1.3 or newer, or an older Build Tools version. Otherwise the project won't build. when classpath 'com.android.tools.build:gradle:1.2.3' changed to 1.3 I got another error. Error:Could not find com.android.tools.build:gradle:1.3. Searched in the following locations: file:/Applications/Android Studio.app/Contents/gradle/m2repository/com/android/tools

Android Studio SDK Managed Disabled

心不动则不痛 提交于 2019-12-02 21:40:43
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? 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, so you need to download one. So this is what you may do: Download the SDK Manager and an Android SDK Download

New Android Project not creating Layout or Java file

人盡茶涼 提交于 2019-12-02 17:35:35
问题 I have been trying, for 2 days now, to simply get past the first few pages of the first chapter of Big Nerd Ranch's Android Programming Book. The gist of my problem is that when I create a new Android app, no layout or .java files are created. I have installed the ADT Bundle (which includes Eclipse and the SDK) from the Android dev site. I have also installed Eclipse on my own, updated Java on my Mac, and manually downloaded the SDK. In both scenarios I am running ADT version 23.0. Here are

Installing Android Support Repository offline

久未见 提交于 2019-12-02 15:50:44
I am trying to setup Android Studio + Android SDK on Linux. I was able to setup Android Studio and SDK Tools and other components except "Android Support Repository" (The download kept failing) so I downloaded android_m2repository_r30.zip and tried to place its contents(which is a directory m2repository ) in the SDK directory tree but it is not recognized. I have tried placing in several paths including pathtosdk/extras/android/m2repository , pathtosdk/extras/android/support/m2repository and pathtosdk/extras/support/m2repository But none of them works. Where should I place the contents of the

Android SDK Manager - Do you need to install all android platforms?

假如想象 提交于 2019-12-02 15:07:35
I just recently downloaded the Android SDK. Downloading all the packages in the SDK Manager will take way too much time. So I'm wondering whether I should deselect all the platforms except the latest one. Or do I need all the platforms? Thanks in advance. Not at all. You just need to install those platforms which you are targeting for your apps and which you intend to test your app with. If I were you, I'd install: API 24 (Multiple app windows, Notification enhancements, Multi-locale support) API 23 (Runtime permissions toggling, Doze mode and BoringSSL) API 21 (Massive changes, including

New Android Project not creating Layout or Java file

China☆狼群 提交于 2019-12-02 09:48:48
I have been trying, for 2 days now, to simply get past the first few pages of the first chapter of Big Nerd Ranch's Android Programming Book. The gist of my problem is that when I create a new Android app, no layout or .java files are created. I have installed the ADT Bundle (which includes Eclipse and the SDK) from the Android dev site. I have also installed Eclipse on my own, updated Java on my Mac, and manually downloaded the SDK. In both scenarios I am running ADT version 23.0. Here are some screenshots of what I'm doing: Creating the project The Project workspace right after creating: The

Android Studio layout editor does not show any suggestions

只谈情不闲聊 提交于 2019-12-02 05:55:16
问题 I created new XML file temp.xml , when I tried to add text view in it, no suggestions are shown to me. When I clicked on TextView, TextView gets added with no body. Then I copy paste some code from other file and tried to give size, color etc to TextView editor is not giving me any suggestions(check image link below) I don't know is there any problem with my layout editor or with Android Studio. (I already tried Invalidate cache / Restart solution, not worked ) If you guys faced this problem

Use programming to set touch input on android

霸气de小男生 提交于 2019-12-02 04:36:26
问题 I want to use programming to mimic a "touch" on a position (x, y) on the screen. I saw this link, but it only teaches you how to inject characters. I want to inject a touch at position (x, y) How do I do this using Android SDK (which is java)? 回答1: You can "fake" a touch event like this: MotionEvent event = MotionEvent.obtain(downTime, eventTime, action, x, y, metaState); view.onTouchEvent(event); API Docs : Create a new MotionEvent, filling in a subset of the basic motion values. Those not

Use programming to set touch input on android

折月煮酒 提交于 2019-12-01 23:48:37
I want to use programming to mimic a "touch" on a position (x, y) on the screen. I saw this link, but it only teaches you how to inject characters. I want to inject a touch at position (x, y) How do I do this using Android SDK (which is java)? You can "fake" a touch event like this: MotionEvent event = MotionEvent.obtain(downTime, eventTime, action, x, y, metaState); view.onTouchEvent(event); API Docs : Create a new MotionEvent, filling in a subset of the basic motion values. Those not specified here are: device id (always 0), pressure and size (always 1), x and y precision (always 1), and