简体   繁体   English

错误:ADB 以退出代码 1 退出 启动应用程序时出错

[英]Error: ADB exited with exit code 1 Error launching application

  1. In pubspec.ymal I added english_words and the version to my dependencies list.在 pubspec.ymal 中,我将english_words 和版本添加到我的依赖项列表中。
  2. While viewing the pubspec in Android Studio's editor view, I clicked Packages get which I believed pulled the package into my project.在 Android Studio 的编辑器视图中查看 pubspec 时,我单击了 Packages get,我相信它会将 package 拉到我的项目中。
  3. Then in main.dart I imported the package然后在 main.dart 我导入了 package
  4. Lastly, I used the english_word to generate text.最后,我使用了 english_word 来生成文本。

Please help me review and see if there's something I didn't do right.请帮我回顾一下,看看有没有我做的不对的地方。

import 'package:english_words/english_words.dart';
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    final wordPair = WordPair.random();
    return MaterialApp(
      title: 'Welcome to Flutter',
      home: Scaffold(
        appBar: AppBar(
          title: Text('Welcome to Flutter'),
        ),
        body: Center(
          child: Text(wordPair.asPascalCase),
        ),
      ),
    );
  }
}

在此处输入图像描述

Your app was correctly compiled/built but it could not be installed on your device.您的应用程序已正确编译/构建,但无法安装在您的设备上。 This can have multiple reasons, but as you could see in your terminal;这可能有多种原因,但正如您在终端中看到的那样; the installation of the actual APK failed.实际 APK 的安装失败。

You should delete any other installations you have of your app, and you should change the ADB connection timeout:您应该删除您的应用程序的任何其他安装,并且您应该更改 ADB 连接超时:

Android error: Failed to install *.apk on device *: timeout Android 错误:无法在设备上安装 *.apk *:超时

The problem of insufficient internal memory.内部memory不足的问题。 After making the free space it successfully installed.释放可用空间后,它成功安装。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Flutter ADB 错误:ADB 以退出代码 1 退出执行流式安装 - Flutter ADB error: ADB exited with exit code 1 performing streamed install 错误:ADB 退出,退出代码为 1 正在执行流式安装 - Error: ADB exited with exit code 1 Performing Streamed Install ADB 以退出代码 1 退出 - ADB exited with exit code 1 错误:ADB exited with exit code 1 Performing Streamed Install 和与运行 abd 相关的错误 - Error: ADB exited with exit code 1 Performing Streamed Install and error related to running abd 错误:ADB 退出并退出代码 1 使用 Flutter 执行流式安装,使用 M1 执行 Mac Big Sur - Error: ADB exited with exit code 1 Performing Streamed Install with Flutter and Mac Big Sur with M1 错误:ADB 以退出代码 1 退出失败 [INSTALL_FAILED_VERSION_DOWNGRADE] - Error: ADB exited with exit code 1 Failure [INSTALL_FAILED_VERSION_DOWNGRADE] 调试控制台:错误:ADB exited with exit code 1 Performing Streamed Install... F - Debug Console: Error: ADB exited with exit code 1 Performing Streamed Install... F 错误:ADB 退出,退出代码为 1 执行流式安装 adb:安装失败...\app.apk:失败 [INSTALL_FAILED_INSUFFICIENT_STORAGE] - Error: ADB exited with exit code 1 Performing Streamed Install adb: failed to install ...\app.apk : Failure [INSTALL_FAILED_INSUFFICIENT_STORAGE] (节点:15016)UnhandledPromiseRejectionWarning:错误:adb:命令失败,退出代码为1 - (node:15016) UnhandledPromiseRejectionWarning: Error: adb: Command failed with exit code 1 Flutter来自ADB的意外故障:无效参数:源不得为空在设备上启动应用程序时出错 - Flutter Unexpected failure from adb: Invalid argument(s): The source must not be null Error launching application on device
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM