I have created a fresh app from react-native-cli.
The generated boilerplate had the following versions.
React-native : 0.57.8
React : 16.6.3
Gradle Version : 4.4
Java Version (JDK) : 1.8.0_191-b12
I am unable to execute react-native run-android
I get the following error
- What went wrong: A problem occurred configuring project ':app'. Could not generate a proxy class for class com.android.build.gradle.tasks.BuildArtifactReportTask.
I want to know whether the error is due to react version or gradlew
PS Application builds and installs on device / emulator when running through Android Studio but not when running via react-native-cli
https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
Please update the JDK version after that go to the inside android folder and use this cmd
./gradlew clean
after cleaning gradle try to build again.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.