I have my project, running it with react-native run-android
everything is fine.
But when generating 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 generated the keystore as it is in the React documentation page tutorial ( documentation here )
I tell you something like this happened to me and you have to check well that the configuration of the packages used that use react-native link have the correct targetSDK that go according to that of your project, also I could never get the application with it react-native command, so I suggest you use one generated with android studio and save it in your project so it doesn't get lost and that would be an alternative :D I hope it helps you provisionally...
I tried to generate it
apk
with command lines but it didn't work, I tried it withandroid studio
and it generated it correctly.