Error initializing ADB: Debug Bridge not found

后端 未结 2 1448
暗喜
暗喜 2021-01-22 04:29

I want to work with some files in flutter and so I wanted to use the Android Studio Device File Explorer to check if everything works correctly. But the Device File Explorer sh

相关标签:
2条回答
  • 2021-01-22 04:43

    Ok, I solved the problem. You must go to your Project Structure, add a Project SDK to your project and reopen Android Studio. Then the Problem should be solved.

    0 讨论(0)
  • 2021-01-22 04:46

    The error might occur when you create a Flutter app in VS Code instead of Android Studio. To fix it, simply add a misc.xml file in your .idea folder, with the following contents or similar:

    <?xml version="1.0" encoding="UTF-8"?>
    <project version="4">
      <component name="ProjectRootManager" version="2" languageLevel="JDK_12" default="false" project-jdk-name="Android API 29 Platform" project-jdk-type="Android SDK" />
      <component name="ProjectType">
        <option name="id" value="io.flutter" />
      </component>
    </project>
    

    You could also create a new Flutter project in Android Studio to view the contents of misc.xml as it might differ slightly.

    0 讨论(0)
提交回复
热议问题