Skip to content
\n

I have ran into the same error that has be reported multiple time by alot of new users. I was detetmined to get started but something like settingup a simple build environment has taken me sometime.

\n
A compatible Android SDK for compilation is found.\nJavac is installed and is configured properly.\nThe Java Development Kit (JDK) is installed and is configured properly.\nLocal builds for iOS can be executed only on a macOS system. To build for iOS on a different operating system, you can use the NativeScript cloud infrastructure.\n✔ Your ANDROID_HOME environment variable is set and points to correct directory.\n✔ Your adb from the Android SDK is correctly installed.\n✔ A compatible Android SDK for compilation is found.\n✔ Javac is installed and is configured properly.\n✔ The Java Development Kit (JDK) is installed and is configured properly.\n✔ Local builds for iOS can be executed only on a macOS system. To build for iOS on a different operating system, you can use the NativeScript cloud infrastructure.\n✖ WARNING: The Android SDK is not installed or is not configured properly. \n You will not be able to run your apps in the native emulator. To be able to run apps\nin the native Android emulator, verify that you have installed the latest Android SDK \nand its dependencies as described in \n
\n

Just incase you need it . I created a simple image

\n
FROM menny/android\nMAINTAINER John Delvin <[email protected]>\n\n# NodeJS\nRUN apt-get update -y\nRUN apt-get install nodejs -y\nRUN apt-get install npm -y\nRUN wget https://github.com/cli/cli/releases/download/v2.50.0/gh_2.50.0_linux_amd64.deb\nRUN apt install -y ./gh_2.50.0_linux_amd64.deb\nRUN npm install -g nativescript
","upvoteCount":2,"answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"

Hi, you can enable abi splits https://old.docs.nativescript.org/angular/tooling/publishing/android-abi-split#enable-abi-split to reduce the size of your apk. NativeScript android app pack v8 which is around 15-20MB in size for each architecture. Right now you are building universal apk which packs everything for all archs making the apk around 90MBs. In reality when you release your app to the android playstore as an aab, the final release apk will be much smaller in size.

","upvoteCount":0,"url":"https://github.com/orgs/NativeScript/discussions/10693#discussioncomment-12136166"}}}

How to can i build for android using github actions #10693

Answered by ammarahm-ed
John4650-hub asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, you can enable abi splits https://old.docs.nativescript.org/angular/tooling/publishing/android-abi-split#enable-abi-split to reduce the size of your apk. NativeScript android app pack v8 which is around 15-20MB in size for each architecture. Right now you are building universal apk which packs everything for all archs making the apk around 90MBs. In reality when you release your app to the android playstore as an aab, the final release apk will be much smaller in size.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@John4650-hub
Comment options

@NathanWalker
Comment options

@ammarahm-ed
Comment options

Answer selected by John4650-hub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants