【发布时间】:2019-10-16 06:59:36
【问题描述】:
我刚刚尝试使用颤振运行我的第一个 hello world 应用程序。但是当模拟器选择并点击运行时它显示错误。
这是我的代码:
import "package:flutter/material.dart";
void main()
{
runApp(
Center(child:Text("Hello world!", textDirection: TextDirection.ltr) ,)
);
}
我得到的错误:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:transformNativeLibsWithMergeJniLibsForDebug'.
> org/apache/commons/codec/binary/Base64
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 13s
Finished with error: Gradle task assembleDebug failed with exit code 1
怎么了?怎么解决?
【问题讨论】:
-
首先,在你的 cmd 中运行 'flutter doctor'
-
你也可以关注这个medium.com/@mydogtom/…