Command failed: gradlew.bat installDebug

前端 未结 8 2249
太阳男子
太阳男子 2020-12-11 06:50

While developing an app I came into following error. I tried downgrading the java version from 11 to 8, but that wasn\'t helpful.

FAILURE: Build failed with          


        
8条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-11 07:23

    I had this issue myself, it eventually went away after I uninstalled and re-installed android studio and gradle, but a few other things you could try first

    1: Setting GRADLE_USER_HOME in environment variables (if on windows)

    2: Downgrade to react-native 0.57.0

    3: Make sure you have the correct permissions to run the command and access files

    4: Make sure your gradle files are synced correctly, and that location of gradle and the android skd are correct within project structure offline mode

    5: Check gradle for updates

    (Assuming you are using android studio)

    Good luck

提交回复
热议问题