react-native icon indicating copy to clipboard operation
react-native copied to clipboard

Task :app:stripDebugDebugSymbols FAILED & Task :app:generateDebugBuildConfig FAILED

Open Van-peterson opened this issue 4 years ago • 18 comments

Description

I ran the command "react-native run-android" and the return is this:

Task :app:stripDebugDebugSymbols FAILED Task :app:generateDebugBuildConfig FAILED

React Native version:

System: OS: Windows 10 10.0.18362 CPU: (4) x64 Intel(R) Core(TM) i5-3320M CPU @ 2.60GHz Memory: 1.30 GB / 7.82 GB Binaries: Node: 12.16.1 - C:\Program Files\nodejs\node.EXE Yarn: 1.16.0 - C:\Program Files (x86)\Yarn\bin\yarn.CMD npm: 6.13.4 - C:\Program Files\nodejs\npm.CMD IDEs: Android Studio: Version 3.6.0.0 AI-192.7142.36.36.6241897 npmPackages: react: 16.9.0 => 16.9.0 react-native: 0.61.5 => 0.61.5

Java --version : 13.0.2

Steps To Reproduce

Expected Results

I must be able to compile my project.

Screen Shoot RN

Snack, code example, screenshot, or link to a repository:

"dependencies": { "@react-native-community/async-storage": "^1.7.1", "@react-native-community/cli-platform-android": "^3.0.3", "@react-native-community/netinfo": "^5.5.1", "axios": "^0.19.2", "moment": "^2.24.0", "numeral": "^2.0.6", "qs": "^6.9.1", "react": "16.9.0", "react-native": "0.61.5", "react-native-gesture-handler": "^1.5.2", "react-native-image-picker": "^1.1.0", "react-native-paper": "^3.4.0", "react-native-reanimated": "^1.4.0", "react-native-screens": "^2.0.0-alpha.22", "react-native-snackbar": "^2.2.0", "react-native-unimodules": "^0.7.0", "react-native-vector-icons": "^6.6.0", "react-native-web": "^0.12.0-rc.1", "react-native-webview": "^8.0.3", "react-native-youtube": "^2.0.0", "react-navigation": "^4.0.10", "react-navigation-stack": "^1.10.3", "react-navigation-tabs": "^2.6.2", "react-redux": "^7.1.3", "redux": "^4.0.5", "redux-persist": "^6.0.0" },

Van-peterson avatar Mar 26 '20 13:03 Van-peterson

It just happened to me too. I don't know how. I think from upgrading AndroidStudio I had to downgrade gradle dependecy classpath 'com.android.tools.build:gradle:3.4.2'

gabimoncha avatar Mar 26 '20 18:03 gabimoncha

Execution failed for task ':app:stripDebugDebugSymbols'.
> No version of NDK matched the requested version 20.0.5594570. Versions available locally: 21.0.6113669

Open Android Studio -> Preferences -> Appearance & Behaviour -> System Settings -> Android SDK -> SDK Tools -> Show Package Details -> Select "NDK" -> select missing package -> Apply

xlcrr avatar Apr 12 '20 11:04 xlcrr

It just happened to me too. I don't know how. I think from upgrading AndroidStudio I had to downgrade gradle dependecy classpath 'com.android.tools.build:gradle:3.4.2'

I had this issue when cloning a repo. i did a similar approach.

the repo was using

classpath('com.android.tools.build:gradle:3.6.2')

and i used this build instead

classpath("com.android.tools.build:gradle:3.5.2")

Got it working, thanks.

EliHood avatar Jun 21 '20 16:06 EliHood

Thank you. @xlcrr I have updated the android studio. While updating, NDK version has mismatched I think. I installed the missed version and then it's working.

magic990619 avatar Jul 09 '20 14:07 magic990619

It just happened to me too. I don't know how. I think from upgrading AndroidStudio I had to downgrade gradle dependecy classpath 'com.android.tools.build:gradle:3.4.2'

Done this after a Gradle clean. Worked like a charm !

007arunwilson avatar Aug 11 '20 10:08 007arunwilson

image

For visual people

mattkenefick avatar Sep 04 '20 12:09 mattkenefick

Show Package Details

@xlcrr it helped thanku.

Biplovkumar avatar Oct 05 '20 09:10 Biplovkumar

@xlcrr Thank you very much. You saved me!

jorcelinojunior avatar Oct 09 '20 00:10 jorcelinojunior

check your react-native-image-picker configuration properly.

spandan114 avatar Nov 15 '20 07:11 spandan114

check your react-native-image-picker configuration properly.

Can you explain what you mean? What configuration could be causing it?

godwin-c avatar Jan 19 '21 01:01 godwin-c

check your react-native-image-picker configuration properly.

Can you explain what you mean? What configuration could be causing it?

@godwin-c check this: https://github.com/ivpusic/react-native-image-crop-picker/issues/1416#issuecomment-700644075

maronski avatar Jan 28 '21 16:01 maronski

image

Bende böyle bir hata alıyorum NDK versiyonu olarak son sürümü yükledim ama hata devam ediyor. Yüklediğim sürüm 23.0.7272597-rc3

Sezer67 avatar May 12 '21 21:05 Sezer67

inside the build.gradle file there's a specified version given for ndk ndkVersion = "20.1.5948944"

Make sure you are not having any other NDK version in your system.

rohanshukla94 avatar Jun 15 '21 05:06 rohanshukla94

Execution failed for task ':app:stripDebugDebugSymbols'.
> No version of NDK matched the requested version 20.0.5594570. Versions available locally: 21.0.6113669

Open Android Studio -> Preferences -> Appearance & Behaviour -> System Settings -> Android SDK -> SDK Tools -> Show Package Details -> Select "NDK" -> select missing package -> Apply

Thank you so much. You saved my time.

Riddhi744 avatar Jul 06 '21 13:07 Riddhi744

Go inside your SDK location and find the directory called ndk then delete the content inside that directory. Then build the app again. Probably the ndk version has corrupted and Android Studio will replace it with the latest.

ervalmz27 avatar Sep 23 '21 06:09 ervalmz27

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions.

stale[bot] avatar Jan 09 '22 04:01 stale[bot]

same problem, don't know how to deal it

Jia-SH avatar Jun 28 '22 08:06 Jia-SH

I'm also facing same issue. I'm using below build gradle version and NDK.

classpath 'com.android.tools.build:gradle:3.5.4'

ndkVersion "24.0.8215888"

yalamandarao avatar Aug 24 '22 04:08 yalamandarao

classpath 'com.android.tools.build:gradle:3.5.4'

Closing as this issue is really old and the version of Android Gradle Plugin are far beyond (7.x). If you're having a similar problem please open another issue

cortinico avatar Sep 16 '22 15:09 cortinico