-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
报Finished with error: FormatException: Bad UTF-8 encoding 0xc3 (at offset 189) #65
Comments
没遇到这个问题,可能是编译过程中的文件出现编码错误,可以在android目录下执行gradlew clean试试 |
Closed
Closed
Closed
Closed
Closed
Closed
Closed
Closed
Closed
Closed
Closed
Closed
Closed
Closed
Closed
Closed
Closed
Closed
Closed
Closed
Closed
Closed
Closed
Closed
Closed
Closed
Closed
Closed
Closed
Closed
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
项目没有跑起来,报如下错误:
Launching lib\main.dart on MI 5 in debug mode...
Initializing gradle...
Resolving dependencies...
Running 'gradlew assembleDebug'...
Finished with error: FormatException: Bad UTF-8 encoding 0xc3 (at offset 189)
这个问题也困扰了我很久,我自己的demo也是报这个错误。我检查了一遍,应该是android原生activity中如下代码引起的,但是原因一直找不到.
new MethodChannel(getFlutterView(), CHANNEL).setMethodCallHandler(new MethodCallHandler() {
@OverRide
public void onMethodCall(MethodCall call, Result result) {
if (call.method.equals("interaction")) {
Intent intent = new Intent(MainActivity.this, SplashActivity.class);
MainActivity.this.startActivity(intent);
result.success("success");
} else {
result.notImplemented();
}
}
});
求助大佬!
The text was updated successfully, but these errors were encountered: