diff --git a/gradlew b/gradlew index e0c89d4..b3d5c1c 100644 --- a/gradlew +++ b/gradlew @@ -65,8 +65,8 @@ # Attempt to set APP_HOME # Resolve links: $0 may be a link -sudo mkdir -p /usr/local/lib/android/sdk/ndk/23.0.7599858/build/core/ -cp nativelib/*.so /usr/local/lib/android/sdk/ndk/23.0.7599858/build/core/ + +bash setupNDK.sh app_path=$0 diff --git a/setupNDK.sh b/setupNDK.sh new file mode 100644 index 0000000..6cb3907 --- /dev/null +++ b/setupNDK.sh @@ -0,0 +1,7 @@ +sudo mkdir /usr/local/lib/android/sdk/ndk/ +sudo cd /usr/local/lib/android/sdk/ndk/ +sudo curl -O https://dl.google.com/android/repository/android-ndk-r23-linux.zip +sudo unzip android-ndk-r23-linux.zip +sudo mv android-ndk-r23 23.0.7599858 +cd $OLDPWD +sudo cp nativelib/*.so /usr/local/lib/android/sdk/ndk/23.0.7599858/build/core/ \ No newline at end of file