Dart Analysis服务器终止并失去与设备的连接

时间:2019-12-22 08:59:20

标签: flutter dart

我面临两个问题:

  

Dart Analyzer服务器已终止

     

与设备的连接丢失

我还提出了有关Flutter,Dart Repo的问题,但没有得到任何回应,我无法从事任何项目。我也做了两次干净的Windows安装,但仍然是相同的问题,我在stackoverflow上检查了所有可用的解决方案,还检查了flutter和dart github repo上的所有问题,请有人帮我解决这个问题。

颤抖的医生-v结果:

 this.state = {
  index: 0,
  routes: []
}
 ------------------

<TabView
      navigationState={this.state}
      renderScene={this.renderScene}
      renderTabBar={this.renderTabBar}
      onIndexChange={index => {
        this.setState({ index });
      }}
      swipeEnabled={false}
    />
-------------------------


 setRoutes() {
 let tabArray=[];
 if(......condition...){
 tabArray.push({key:"Gallery",title:"Gallery",navigation: this.props.navigation})
 }
 if(......condition...){
 tabArray.push({key:"Review",title:"Review",navigation: this.props.navigation})
 }
 //set route here
 this.setState({
  routes: tabArray
 });
 }

日志文件:

[√] Flutter (Channel stable, v1.12.13+hotfix.5, on Microsoft Windows [Version 10.0.18363.418], locale en-US)
    • Flutter version 1.12.13+hotfix.5 at C:\src\flutter
    • Framework revision 27321ebbad (11 days ago), 2019-12-10 18:15:01 -0800
    • Engine revision 2994f7e1e6
    • Dart version 2.7.0

[√] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at C:\Users\Akash\AppData\Local\Android\sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-29, build-tools 29.0.2
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)
    • All Android licenses accepted.

[√] Android Studio (version 3.5)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin version 42.1.1
    • Dart plugin version 191.8593
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)

[√] VS Code (version 1.41.1)
    • VS Code at C:\Users\Akash\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.7.1

[√] Connected device (1 available)
    • Android SDK built for x86 • emulator-5554 • android-x86 • Android 10 (API 29) (emulator)

• No issues found!
exit code 0

0 个答案:

没有答案