Could not compile service support class - livecode

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.

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

Android Studio import Eclipse project from command line

It possible automate import Eclipse Android Project (generated by Unity 5.4.3) into Android project with command line using android sdk?
For some reasons (eg methods limit and others) i need build android project with gradle. But Unity 5.4.3 not supported build with gradle and i can't update it for new version because i have some problems with convert my unity project to the new 5.5-5.6 versions.
According to the Android Studio official document, there seems no way to import an Eclipse Android Project into Android Studio using command line (bat or sh). I know that Unity 5.5 and 5.6 are not quite stable yet, but it's still your best bet to upgrade.

Gradle issues in Android studio 2.1.1

I am new to android studio. I am using android studio version 2.1.1. I have to run an application from Github. The problem I am facing is that whenever I run the application , I get this error,
Error:The project is using an unsupported version of Gradle.
I have even installed android support repository after following some tutorial. This did not help. I have also tried to find the versions of gradle that are compatible with Android studio 2.1.1. I dont know how to solve this issue

Java - regarding Android Studio alongside PyCharm

I'm running LinuxMint and developing in Android Studio while using PyCharm for a class so I can code in Python. I have openJDK7 installed and I'm currently using it for both Android Studio and PyCharm. Whenever I open Android Studio, though, it complains and says that I should use the Oracle JDK, not OpenJDK. Is there a way to install multiple versions of Java and update the environment variables so that Android Studio uses the Oracle JDK and PyCharm sticks with OpenJDK? Or would it make sense to use the Oracle JDK for both?
Thanks in advance!

Change target sdk on Phonegap for nodejs

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.

Resources