Warning no leading on line 1 of как исправить

I am new to react-native development. I was trying a simple react-native project from Facebook git hub. I have followed all the steps but when I try to run the project by typing react-native run-

I am new to react-native development. I was trying a simple react-native project from Facebook git hub. I have followed all the steps but when I try to run the project by typing

  react-native run-android

it simply shows me following error:

   info Running jetifier to migrate libraries to AndroidX. You can  disable it using "--no-jetifier" flag.
   Jetifier found 864 file(s) to forward-jetify. Using 4 workers...
   info Starting JS server...
   info Launching emulator...
   info Successfully launched emulator.
   info Installing the app...
   Warning: No leading - on line 1 of `C:Program FilesJavajdk-13libjvm.cfg'

   error Failed to install the app. Make sure you have the Android development environment set up: https://facebook.github.io/react-native/docs/getting-started.html#android-development-environment. Run CLI with --verbose flag for more details.
   Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081
   Warning: No leading - on line 1 of `C:Program FilesJavajdk-13libjvm.cfg'

at checkExecSyncError (child_process.js:611:11)
at execFileSync (child_process.js:629:15)
at runOnAllDevices (C:UsersToshibaDocumentsAwesomeProjectnode_modules@react-native-communitycli-platform-androidbuildcommandsrunAndroidrunOnAllDevices.js:94:39)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async Command.handleAction (C:UsersToshibaDocumentsAwesomeProjectnode_modulesreact-nativenode_modules@react-native-communityclibuildindex.js:164:9)

asked Jan 14, 2020 at 6:49

ramesh khadka's user avatar

ramesh khadkaramesh khadka

711 gold badge1 silver badge6 bronze badges

7

Turns out I had a problem with my Java. I uninstall JDK and JRE and reinstall the latest version and it worked out for me.

answered Jan 28, 2020 at 6:02

ramesh khadka's user avatar

ramesh khadkaramesh khadka

711 gold badge1 silver badge6 bronze badges

Try these once :

1.reopen android studio as admin. build the gradle. if no issue, proceed on
access the android folder of your app. i.e c:folderappandroid
2.type in gradlew clean
3.run react-native run-android

Hope it helps

answered Jan 14, 2020 at 7:50

Gaurav Roy's user avatar

Gaurav RoyGaurav Roy

10.7k3 gold badges21 silver badges42 bronze badges

If you’re using the latest version of Java Development Kit, you’ll need to change the Gradle version of your project so it can recognize the JDK. You can do that by going to {project root folder}androidgradlewrappergradle-wrapper.properties and changing the distributionUrl value to upgrade the Gradle version. You can check out here the lastest releases of Gradle

answered Feb 13, 2021 at 9:53

kk007's user avatar


  • Search


    • Search all Forums


    • Search this Forum


    • Search this Thread


  • Tools


    • Jump to Forum


  • #1

    Feb 4, 2019

    Hello. I’m writing this for some help. Today, I just bought minecraft premium. I downloaded launcher, logged in, created skin and then, I clicked button play. Everything was downloading, and after that, when Minecraft was launching, I got bunch of warnings like «Warning: No leading (next one is Missing VM type) — On line 1 of `C:Program Files (x86)Minecraftruntimejre-x641.8.0_51libamd64jvm.cfg'» And last one is «Error: no known VMs. (check for corrupt jvm.cfg file)». I really need help. Thanks.


  • #3

    Feb 4, 2019

    Your using a snapshot. Try a release version, or report this directly to Mojang’s Bug Report website.

    «We live on a placid island of ignorance in the midst of black seas of infinity, and it was not meant that we should voyage far.»


  • #4

    Feb 4, 2019


    Big_Bad_E


    • View User Profile


    • View Posts


    • Send Message



    View Big_Bad_E's Profile

    • Zombie Killer
    • Join Date:

      6/29/2017
    • Posts:

      152
    • Member Details

    Hello. I’m writing this for some help. Today, I just bought minecraft premium. I downloaded launcher, logged in, created skin and then, I clicked button play. Everything was downloading, and after that, when Minecraft was launching, I got bunch of warnings like «Warning: No leading (next one is Missing VM type) — On line 1 of `C:Program Files (x86)Minecraftruntimejre-x641.8.0_51libamd64jvm.cfg'» And last one is «Error: no known VMs. (check for corrupt jvm.cfg file)». I really need help. Thanks.

    Ignore majestyc, that is a Java problem not a MC problem. Update your java version/reinstall and set the Java location (in the profile after toggling on «Advanced settings»). You should have Java 8 version 201. Download: https://www.java.com/en/download/win10.jsp

  • To post a comment, please login.

Posts Quoted:

Reply

Clear All Quotes



  • Search


    • Search all Forums


    • Search this Forum


    • Search this Thread


  • Tools


    • Jump to Forum


  • #1

    Feb 4, 2019

    Hello. I’m writing this for some help. Today, I just bought minecraft premium. I downloaded launcher, logged in, created skin and then, I clicked button play. Everything was downloading, and after that, when Minecraft was launching, I got bunch of warnings like «Warning: No leading (next one is Missing VM type) — On line 1 of `C:Program Files (x86)Minecraftruntimejre-x641.8.0_51libamd64jvm.cfg'» And last one is «Error: no known VMs. (check for corrupt jvm.cfg file)». I really need help. Thanks.


  • #3

    Feb 4, 2019

    Your using a snapshot. Try a release version, or report this directly to Mojang’s Bug Report website.

    «We live on a placid island of ignorance in the midst of black seas of infinity, and it was not meant that we should voyage far.»


  • #4

    Feb 4, 2019


    Big_Bad_E


    • View User Profile


    • View Posts


    • Send Message



    View Big_Bad_E's Profile

    • Zombie Killer
    • Join Date:

      6/29/2017
    • Posts:

      152
    • Member Details

    Hello. I’m writing this for some help. Today, I just bought minecraft premium. I downloaded launcher, logged in, created skin and then, I clicked button play. Everything was downloading, and after that, when Minecraft was launching, I got bunch of warnings like «Warning: No leading (next one is Missing VM type) — On line 1 of `C:Program Files (x86)Minecraftruntimejre-x641.8.0_51libamd64jvm.cfg'» And last one is «Error: no known VMs. (check for corrupt jvm.cfg file)». I really need help. Thanks.

    Ignore majestyc, that is a Java problem not a MC problem. Update your java version/reinstall and set the Java location (in the profile after toggling on «Advanced settings»). You should have Java 8 version 201. Download: https://www.java.com/en/download/win10.jsp

  • To post a comment, please login.

Posts Quoted:

Reply

Clear All Quotes


Понравилась статья? Поделить с друзьями:
  • Windows 7 needs to install the sha2 update nvidia как исправить
  • Wincor nixdorf error
  • Wincor error codes
  • Win32k sys синий экран win 7 как исправить
  • Win32 error codes