본문 바로가기
Development Solutions/Flutter & Dart

[Solved][flutter] Didn't find class "com.xx.yy.MainActivity" on path: DexPathList

by studio ODOC 2023. 10. 18.
반응형

Didn't find class "com..MainActivity" on path: DexPathList

[Solved][flutter][Android]

 

 

문제 상황 (Problem)

 

Flutter 프로젝트의 안드로이드로 개발하는 도중

빌드에는 성공했지만

아래와 같은 에러메시지가 나오면서

앱이 실행되다가 말고 강제 종료된다.

(While developing a Flutter project on Android, the build was successful, but the following error message appeared and the app was forcibly terminated instead of running.)

AndroidRuntime(11422): Caused by: java.lang.ClassNotFoundException:
Didn't find class "com.xx.yy.MainActivity" on path: DexPathList

 

 

해결 방법 (Solution)

해결방법은 너무나 간단하다.

문제 원인을 찾다가 해결방법을 보고 허무했을 정도다.

(The solution is very simple. While I was looking for the cause of the problem, I found the solution and felt in vain.
This can be resolved immediately by modifying MainActivity.kt as shown below.)

 

아래와 같이 MainActivity.kt를 수정하면 즉시 해결된다.

반응형

 

아래는 문제의 코드.

아래처럼 com.개발자이름.프로젝트이름 으로 수정하면 되겠다.

(You can edit it to com.developer name.project name as shown below.)

반응형