我在四天前升级了 flutter,从那以后我遇到了问题,工作区没有错误,因为其他合作者的代码运行良好。错误是:
Error running com.xxxxxxxx.signals. Default activity not found
Unable to read manifest info from F:\Projects\xxxxxxxx-mobile\xxxxxxxx-mobile\build\app\outputs\apk\app.apk.
No application found for TargetPlatform.android_x86.
Is your project missing an android\app\src\main\AndroidManifest.xml?
Consider running "flutter create ." to create one.
Run Code Online (Sandbox Code Playgroud)
我在 Visual Studio Code 终端中运行了以下命令:
flutter clean
flutter run
Run Code Online (Sandbox Code Playgroud)
我应用的但不幸的是没有奏效的解决方案是:
我的颤振医生如下:
[?] Flutter (Channel dev, v1.3.13, on Microsoft Windows [Version 10.0.17134.648], locale en-US)
• Flutter version 1.3.13 at C:\src\flutter
• Framework revision 59ce7d6bff (2 days ago), 2019-03-18 11:20:10 -0700
• Engine revision e75f6de01f
• Dart version 2.2.1 (build 2.2.1-dev.1.1 None)
[?] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
• Android SDK at C:\Users\jabir\AppData\Local\Android\sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.3
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)
• All Android licenses accepted.
[?] Android Studio (version 3.3)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin version 32.0.1
• Dart plugin version 182.5124
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)
[?] VS Code (version 1.32.3)
• VS Code at C:\Users\jabir\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 2.24.0
[?] Connected device (1 available)
• Android SDK built for x86 • emulator-5554 • android-x86 • Android 8.1.0 (API 27) (emulator)
• No issues found!
Run Code Online (Sandbox Code Playgroud)
我通过这些步骤解决了这个问题。
flutter create foofoo项目与我的项目
进行比较flutter cleanflutter run我用的是VS编辑器。
我的项目依赖项。pubspec
dependencies:
flutter:
sdk: flutter
flutter_localizations:
sdk: flutter
intl: ^0.15.7
http: ^0.12.0+1
firebase_core: ^0.3.4
firebase_analytics: ^2.1.1
firebase_auth: ^0.8.4+2
firebase_remote_config: ^0.1.0+2
firebase_database: ^2.0.2
firebase_storage: ^2.1.0+1
video_player: ^0.10.0+4
chewie: ^0.9.7
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
6052 次 |
| 最近记录: |