Myat Thiri
Myat Thiri

Reputation: 13

NDK is already installed but I got this error in react native cli

error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup. Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081 [CXX1101] NDK at C:\Users\User\AppData\Local\Android\Sdk\ndk\21.4.7075529 did not have a source.properties file [CXX1101] NDK at C:\Users\User\AppData\Local\Android\Sdk\ndk\21.4.7075529 did not have a source.properties file

FAILURE: Build failed with an exception.

NDK is not installed

what should I do? I only run one project and another projects are always facing these eror

Upvotes: 0

Views: 2094

Answers (1)

famfamfam
famfamfam

Reputation: 535

try to set ndk version in build.gradle file

android {
        ndkVersion '21.3.6528147'
    }

Upvotes: 1

Related Questions