[英]Error: ADB exited with exit code 1 Error launching application
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.