LoginSignup
0
0

More than 1 year has passed since last update.

NDK at /Users/user.name/Library/Android/sdk/ndk/XX.X.XXXXX did not have a source.properties file エラーが発生する

Posted at

やりたいこと

Androidアプリをビルドしたい。

./gradlew build

エラー文

以下のエラーが発生。

❯ ./gradlew build                                            

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':renderscript-toolkit'.
> com.android.builder.errors.EvalIssueException: NDK at /Users/user.name/Library/Android/sdk/ndk/21.3.6528147 did not have a source.properties file

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 1s

原因

対応するバージョンのNDKがインストールされていない。

解決策

NDKのインストール

以下から、エラーログに記載されていたバージョンのNDKをインストールする。
https://developer.android.com/studio/projects/install-ndk#specific-version

gradle build の実行

❯ ./gradlew build    
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0