renative icon indicating copy to clipboard operation
renative copied to clipboard

[Android, AndroidTV] Can't run Android apps on M1 mac

Open pauliusguzas opened this issue 2 years ago • 2 comments

Describe the bug Can't run Android apps on M1 mac

To Reproduce

  1. Create new project with rnv new
  2. Do rnv run -p android or rnv run -p androidtv -> error

Expected behavior Chosen template should run

Screenshots or copy&paste image

Desktop (please complete the following information):

  • OS: Monterey 12.3.1
  • Node Version 16.14.2
  • RNV Version 0.36.2-canary.4
  • Android Studio 2021.2.1 Patch 2

Additional context Template used @rnv/[email protected]

pauliusguzas avatar Aug 26 '22 07:08 pauliusguzas

Cross checked on other M1 mac with 16.14.2 node, 11.6 os version, 2020.3.1 Patch 3 android studio and it works

pauliusguzas avatar Sep 07 '22 12:09 pauliusguzas

@pauliusguzas it seems like your configured NDK folder is not correct. Looking at the error it says that the NDK folder does not contain source.properties

mihaiblaga89 avatar Sep 22 '22 07:09 mihaiblaga89

Resolved by adding full path to ndk including directory with version number of ndk

pauliusguzas avatar May 03 '23 09:05 pauliusguzas