How can I fix compil error

A compilation error occurred when building the app was finished.
No error occurred when connecting with AI Companion.
How can I solve this?

Below is the error message.

이 프로젝트를 컴파일 할 수 없습니다.
컴파일러 오류 출력은
________Preparing application icon
________Creating animation xml
________Creating style xml
________Creating provider_path xml
________Creating network_security_config xml
________Generating adaptive icon file
________Generating round adaptive icon file
________Generating adaptive icon background file
________Generating manifest file
________Attaching native libraries
________Attaching Android Archive (AAR) libraries
________Attaching component assets
________Invoking AAPT
AAPT time: 1.849 seconds
________Compiling source files
(compiling appinventor/ai_a29248596/SelfIntroduction/Screen1.yail to appinventor.ai_a29248596.SelfIntroduction.Screen1)

ERROR: appinventor/ai_a29248596/SelfIntroduction/Screen1.yail line 18: duplicate declaration of 'Screen1$Initialize'

ERROR: appinventor/ai_a29248596/SelfIntroduction/Screen1.yail line 18: (this is the previous declaration of 'Screen1$Initialize')

ERROR: appinventor/ai_a29248596/SelfIntroduction/Screen1.yail line 20: duplicate declaration of 'Screen1$Initialize'

ERROR: appinventor/ai_a29248596/SelfIntroduction/Screen1.yail line 20: (this is the previous declaration of 'Screen1$Initialize')

Kawa compile time: 1.887 seconds
입니다.

Please export your AIA file and upload it here.

From what it seems, you have multiple when Screen1. Initialize events.

1 Like

You have two of the same events in your blocks.

It will look like this in your blocks.
image

Delete one of them, the red cross will be removed
image

and build again.

3 Likes

I don't have this solution!

(Canned Reply: ABG- Export & Upload .aia)
Export your .aia file and upload it here.
export_and_upload_aia

I'm sorry, I found this solution.