android / android/codelab-android-dynamic-features
A problem occurred configuring project ':native'
- Dominant language
- Kotlin
- Stars
- 129
- Forks
- 51
- PR merge metrics
- No merged PRs in 30d
Description
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
Contributor guide
Research direction
Start by reproducing the first build and capture the requested stacktrace for the :native configuration failure. Check local.properties, ANDROID_NDK_HOME, and the reported NDK directory, then determine whether the project configuration or the local NDK setup causes the missing platforms directory and NullPointerException. Done means the failure has a reproducible cause and a verified build or documented configuration fix.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android
- Domain
- build-system, mobile-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100