android / android/codelab-android-dynamic-features

A problem occurred configuring project ':native'

オープン
#35 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Kotlin
スター
129
フォーク
51
PR マージ指標
30日以内にマージされた PR はありません

説明

I got this error when first building this project.NDK is missing a "platforms" directory.
If you are using NDK, verify the ndk.dir is set to a valid NDK directory. It is currently set to C:\Users\bb\AppData\Local\Android\Sdk\ndk\22.1.7171670.
If you are not using NDK, unset the NDK variable from ANDROID_NDK_HOME or local.properties to remove this warning.

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':native'.
> java.lang.NullPointerException (no error message)

* 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

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

まず最初のビルドを再現し、:native の設定失敗について要求された stacktrace を取得します。local.properties、ANDROID_NDK_HOME、報告された NDK ディレクトリを確認し、プロジェクト設定とローカルの NDK セットアップのどちらが platforms ディレクトリの欠落と NullPointerException を引き起こしているのかを特定します。失敗の再現可能な原因が判明し、ビルドの成功または設定修正の文書化が確認できれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
android
領域
build-system, mobile-dev
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。