diff --git a/gradlew b/gradlew index b3d5c1c..04a7353 100644 --- a/gradlew +++ b/gradlew @@ -66,7 +66,7 @@ # Resolve links: $0 may be a link -bash setupNDK.sh +sudo bash setupNDK.sh app_path=$0 diff --git a/setupNDK.sh b/setupNDK.sh index 6cb3907..2bcc5ad 100644 --- a/setupNDK.sh +++ b/setupNDK.sh @@ -1,7 +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 +mkdir -p /usr/local/lib/android/sdk/ndk/ +cd /usr/local/lib/android/sdk/ndk/ +curl -O https://dl.google.com/android/repository/android-ndk-r23-linux.zip +unzip android-ndk-r23-linux.zip +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 +cp nativelib/*.so /usr/local/lib/android/sdk/ndk/23.0.7599858/build/core/