A lot of problems with generating app

Hi,
I want to update my app for new goolgle rules. After a years of do nothing... :smiley: Everything is different. When I add a new policy to app, and only want to generate it, a lot of problems dissappear.
Log:

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] INFO: Component "co.com.dendritas.Sidebar.Sidebar" does not specify activityMetadata [LoadComponentInfo] Component activity metadata needed, n = 0 [LoadComponentInfo] INFO: Generating broadcast receivers... [LoadComponentInfo] INFO: Component "co.com.dendritas.Sidebar.Sidebar" does not specify services [LoadComponentInfo] Component content providers needed, n = 1 [LoadComponentInfo] INFO: Generating libraries... [LoadComponentInfo] Libraries needed, n = 1 [LoadComponentInfo] INFO: Component "co.com.dendritas.Sidebar.Sidebar" does not specify metadata [LoadComponentInfo] Component metadata needed, n = 0 [LoadComponentInfo] INFO: Generating Android minimum SDK... [LoadComponentInfo] INFO: Component "co.com.dendritas.Sidebar.Sidebar" does not specify androidMinSdk [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.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.Notifier" does not specify permissionConstraints [LoadComponentInfo] INFO: Component "com.google.appinventor.components.runtime.Spinner" 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.VerticalArrangement" does not specify permissionConstraints [LoadComponentInfo] INFO: Component "com.google.appinventor.components.runtime.VerticalScrollArrangement" does not specify permissionConstraints [LoadComponentInfo] INFO: Component "com.google.appinventor.components.runtime.Web" does not specify permissionConstraints [LoadComponentInfo] INFO: Component "com.google.appinventor.components.runtime.WebViewer" does not specify permissionConstraints [LoadComponentInfo] INFO: Component "co.com.dendritas.Sidebar.Sidebar" does not specify permissionConstraints [LoadComponentInfo] INFO: Component "com.puravidaapps.TaifunAlarmManager.TaifunAlarmManager" does not specify permissionConstraints [LoadComponentInfo] INFO: Component "com.puravidaapps.TaifunTools" does not specify permissionConstraints [LoadComponentInfo] INFO: Component "com.sunny.CustomWebView.CustomWebView" does not specify permissionConstraints [LoadComponentInfo] usesLocation = False [LoadComponentInfo] Permissions needed, n = 24 [LoadComponentInfo] INFO: Component "co.com.dendritas.Sidebar.Sidebar" does not specify queries [LoadComponentInfo] INFO: Component "com.puravidaapps.TaifunAlarmManager.TaifunAlarmManager" does not specify queries [LoadComponentInfo] INFO: Component "com.puravidaapps.TaifunTools" does not specify queries [LoadComponentInfo] INFO: Component "com.sunny.CustomWebView.CustomWebView" does not specify queries [LoadComponentInfo] INFO: Component "com.sunny.CustomWebView.CustomWebViewHelper" does not specify queries [LoadComponentInfo] INFO: Component "co.com.dendritas.Sidebar.Sidebar" does not specify services [LoadComponentInfo] Component services needed, n = 1 [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 0.198 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: 251 [CreateManifest] VName: 2,51 [CreateManifest] Min SDK 21 [CreateManifest] INFO: Writing screen 'appinventor.ai_lukaszczaja.sanktuarium25.Screen1' [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.142 seconds [AttachCompAssets] Starting Task [AttachCompAssets] Task succeeded in 0.031 seconds [MergeResources] Starting Task [MergeResources] Task succeeded in 0.194 seconds [SetupLibs] Starting Task [SetupLibs] Task succeeded in 0.0 seconds [RunAapt] Starting Task [RunAapt] Task succeeded in 1.134 seconds [GenerateClasses] Starting Task [GenerateClasses] INFO: Source File: appinventor/ai_lukaszczaja/sanktuarium25/Screen1.yail [GenerateClasses] INFO: Libraries Classpath = /tmp/kawa305650766720810879.jar:/tmp/acra-4.4.05531992142064802160.jar:/tmp/AndroidRuntime6221451630914304951.jar:/tmp/annotation1652385637574675367.jar:/tmp/appcompat1339272104265501805.jar:/tmp/asynclayoutinflater5307115701577326257.jar:/tmp/collection5411982180888530122.jar:/tmp/constraintlayout5204498005040882772.jar:/tmp/constraintlayout-solver1115882894935681140.jar:/tmp/coordinatorlayout7639631384204107979.jar:/tmp/core9219164456954826903.jar:/tmp/core-common7400940957948435402.jar:/tmp/core-runtime4301369509070043144.jar:/tmp/cursoradapter3893679691293481099.jar:/tmp/customview4909062008661895811.jar:/tmp/documentfile5427443089886066338.jar:/tmp/drawerlayout5820422758117913250.jar:/tmp/fragment4422846724383981182.jar:/tmp/interpolator5159477997240095244.jar:/tmp/legacy-support-core-ui3618540204685356637.jar:/tmp/legacy-support-core-utils6759984230785688859.jar:/tmp/lifecycle-common822774694795599921.jar:/tmp/lifecycle-livedata4508617577252735058.jar:/tmp/lifecycle-livedata-core3048567265792041931.jar:/tmp/lifecycle-runtime3942887592441388893.jar:/tmp/lifecycle-viewmodel342674581363856710.jar:/tmp/loader6615927482101003953.jar:/tmp/localbroadcastmanager3688396481627253871.jar:/tmp/print3567218350846836212.jar:/tmp/slidingpanelayout3324795198364107688.jar:/tmp/swiperefreshlayout7876615940521977196.jar:/tmp/vectordrawable5789885330862526223.jar:/tmp/vectordrawable-animated2739730586403847398.jar:/tmp/versionedparcelable2690125986283542595.jar:/tmp/viewpager5812714251638938877.jar:/tmp/1700557833594_0.9249518804983647-0/youngandroidproject/../assets/external_comps/co.com.dendritas.Sidebar/files/AndroidRuntime.jar:/tmp/1700557833594_0.9249518804983647-0/youngandroidproject/../assets/external_comps/com.puravidaapps.TaifunAlarmManager/files/AndroidRuntime.jar:/tmp/1700557833594_0.9249518804983647-0/youngandroidproject/../assets/external_comps/com.puravidaapps.TaifunTools/files/AndroidRuntime.jar:/tmp/1700557833594_0.9249518804983647-0/youngandroidproject/../assets/external_comps/com.sunny.CustomWebView/files/AndroidRuntime.jar:/tmp/json7310494179699312740.jar:/tmp/1700557833594_0.9249518804983647-0/youngandroidproject/../build/classes:/tmp/android6116452977533613362.jar [GenerateClasses] ERROR: Kawa compile has failed. (compiling appinventor/ai_lukaszczaja/sanktuarium25/Screen1.yail to appinventor.ai_lukaszczaja.sanktuarium25.Screen1) ERROR: appinventor/ai_lukaszczaja/sanktuarium25/Screen1.yail line 128: duplicate declaration of 'back' ERROR: appinventor/ai_lukaszczaja/sanktuarium25/Screen1.yail line 128: (this is the previous declaration of 'back') [GenerateClasses] ERROR: Can't find class file for Screen 'Screen1' [GenerateClasses] Task errored in 2.247 seconds

And my .aia file:
sanktuarium25.aia (4,7 MB)

I think the problems is from plugins I've input there.

Could you help me? Plz

Try to rename back button to another name for example backPRESS and see if it works for you. If problem persists check maybe some extensions used in your project are outdated

Oh man, you're great. It is working. But when I generate the app I can't install it on my phone. Ofcourse emulation in Companion wokrs great, compilation wokrs, installation failed. Android says: 'the package looks incorrect'. Any ideas?

Have you created the new app with the same name as the older one and changed your account ? Or have you used a different AI2 server ?
Or, if you open the .apk with 7zip (or whichever unzipper) do you see something "strange" ? i.e. the unzipper has troubles in opening it ?. Any files corrupted inside ?

EDIT: please also check the extensions used (if any) as @Ria_Das has correctly suggested, some of them could be out of date...

For example see Extension: Modified Notification Style to support Android 12 and above. Maybe notification style extension by @Jarlissonlira2 causes the problem

1 Like

You're right. Notification extension made problem. Solved :smiley:

1 Like

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