Closed the-unknown closed 10 months ago
Yes, you have not set minSdkVersion
to 28
or larger, as mentioned in Getting Started for Android (glob library was included into Android SDK since v28).
Well, I did change that:
/android/app/build.gradle
android {
ndkVersion rootProject.ext.ndkVersion
compileSdkVersion rootProject.ext.compileSdkVersion
namespace 'com.changeowu.warakruexpo'
defaultConfig {
applicationId 'com.changeowu.warakruexpo'
// minSdkVersion rootProject.ext.minSdkVersion
minSdkVersion 28
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
versionName "1.0.0"
buildConfigField("boolean", "REACT_NATIVE_UNSTABLE_USE_RUNTIME_SCHEDULER_ALWAYS", (findProperty("reactNative.unstable_useRuntimeSchedulerAlways") ?: true).toString())
}
signingConfigs {
debug {
storeFile file('debug.keystore')
storePassword 'android'
keyAlias 'androiddebugkey'
keyPassword 'android'
}
}
buildTypes {
debug {
signingConfig signingConfigs.debug
}
release {
// Caution! In production, you need to generate your own keystore file.
// see https://reactnative.dev/docs/signed-apk-android.
signingConfig signingConfigs.debug
shrinkResources (findProperty('android.enableShrinkResourcesInReleaseBuilds')?.toBoolean() ?: false)
minifyEnabled enableProguardInReleaseBuilds
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
}
}
}
Look carefully at the example app, where it has to be set: https://github.com/birdofpreyru/react-native-static-server/blob/master/example/android/build.gradle (not android/app/build.gradle
).
Alright! That did the trick! sorry :see_no_evil:
Hey, First of all, I am using Expo, but as far as I understand this error, this should not be an Expo issue.
When I try to run/build my code, it exits with this error:
CMake is installed in via commandline as well as in Android Studio. The Android NDKs I have installed: 23.1.7779620 25.2.9519653 26.0.10792818
Any idea what's wrong?