Skip to content
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

Closed
JaniForAndroid opened this issue Sep 17, 2018 · 1 comment

Comments

@JaniForAndroid
Copy link

项目没有跑起来,报如下错误:
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();
}
}
});

求助大佬!

@CarGuo
Copy link
Owner

CarGuo commented Sep 17, 2018

没遇到这个问题,可能是编译过程中的文件出现编码错误,可以在android目录下执行gradlew clean试试

@CarGuo CarGuo closed this as completed Sep 18, 2018
@CarGuo CarGuo mentioned this issue Nov 21, 2019
@mr-shitou mr-shitou mentioned this issue Nov 30, 2019
@theecn theecn mentioned this issue Dec 18, 2019
@byue666 byue666 mentioned this issue Dec 19, 2019
@dfaofeng dfaofeng mentioned this issue Dec 24, 2019
@alienzh alienzh mentioned this issue Dec 27, 2019
@YaoHooHoo YaoHooHoo mentioned this issue Jan 15, 2020
@w497763094 w497763094 mentioned this issue Mar 10, 2020
@JevonShi JevonShi mentioned this issue Mar 10, 2020
@HaobinXu HaobinXu mentioned this issue Mar 20, 2020
@luan823230 luan823230 mentioned this issue Mar 24, 2020
@Andy957 Andy957 mentioned this issue Apr 16, 2020
@ngu2008 ngu2008 mentioned this issue Apr 17, 2020
@hzg1105 hzg1105 mentioned this issue May 3, 2020
@MrHGJ MrHGJ mentioned this issue May 19, 2020
@hzg1105 hzg1105 mentioned this issue Jun 14, 2020
@wangkr wangkr mentioned this issue Jul 4, 2020
@gss3000 gss3000 mentioned this issue Jul 8, 2020
@zaeMyn zaeMyn mentioned this issue Aug 5, 2020
@Liway Liway mentioned this issue Jun 22, 2022
@Liway Liway mentioned this issue Jun 22, 2022
@HBLove HBLove mentioned this issue Nov 22, 2022
@jayVRIY jayVRIY mentioned this issue Dec 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants