How can i build this as an APK file? duplicate declaration of 'back'

I was trying to build this app and shown this error:

App Inventor is unable to compile this project.
The compiler error output was
[ReadBuildInfo] Starting Task
[ReadBuildInfo] Task succeeded in 0.003 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.Button" does not specify permissionConstraints
[LoadComponentInfo] INFO: Component "com.google.appinventor.components.runtime.DatePicker" 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.TinyDB" does not specify permissionConstraints
[LoadComponentInfo] INFO: Component "com.google.appinventor.components.runtime.VerticalArrangement" 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.007 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.147 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.004 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_toledo_jonrenzo.Horoscope_App_checkpoint1.Horoscope_Page'
[CreateManifest] INFO: Writing screen 'appinventor.ai_toledo_jonrenzo.Horoscope_App_checkpoint1.Screen1'
[CreateManifest] Task succeeded in 0.001 seconds
[AttachNativeLibs] Starting Task
[AttachNativeLibs] Task succeeded in 0.001 seconds
[AttachAarLibs] Starting Task
[AttachAarLibs] Task succeeded in 0.126 seconds
[AttachCompAssets] Starting Task
[AttachCompAssets] Task succeeded in 0.004 seconds
[MergeResources] Starting Task
[MergeResources] Task succeeded in 0.168 seconds
[SetupLibs] Starting Task
[SetupLibs] Task succeeded in 0.0 seconds
[RunAapt] Starting Task
[RunAapt] Task succeeded in 0.946 seconds
[GenerateClasses] Starting Task
[GenerateClasses] INFO: Source File: appinventor/ai_toledo_jonrenzo/Horoscope_App_checkpoint1/Horoscope_Page.yail
[GenerateClasses] INFO: Source File: appinventor/ai_toledo_jonrenzo/Horoscope_App_checkpoint1/Screen1.yail
[GenerateClasses] INFO: Libraries Classpath = /tmp/kawa6888796361133093829.jar:/tmp/acra-4.4.07479589377526965100.jar:/tmp/AndroidRuntime2583179594388497385.jar:/tmp/annotation1779181384195935826.jar:/tmp/appcompat2121341176379675354.jar:/tmp/asynclayoutinflater1520000066712897889.jar:/tmp/collection9116450480824121859.jar:/tmp/constraintlayout9997138671000609361.jar:/tmp/constraintlayout-solver15032426413042029418.jar:/tmp/coordinatorlayout9610924185098991081.jar:/tmp/core290671118050279849.jar:/tmp/core-common3511799773571857680.jar:/tmp/core-runtime10873576199937056219.jar:/tmp/cursoradapter6752483607523756928.jar:/tmp/customview1396001933671208663.jar:/tmp/documentfile18077915774840308628.jar:/tmp/drawerlayout8333983473753102862.jar:/tmp/fragment1474399814599921451.jar:/tmp/interpolator10248917670446829326.jar:/tmp/legacy-support-core-ui16471187103357673450.jar:/tmp/legacy-support-core-utils1231978565722926809.jar:/tmp/lifecycle-common81601577742335622.jar:/tmp/lifecycle-livedata4449597600559830608.jar:/tmp/lifecycle-livedata-core14302846417320008600.jar:/tmp/lifecycle-runtime8530233272223856242.jar:/tmp/lifecycle-viewmodel16805144716431970848.jar:/tmp/loader2840953339516004020.jar:/tmp/localbroadcastmanager9335367527924374683.jar:/tmp/print11536921513793495020.jar:/tmp/slidingpanelayout11288638042651477055.jar:/tmp/swiperefreshlayout18394285823317558485.jar:/tmp/vectordrawable15988529068378928614.jar:/tmp/vectordrawable-animated11358849878498585362.jar:/tmp/versionedparcelable7894897206073345648.jar:/tmp/viewpager16021720776979470518.jar:/tmp/1709463040912_0.06400438633944106-0/youngandroidproject/../build/classes:/tmp/android11258642112399808920.jar
[GenerateClasses] ERROR: Kawa compile has failed.
(compiling appinventor/ai_toledo_jonrenzo/Horoscope_App_checkpoint1/Horoscope_Page.yail to appinventor.ai_toledo_jonrenzo.Horoscope_App_checkpoint1.Horoscope_Page)

ERROR: appinventor/ai_toledo_jonrenzo/Horoscope_App_checkpoint1/Horoscope_Page.yail line 37: duplicate declaration of 'back'

ERROR: appinventor/ai_toledo_jonrenzo/Horoscope_App_checkpoint1/Horoscope_Page.yail line 37: (this is the previous declaration of 'back')

[GenerateClasses] ERROR: Can't find class file for Screen 'Horoscope_Page'
[GenerateClasses] Task errored in 2.15 seconds

Here is the aia file:
Horoscope_App_checkpoint1.aia (266.9 KB)

Try changing your app icon to a jpg file.

tried, still not working :confused:

See here

Taifun

1 Like

thank you so much, it works now

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