Error compiling APK Relase in React Native

0

I have my project, when running it with react-native run-android everything is fine.

But when I generate the APK for production, it sends me an error.

  

$ ~ ProjectAwesome / android

     

$ ./gradlew assembleRelease

     

Execution failed for task ': app: lintVitalRelease'.

     

Could not resolve all files for configuration ': app: lintClassPath'.

     

Could not find com.android.tools.lint: lint-gradle: 26.1.2.

Remember that I already created the keystore as it is in the tutorial on the React documentation page ( documentation here )

    
asked by Merling Samuel Sobalvarro 20.06.2018 в 17:49
source

2 answers

0

Try to generate apk with command lines but it did not work, I tried it with android studio and generated it correctly.

    
answered by 06.10.2018 / 00:56
source
1

I tell you something like that happened to me and we have to check carefully that the configuration of the packages used using react-native link have the correct targetSDK that matches your project, and I was never able to draw the application with the command of react-native, so I suggest you use one generated with android studio and save it in your project so that it does not get lost and that would be an alternative: D I hope it helps you provisionally ...

    
answered by 28.06.2018 в 18:40