setup-android icon indicating copy to clipboard operation
setup-android copied to clipboard

Build with ndk

Open SimonIT opened this issue 4 years ago • 3 comments

I tried to setup a libGDX application for building.

On the first build is the wrong ndk version installed.

https://github.com/SimonIT/CollapseTheGame/runs/1460452130

After specifying the installed ndk version in the build.gradle the following error appears:

https://github.com/SimonIT/CollapseTheGame/runs/1460505051

(More details: https://github.com/SimonIT/CollapseTheGame/runs/1465844104)

SimonIT avatar Nov 26 '20 18:11 SimonIT

@SimonIT , this is available since [email protected] , try it out.

- name: Setup Android SDK
  uses: android-actions/setup-android@v2

- name: Install NDK
  run: sdkmanager "ndk;22.0.7026061"

ViliusSutkus89 avatar Mar 01 '21 22:03 ViliusSutkus89

Cool! Will try it

I resolved the other errors by the by creating a debug keystore. Maybe that's something also to consider for this nice action

SimonIT avatar Mar 01 '21 22:03 SimonIT

I'm 80% sure that the debug store would be created by android tools when you run gradle build. I'm saying this because I can't recall ever having to create it manually. Recall creating release store, but not debug.

Also, like you already know from your build.yml , creating a keystore requires a boatload of arguments and I already see the ugliness of optionally adding them to action.yml . Let's just see if it works without creating it manually first :crossed_fingers:

ViliusSutkus89 avatar Mar 01 '21 23:03 ViliusSutkus89