简体   繁体   中英

Problem with running react-native android on mac Os

i am new to react native running yarn android i get an error concerning gradle...

i will be greatfull if anyone can help me..

`FAILURE: Build failed with an exception.

  • Where: Settings file '/Users/username/Desktop/personal projects/appname/android/settings.gradle'

  • What went wrong: Could not compile settings file '/Users/username/Desktop/personal projects/appname/android/settings.gradle'.

startup failed: General error during semantic analysis: Unsupported class file major version 61

java.lang.IllegalArgumentException: Unsupported class file major version 61`

I think the problem is being caused because of one of the following reasons;

  1. Misconfigured Java Run-time
  2. Misconfigured Android SDK

I'd advise you to follow the guide at ReactNative.dev

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM