Change target sdk on Phonegap for nodejs - node.js

Im using phonegap on nodejs, but when I use the command
phonegap local build android
It automatically ask me for "Android 4.2 SDK"
Please install Android target 17 (the Android 4.2 SDK). Make sure you
have the latest Android tools installed as well.
How can I choose a lower vesion (android 4.1) of the sdk using phonegap for nodejs?

Short answer: you don't have to!
I struggled with this until I installed v17 and completed my first build. It turns out that the generated Androidmanifest.xml has minSdkVersion=10, so the minimum version required for your application is 2.3.3, it just needs to compile against v17.

Related

After creating a NativeScript Typescript application, I tried running it using the command "ns run android" it doesnt run and i get the output

After creating a NativeScript Typescript application, I tried running it using the command ns run android I get this output and does not run.
The ANDROID_HOME environment variable is not set or it points to a non-existent directory. You will not be able to perform any build-related operations for Android.
To be able to perform Android build-related operations, set the ANDROID_HOME variable to point to the root of your Android SDK installation directory.
WARNING: adb from the Android SDK is not installed or is not configured properly.
For Android-related operations, the NativeScript CLI will use a built-in version of adb.
To avoid possible issues with the native Android emulator, Genymotion or connected
Android devices, verify that you have installed the latest Android SDK and
its dependencies as described in http://developer.android.com/sdk/index.html#Requirements
WARNING: The Android SDK is not installed or is not configured properly.
You will not be able to run your apps in the native emulator. To be able to run apps
in the native Android emulator, verify that you have installed the latest Android SDK
and its dependencies as described in http://developer.android.com/sdk/index.html#Requirements
Cannot find a compatible Android SDK for compilation. To be able to build for Android, install Android SDK 28 or later.
Run $ sdkmanager to manage your Android SDK versions.
No compatible version of the Android SDK Build-tools are installed on your system. You can install any version in the following range: '>=23 <=32'.
Install the required build-tools through Android Studio. In case you already have them installed, make sure the ANDROID_HOME environment variable is set correctly.
Your errors and warnings says that you haven't Android SDK and adb which one is included in the Android SDK Platform-Tools package.
First of all, you need to read this doc and complete steps in it - https://docs.nativescript.org/environment-setup.html. This documentation has everything you need, based on your operating system and the operating system you want to develop the application for.
If you already install everything docs says, check your path environment for ANDROID_HOME and adb variables presence, if not, add them. For example, my path (on MacOS) contains following lines:
/Users/sixhellstations/Library/Android/sdk/emulator:/Users/sixhellstations/Library/Android/sdk/tools:/Users/sixhellstations/Library/Android/sdk/tools/bin:/Users/sixhellstations/Library/Android/sdk/platform-tools

Flutter SDK is incomplete during setting up Path in Android Studio Ubuntu 20.04 Flutter project creation

Hi have downloaded new version of Android Studio 4.1.1.
Installed Flutter and Dart plugin and also downloaded Flutter installation and unzipped into my specific location, but during the option to choose Flutter Path in Android studio, while I am creating Flutter project alwais get error:
the flutter sdk installation is incomplete please see https //flutter.dev/get-started
any same experience?
I think you downloaded the latest version which is not complete and you should download a version before the final version

Flutter is unable to locate android sdk

I just tried installing flutter and since I already have android studio and the android sdk installed I just followed the flutter installation instructions but I keep getting the result below whenever I run flutter doctor.
enter image description here
I already tried reinstalling the sdk but it did not work.
I'll be very thankful for any help with this.
Use this..
flutter config --android-sdk <path-to-your-android-sdk-path>
You need to set an Environment variable to you Android SDk path
Search in windows for env -> Environment variable -> new
Download the latest build tools in Android SDK Manager -> SDK Tools
And the latest SDK Platform (Android API 30)
Can you check if Android SDK Build-Tools, Android SDK Platform-Tools & Android SDK Tools (Obsolete) are installed?
If you still have the problem, do a fresh installation of Android Studio but remove all old Android folders beforehand.

Could not compile service support class

I have been having this error since for Android compilation .
My sdk url is oky, emulators are being detected but i cant generate any apk or run any android based app. Could
Your question is quite incomplete. Which LC version are you using, which Java JDK are you using, do you use Android Studio (just for the sdk) or do you have it installed via cdm? You need the Android sdk and Java Jdk.

Upgraded to Android Studio 1.5.0, then 1.5.1 and can no longer create a project

I'm doing a bit of Android dev on the side, so I'm no gradle expert. Just trying to create a project for Android 4.0.3+. This used to work before upgrading to Studio 1.5. Any ideas how to get this setup so can make projects again? I have no idea what appcompat-v7.15+ is or what to install so it can find it.

Resources