Saeed Vaziry
Saeed Vaziry

Reputation: 2355

React native android stuck in :app:mergeDebugResources

When i run react-native run-android android building stuck in :app:mergeDebugResources and does not report any error.

Here is my package.json file :

{
"name": "listeo",
"version": "0.0.1",
"private": true,
"scripts": {
    "start": "node node_modules/react-native/local-cli/cli.js start",
    "test": "jest"
},
"dependencies": {
    "react": "16.0.0-alpha.12",
    "react-native": "0.48.2"
},
"devDependencies": {
    "babel-jest": "21.0.2",
    "babel-preset-react-native": "3.0.2",
    "jest": "21.0.2",
    "react-test-renderer": "16.0.0-alpha.12"
},
"jest": {
    "preset": "react-native"
}
}

Android build tools version is : 23.0.1

I tested it with android build tools 25 and 26 but didn't fixed.

How can i solve this problem?

Upvotes: 0

Views: 1252

Answers (2)

Arnaz M Prakasa
Arnaz M Prakasa

Reputation: 137

try to remove the node_modules folder, then run npm install, also dont forget to check and update the required components on your SDK Manager, after that you can react-native run-android

Upvotes: 5

Mohamed Khalil
Mohamed Khalil

Reputation: 3136

try with run cd android && ./gradlew clean && cd.. && react-native run-android also keep build tool as it's default also be patient some times takes time

Upvotes: 0

Related Questions