Title: How to can i build for android using github actions · NativeScript · Discussion #10693 · GitHub
Open Graph Title: How to can i build for android using github actions · NativeScript · Discussion #10693
X Title: How to can i build for android using github actions · NativeScript · Discussion #10693
Description: How to can i build for android using github actions
Open Graph Description: I have setup a workflow file using menny/android image for container. I usually use that for my android projects. Here is my workflow, so i wanted to see what the template "myCoolApp" for javascrip...
X Description: I have setup a workflow file using menny/android image for container. I usually use that for my android projects. Here is my workflow, so i wanted to see what the template "myCoolApp" for...
Opengraph URL: https://github.com/orgs/NativeScript/discussions/10693
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"QAPage","mainEntity":{"@type":"Question","name":"How to can i build for android using github actions","text":"I have setup a workflow file using menny/android image for container. I usually use that for my android projects.
\nHere is my workflow, so i wanted to see what the template \"myCoolApp\" for javascript looked like and tried building it ,
\nname: nativeScript\n\non:\n push:\n branches: Nad\njobs:\n build:\n runs-on: ubuntu-latest\n container: johnel/nativescript\n steps:\n - uses: actions/checkout@v4\n - name: Run g4f\n run: |\n ns create myCoolApp --js\n cd myCoolApp\n ns build android\n gh release create \"${{ github.run_number }}.0.0\" myCoolapp.zip\n env:\n GITHUB_TOKEN: ${{ secrets.TK }}\n shell: bash
\nI 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.
\nA 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
\nJust incase you need it . I created a simple image
\nFROM menny/android\nMAINTAINER John Delvin <johndelvin51@gmail.com>\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"}}}
| route-pattern | /_view_fragments/Voltron::DiscussionsFragmentsController/show/orgs/:org/:discussion_number/discussion_layout(.:format) |
| route-controller | voltron_discussions_fragments |
| route-action | discussion_layout |
| fetch-nonce | v2:5a67cffd-cda6-d8ee-a96c-08f4306c1749 |
| current-catalog-service-hash | 9f0abe34da433c9b6db74bffa2466494a717b579a96b30a5d252e5090baea7be |
| request-id | E3EC:2E67B:132F18B:19D1EE6:6964A23B |
| html-safe-nonce | e59f9932608424ff4f29f9ea09c3fbd4a9c344a4bd5ab7bbf5cbfcc9dff63c8e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFM0VDOjJFNjdCOjEzMkYxOEI6MTlEMUVFNjo2OTY0QTIzQiIsInZpc2l0b3JfaWQiOiI1MDIxOTMwNTg0NjYxMDc0NDkwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 412ee1faa9f40e13bfe26ea780b25cea9256452235a42e27776388b94a4cf4b0 |
| hovercard-subject-tag | discussion:7941907 |
| github-keyboard-shortcuts | repository,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/Voltron::DiscussionsFragmentsController/show/orgs/NativeScript/10693/discussion_layout |
| twitter:image | https://opengraph.githubassets.com/19779d1fc4dbd0d0ecf666d9b912868af25dd5467e29d3773f53ffe983d6a0e7/orgs/NativeScript/discussions/10693 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/19779d1fc4dbd0d0ecf666d9b912868af25dd5467e29d3773f53ffe983d6a0e7/orgs/NativeScript/discussions/10693 |
| og:image:alt | I have setup a workflow file using menny/android image for container. I usually use that for my android projects. Here is my workflow, so i wanted to see what the template "myCoolApp" for javascrip... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | baa7d9900fdf7b27d604f36887af878d569cfbdcf97126832a5f4f0caf0c6ba5 |
| turbo-cache-control | no-preview |
| octolytics-dimension-user_id | 7392261 |
| octolytics-dimension-user_login | NativeScript |
| octolytics-dimension-repository_id | 31492490 |
| octolytics-dimension-repository_nwo | NativeScript/NativeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 31492490 |
| octolytics-dimension-repository_network_root_nwo | NativeScript/NativeScript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 842eff1d11f899d02b6b3b98fa3ea4860e64b34e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width