Error on building apk, duplicate declaration of 'back'

I was building an app but then it just gave me this error message:
App Inventor is unable to compile this project. The compiler error output was [ReadBuildInfo] Starting Task [ReadBuildInfo] Task succeeded in 0.006 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 = 4 [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.Button" 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.ListView" does not specify permissionConstraints [LoadComponentInfo] INFO: Component "com.google.appinventor.components.runtime.LocationSensor" does not specify permissionConstraints [LoadComponentInfo] INFO: Component "com.google.appinventor.components.runtime.PhoneCall" does not specify permissionConstraints [LoadComponentInfo] INFO: Component "com.google.appinventor.components.runtime.SpeechRecognizer" 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.TableArrangement" does not specify permissionConstraints [LoadComponentInfo] INFO: Component "com.google.appinventor.components.runtime.TextBox" does not specify permissionConstraints [LoadComponentInfo] INFO: Component "com.google.appinventor.components.runtime.TextToSpeech" 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.VerticalArrangement" does not specify permissionConstraints [LoadComponentInfo] INFO: Component "com.google.appinventor.components.runtime.Web" does not specify permissionConstraints [LoadComponentInfo] usesLocation = False [LoadComponentInfo] Permissions needed, n = 14 [LoadComponentInfo] Component services needed, n = 0 [LoadComponentInfo] INFO: Generating component broadcast receivers... [LoadComponentInfo] Task succeeded in 0.004 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 1.083 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.005 seconds [CreateManifest] Starting Task [CreateManifest] INFO: Reading project specs... [CreateManifest] VCode: 1 [CreateManifest] VName: 1.0 [CreateManifest] Min SDK 7 [CreateManifest] INFO: Writing screen 'appinventor.ai_annas100211.FINAL_WeatherWiseChat.ForecastScreen' [CreateManifest] INFO: Writing screen 'appinventor.ai_annas100211.FINAL_WeatherWiseChat.Alerts' [CreateManifest] INFO: Writing screen 'appinventor.ai_annas100211.FINAL_WeatherWiseChat.BotScreen' [CreateManifest] INFO: Writing screen 'appinventor.ai_annas100211.FINAL_WeatherWiseChat.Screen1' [CreateManifest] INFO: Writing screen 'appinventor.ai_annas100211.FINAL_WeatherWiseChat.S7DaysForecast' [CreateManifest] INFO: Writing screen 'appinventor.ai_annas100211.FINAL_WeatherWiseChat.SeeMore' [CreateManifest] Task succeeded in 0.001 seconds [AttachNativeLibs] Starting Task [AttachNativeLibs] Task succeeded in 0.0 seconds [AttachAarLibs] Starting Task [AttachAarLibs] Task succeeded in 0.17 seconds [AttachCompAssets] Starting Task [AttachCompAssets] Task succeeded in 0.002 seconds [MergeResources] Starting Task [MergeResources] Task succeeded in 0.172 seconds [SetupLibs] Starting Task [SetupLibs] Task succeeded in 0.001 seconds [RunAapt] Starting Task [RunAapt] Task succeeded in 0.889 seconds [GenerateClasses] Starting Task [GenerateClasses] INFO: Source File: appinventor/ai_annas100211/FINAL_WeatherWiseChat/ForecastScreen.yail [GenerateClasses] INFO: Source File: appinventor/ai_annas100211/FINAL_WeatherWiseChat/Alerts.yail [GenerateClasses] INFO: Source File: appinventor/ai_annas100211/FINAL_WeatherWiseChat/BotScreen.yail [GenerateClasses] INFO: Source File: appinventor/ai_annas100211/FINAL_WeatherWiseChat/Screen1.yail [GenerateClasses] INFO: Source File: appinventor/ai_annas100211/FINAL_WeatherWiseChat/S7DaysForecast.yail [GenerateClasses] INFO: Source File: appinventor/ai_annas100211/FINAL_WeatherWiseChat/SeeMore.yail [GenerateClasses] INFO: Libraries Classpath = /tmp/kawa9818609629176634216.jar:/tmp/acra-4.4.03223749811571762180.jar:/tmp/AndroidRuntime9591433767185516373.jar:/tmp/annotation46694592630637841.jar:/tmp/appcompat16363564639301723173.jar:/tmp/asynclayoutinflater7528209963973394168.jar:/tmp/collection6347692571707839221.jar:/tmp/constraintlayout8146254321060503759.jar:/tmp/constraintlayout-solver4551987010135482668.jar:/tmp/coordinatorlayout4545757313740534242.jar:/tmp/core1843617254694249486.jar:/tmp/core-common6227346107756081700.jar:/tmp/core-runtime14262589885457896282.jar:/tmp/cursoradapter12426391260894259877.jar:/tmp/customview13577825930784705398.jar:/tmp/documentfile11203131001359323281.jar:/tmp/drawerlayout126075642973245136.jar:/tmp/fragment17503298550445686781.jar:/tmp/interpolator13708048022948260768.jar:/tmp/legacy-support-core-ui14025510014903092765.jar:/tmp/legacy-support-core-utils15656943184717164385.jar:/tmp/lifecycle-common12952877252337947537.jar:/tmp/lifecycle-livedata1671038853137227689.jar:/tmp/lifecycle-livedata-core1802603726106455244.jar:/tmp/lifecycle-runtime1888937973931306901.jar:/tmp/lifecycle-viewmodel10038235189835205274.jar:/tmp/loader7797606211982067293.jar:/tmp/localbroadcastmanager12723178975057137581.jar:/tmp/print10585499400359469802.jar:/tmp/slidingpanelayout120103441890487170.jar:/tmp/swiperefreshlayout13113107707253297689.jar:/tmp/vectordrawable11090502414577138175.jar:/tmp/vectordrawable-animated16620726006945558986.jar:/tmp/versionedparcelable2749380054250984427.jar:/tmp/viewpager14802447770581322763.jar:/tmp/recyclerview155647268546228054.jar:/tmp/cardview16503908377284843161.jar:/tmp/json15924029079694977338.jar:/tmp/1713444105077_0.3515406096847169-0/youngandroidproject/../build/classes:/tmp/android16485262636937841498.jar [GenerateClasses] ERROR: Kawa compile has failed. (compiling appinventor/ai_annas100211/FINAL_WeatherWiseChat/ForecastScreen.yail to appinventor.ai_annas100211.FINAL_WeatherWiseChat.ForecastScreen) (compiling appinventor/ai_annas100211/FINAL_WeatherWiseChat/Alerts.yail to appinventor.ai_annas100211.FINAL_WeatherWiseChat.Alerts) ERROR: appinventor/ai_annas100211/FINAL_WeatherWiseChat/Alerts.yail line 41: duplicate declaration of 'back' [GenerateClasses] ERROR: Can't find class file for Screen 'Alerts' [GenerateClasses] Task errored in 2.541 seconds

Is there anything to fix this? Respond ASAP

Change the name of your components by "lbBack", "btBack" or whatever...."back" is not an appropriate name.

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