Skip to content

react-native init has error on windows (0.57.3) #21864

Closed
@AlirezaAkbarix

Description

@AlirezaAkbarix

Environment

react-native info returned me this reason(without React block) (so I have to modify to avoid closing issue)
image

System:
  OS: Windows 10
  CPU: x64 Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz
  Memory: 12.46 GB / 15.83 GB
Binaries:
  Yarn: 1.10.1 - C:\Users\AlirezA\AppData\Roaming\npm\yarn.CMD
  npm: 6.4.1 - C:\Program Files\nodejs\npm.CMD
SDKs:
  Android SDK:
    Build Tools: 23.0.1, 23.0.2, 25.0.0, 25.0.2, 25.0.3, 26.0.1, 26.0.2, 26.0.3, 27.0.0, 27.0.1, 27.0.2, 27.0.3
    API Levels: 16, 18, 19, 22, 23, 24, 25, 26, 27
IDEs:
    Android Studio: Version  3.2.0.0 AI-181.5540.7.32.5014246
npmPackages:
    react: 16.6.0-alpha.8af6728 (16.5.0 is tested and has the same error)
    react-native: 0.57.3
npmGlobalPackages:
    react-native-cli: 2.0.1

Description

Just initing new project on windows causes error bellow:

image

FAILURE: Build failed with an exception.

  • Where:
    Build file 'C:\Aprojects\myseedapp\android\app\build.gradle' line: 1

  • What went wrong:
    A problem occurred evaluating project ':app'.

java.lang.UnsupportedClassVersionError: JVMCFRE003 bad major version; class=com/android/build/gradle/AppPlugin, offset=6

Reproducible Demo

react-native init newapp

Metadata

Metadata

Assignees

No one assigned

    Labels

    Ran CommandsOne of our bots successfully processed a command.Resolution: LockedThis issue was locked by the bot.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions