App Inventor is unable to compile this project, duplicate declaration of 'back'

Hello! This is my first forum post here, but I was hoping there would have been a much more positive first post. I received this massive list of errors instead of a compiled APK.
The AIA is here.

PoemADay.aia (1.6 MB)

It is a random prompt generator with basic functionality. I hope to have this situation rectified as soon as possible. Thank you!

App Inventor is unable to compile this project.
The compiler error output was
[ReadBuildInfo] Starting Task
[ReadBuildInfo] Task succeeded in 0.005 seconds
[LoadComponentInfo] Starting Task
[LoadComponentInfo] INFO: Generating assets...
[LoadComponentInfo] Component assets needed, n = 0
[LoadComponentInfo] INFO: Generating activities...
[LoadComponentInfo] Component activities needed, n = 0
[LoadComponentInfo] Component activity metadata needed, n = 0
[LoadComponentInfo] INFO: Generating broadcast receivers...
[LoadComponentInfo] Component content providers needed, n = 0
[LoadComponentInfo] INFO: Generating libraries...
[LoadComponentInfo] Libraries needed, n = 0
[LoadComponentInfo] Component metadata needed, n = 0
[LoadComponentInfo] INFO: Generating Android minimum SDK...
[LoadComponentInfo] INFO: Generating native libraries...
[LoadComponentInfo] Native Libraries needed, n = 0
[LoadComponentInfo] INFO: Generating permissions...
[LoadComponentInfo] INFO: Component "com.google.appinventor.components.runtime.ActivityStarter" does not specify permissionConstraints
[LoadComponentInfo] INFO: Component "com.google.appinventor.components.runtime.Button" does not specify permissionConstraints
[LoadComponentInfo] INFO: Component "com.google.appinventor.components.runtime.Clock" does not specify permissionConstraints
[LoadComponentInfo] INFO: Component "com.google.appinventor.components.runtime.Form" does not specify permissionConstraints
[LoadComponentInfo] INFO: Component "com.google.appinventor.components.runtime.HorizontalArrangement" does not specify permissionConstraints
[LoadComponentInfo] INFO: Component "com.google.appinventor.components.runtime.Image" does not specify permissionConstraints
[LoadComponentInfo] INFO: Component "com.google.appinventor.components.runtime.Label" does not specify permissionConstraints
[LoadComponentInfo] INFO: Component "com.google.appinventor.components.runtime.Sharing" does not specify permissionConstraints
[LoadComponentInfo] INFO: Component "com.google.appinventor.components.runtime.Switch" does not specify permissionConstraints
[LoadComponentInfo] INFO: Component "com.google.appinventor.components.runtime.TinyDB" does not specify permissionConstraints
[LoadComponentInfo] INFO: Component "com.google.appinventor.components.runtime.VerticalScrollArrangement" does not specify permissionConstraints
[LoadComponentInfo] usesLocation = False
[LoadComponentInfo] Permissions needed, n = 5
[LoadComponentInfo] Component services needed, n = 0
[LoadComponentInfo] INFO: Generating component broadcast receivers...
[LoadComponentInfo] Task succeeded in 0.003 seconds
[PrepareAppIcon] Starting Task
[PrepareAppIcon] INFO: Creating mipmap dirs...
[PrepareAppIcon] INFO: Generating icons...
[PrepareAppIcon] Generating icons for mipmap-mdpi
[PrepareAppIcon] Generating icons for mipmap-hdpi
[PrepareAppIcon] Generating icons for mipmap-xhdpi
[PrepareAppIcon] Generating icons for mipmap-xxhdpi
[PrepareAppIcon] Generating icons for mipmap-xxxhdpi
[PrepareAppIcon] Task succeeded in 0.422 seconds
[XmlConfig] Starting Task
[XmlConfig] INFO: Creating animation xml
[XmlConfig] Creating zoom_enter.xml
[XmlConfig] Creating fadeout.xml
[XmlConfig] Creating slide_v_exit.xml
[XmlConfig] Creating fadein.xml
[XmlConfig] Creating zoom_exit.xml
[XmlConfig] Creating slide_v_enter.xml
[XmlConfig] Creating zoom_exit_reverse.xml
[XmlConfig] Creating slide_v_enter_reverse.xml
[XmlConfig] Creating zoom_enter_reverse.xml
[XmlConfig] Creating slide_enter_reverse.xml
[XmlConfig] Creating slide_exit.xml
[XmlConfig] Creating hold.xml
[XmlConfig] Creating slide_enter.xml
[XmlConfig] Creating slide_v_exit_reverse.xml
[XmlConfig] Creating slide_exit_reverse.xml
[XmlConfig] INFO: Creating style xml
[XmlConfig] INFO: Creating provider_path xml
[XmlConfig] INFO: Creating network_security_config xml
[XmlConfig] INFO: Generating adaptive icon file
[XmlConfig] INFO: Generating round adaptive icon file
[XmlConfig] INFO: Generating adaptive icon background file
[XmlConfig] Task succeeded in 0.02 seconds
[CreateManifest] Starting Task
[CreateManifest] INFO: Reading project specs...
[CreateManifest] VCode: 3
[CreateManifest] VName: 1.2
[CreateManifest] Min SDK 7
[CreateManifest] INFO: Writing screen 'appinventor.ai_randymackhernandez.PoemADay.Main'
[CreateManifest] INFO: Writing screen 'appinventor.ai_randymackhernandez.PoemADay.Questionnaire'
[CreateManifest] INFO: Writing screen 'appinventor.ai_randymackhernandez.PoemADay.NewPoem'
[CreateManifest] INFO: Writing screen 'appinventor.ai_randymackhernandez.PoemADay.Screen1'
[CreateManifest] INFO: Writing screen 'appinventor.ai_randymackhernandez.PoemADay.About'
[CreateManifest] INFO: Writing screen 'appinventor.ai_randymackhernandez.PoemADay.Changelog'
[CreateManifest] Task succeeded in 0.004 seconds
[AttachNativeLibs] Starting Task
[AttachNativeLibs] Task succeeded in 0.001 seconds
[AttachAarLibs] Starting Task
[AttachAarLibs] Task succeeded in 0.156 seconds
[AttachCompAssets] Starting Task
[AttachCompAssets] Task succeeded in 0.01 seconds
[MergeResources] Starting Task
[MergeResources] Task succeeded in 0.184 seconds
[SetupLibs] Starting Task
[SetupLibs] Task succeeded in 0.0 seconds
[RunAapt] Starting Task
[RunAapt] Task succeeded in 0.955 seconds
[GenerateClasses] Starting Task
[GenerateClasses] INFO: Source File: appinventor/ai_randymackhernandez/PoemADay/Main.yail
[GenerateClasses] INFO: Source File: appinventor/ai_randymackhernandez/PoemADay/Questionnaire.yail
[GenerateClasses] INFO: Source File: appinventor/ai_randymackhernandez/PoemADay/NewPoem.yail
[GenerateClasses] INFO: Source File: appinventor/ai_randymackhernandez/PoemADay/Screen1.yail
[GenerateClasses] INFO: Source File: appinventor/ai_randymackhernandez/PoemADay/About.yail
[GenerateClasses] INFO: Source File: appinventor/ai_randymackhernandez/PoemADay/Changelog.yail
[GenerateClasses] INFO: Libraries Classpath = /tmp/kawa11351477527673855238.jar:/tmp/acra-4.4.014134783144149004394.jar:/tmp/AndroidRuntime6471230784861945667.jar:/tmp/annotation5357956812628857253.jar:/tmp/appcompat4229693436521563144.jar:/tmp/asynclayoutinflater5348579311320021652.jar:/tmp/collection15606950646471854762.jar:/tmp/constraintlayout2931825250974449319.jar:/tmp/constraintlayout-solver13861180016351902705.jar:/tmp/coordinatorlayout16113124360217611405.jar:/tmp/core996144369205567982.jar:/tmp/core-common6715481549020741743.jar:/tmp/core-runtime17126820602825556901.jar:/tmp/cursoradapter15378712373312452149.jar:/tmp/customview15163635068847739692.jar:/tmp/documentfile9378785174657832309.jar:/tmp/drawerlayout11377454269732285513.jar:/tmp/fragment16342574650969860017.jar:/tmp/interpolator16181702864281042341.jar:/tmp/legacy-support-core-ui5708168406460752291.jar:/tmp/legacy-support-core-utils3721027277276043898.jar:/tmp/lifecycle-common2853496696889056177.jar:/tmp/lifecycle-livedata8254682579292877947.jar:/tmp/lifecycle-livedata-core2121481686099062351.jar:/tmp/lifecycle-runtime9041235193444891070.jar:/tmp/lifecycle-viewmodel1151508422880899183.jar:/tmp/loader15388708186500397226.jar:/tmp/localbroadcastmanager14959485848170489068.jar:/tmp/print16034470756011886162.jar:/tmp/slidingpanelayout18210290635798609436.jar:/tmp/swiperefreshlayout456312447075632591.jar:/tmp/vectordrawable2589514673276890033.jar:/tmp/vectordrawable-animated9508356745707464020.jar:/tmp/versionedparcelable5731764541067995033.jar:/tmp/viewpager6598907574178876239.jar:/tmp/1713825752842_0.527615955962652-0/youngandroidproject/../build/classes:/tmp/android1977764135334932508.jar
[GenerateClasses] ERROR: Kawa compile has failed.
(compiling appinventor/ai_randymackhernandez/PoemADay/Main.yail to appinventor.ai_randymackhernandez.PoemADay.Main)
(compiling appinventor/ai_randymackhernandez/PoemADay/Questionnaire.yail to appinventor.ai_randymackhernandez.PoemADay.Questionnaire)
(compiling appinventor/ai_randymackhernandez/PoemADay/NewPoem.yail to appinventor.ai_randymackhernandez.PoemADay.NewPoem)
ERROR: appinventor/ai_randymackhernandez/PoemADay/NewPoem.yail line 117: duplicate declaration of 'back'
[GenerateClasses] ERROR: Can't find class file for Screen 'NewPoem'
[GenerateClasses] Task errored in 2.537 seconds

Nevermind, I was actually looking through the forums and found the error. I named the button "back" and it caused the glitch. I changed the name and it was fixed. No error. Thanks anyways! Hope to post some good news soon.

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.