Hi all,
I was able to successfully host appinventor on my raspberry pi running Raspbian OS 32bit arch. And visit it from out of my network with IPv6 address etc.
Anyway, It was all working all fine but when I try to compile the apps using it, on the logs it shows error at AAPT Stage. I tried running the things with Github actions, it worked all fine and I tried even with latest ai2 sources but still the same result. I first thought that it may be because of the 64 bit arch, but then I found that my pi is itself running 32 bit. But I am not able to find any other problem in the system causing this error, please check it and help
System info:
Java Info:
Ant Info:
Buildserver Info:
Raspberry Pi Info:
Error Log of buildserver:
[java] INFO: START NEW BUILD 1
[java] Feb 09, 2021 6:33:28 PM com.google.appinventor.buildserver.BuildServer checkMemory
[java] INFO: Build 1 current used memory: 9371488 bytes
[java] Feb 09, 2021 6:33:28 PM com.google.appinventor.buildserver.ProjectBuilder build
[java] INFO: temporary project root: /tmp/1612875808882_0.11586012556473935-0
[java] Feb 09, 2021 6:33:28 PM com.google.appinventor.buildserver.ProjectBuilder extractProjectFiles
[java] INFO: extracting /tmp/1612875808882_0.11586012556473935-0/src/appinventor/ai_test/test/Screen1.bky from input zip
[java] Feb 09, 2021 6:33:28 PM com.google.appinventor.buildserver.ProjectBuilder extractProjectFiles
[java] INFO: extracting /tmp/1612875808882_0.11586012556473935-0/src/appinventor/ai_test/test/Screen1.scm from input zip
[java] Feb 09, 2021 6:33:28 PM com.google.appinventor.buildserver.ProjectBuilder extractProjectFiles
[java] INFO: extracting /tmp/1612875808882_0.11586012556473935-0/src/appinventor/ai_test/test/Screen1.yail from input zip
[java] Feb 09, 2021 6:33:28 PM com.google.appinventor.buildserver.ProjectBuilder extractProjectFiles
[java] INFO: extracting /tmp/1612875808882_0.11586012556473935-0/youngandroidproject/project.properties from input zip
[java] Feb 09, 2021 6:33:28 PM com.google.appinventor.buildserver.Execution execute
[java] INFO: ____Executing /usr/lib/jvm/java-8-openjdk-armhf/jre/bin/keytool -genkey -keystore /tmp/1612875808882_0.11586012556473935-0/android.keystore -alias AndroidKey -keyalg RSA -dname CN="test@example.com", O=AppInventor for Android, C=US -validity 10000 -storepass android -keypass android
[java]
[java] Warning:
[java] The JKS keystore uses a proprietary format. It is recommended to migrate to PKCS12 which is an industry standard format using "keytool -importkeystore -srckeystore /tmp/1612875808882_0.11586012556473935-0/android.keystore -destkeystore /tmp/1612875808882_0.11586012556473935-0/android.keystore -deststoretype pkcs12".
[java] Feb 09, 2021 6:33:33 PM com.google.appinventor.buildserver.BuildServer$ProgressReporter report
[java] SEVERE: IOException during progress report!
[java] Component assets needed, n = 0
[java] Component activities needed, n = 0
[java] Component metadata needed, n = 0
[java] Component metadata needed, n = 0
[java] Libraries needed, n = 0
[java] Native Libraries needed, n = 0
[java] Permissions needed, n = 3
[java] Feb 09, 2021 6:33:33 PM com.google.appinventor.buildserver.Compiler generatePermissions
[java] INFO: usesLocation = False
[java] Feb 09, 2021 6:33:38 PM com.google.appinventor.buildserver.BuildServer$ProgressReporter report
[java] SEVERE: IOException during progress report!
[java] Feb 09, 2021 6:33:38 PM com.google.appinventor.buildserver.Compiler writeAndroidManifest
[java] INFO: VCode: 1
[java] Feb 09, 2021 6:33:38 PM com.google.appinventor.buildserver.Compiler writeAndroidManifest
[java] INFO: VName: 1.0
[java] Feb 09, 2021 6:33:38 PM com.google.appinventor.buildserver.BuildServer$ProgressReporter report
[java] SEVERE: IOException during progress report!
[java] Feb 09, 2021 6:33:40 PM com.google.appinventor.buildserver.Execution execute
[java] INFO: ___Executing /tmp/aapt949721099071397903 package -v -f -M /tmp/1612875808882_0.11586012556473935-0/youngandroidproject/../build/AndroidManifest.xml -S /tmp/1612875808882_0.11586012556473935-0/youngandroidproject/../build/intermediates/res/merged -A /tmp/1612875808882_0.11586012556473935-0/youngandroidproject/../build/assets -I /tmp/android3262320902528778152.jar -F /tmp/1612875808882_0.11586012556473935-0/youngandroidproject/../build/deploy/test.ap -m -J /tmp/1612875808882_0.11586012556473935-0/youngandroidproject/../build/generated/src --custom-package appinventor.ai_test.test --output-text-symbols /tmp/1612875808882_0.11586012556473935-0/youngandroidproject/../build/generated/symbols --no-version-vectors
[java] /tmp/aapt949721099071397903: 1: /tmp/aapt949721099071397903: ELF: not found
[java] /tmp/aapt949721099071397903: 2: /tmp/aapt949721099071397903: Syntax error: "(" unexpected
[java] Feb 09, 2021 6:33:40 PM com.google.appinventor.buildserver.Compiler runAaptPackage
[java] WARNING: YAIL compiler - AAPT execution failed.
[java] Feb 09, 2021 6:33:40 PM com.google.appinventor.buildserver.BuildServer build
[java] INFO: Build output: ________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
YAIL compiler - AAPT execution failed.
[java] Feb 09, 2021 6:33:40 PM com.google.appinventor.buildserver.BuildServer build
[java] INFO: Build error output: Error: Your build failed due to an error in the AAPT stage, not because of an error in your program.
[java]
[java] Feb 09, 2021 6:33:40 PM com.google.appinventor.buildserver.BuildServer checkMemory
[java] INFO: Build 1 current used memory: 9304000 bytes
[java] Feb 09, 2021 6:33:40 PM com.google.appinventor.buildserver.BuildServer buildAndCreateZip
[java] SEVERE: Build 1 Failed: 1 Error: Your build failed due to an error in the AAPT stage, not because of an error in your program.
[java]
[java] Feb 09, 2021 6:33:40 PM com.google.appinventor.buildserver.BuildServer$1 run
[java] INFO: CallbackURL: http://localhost:8888/ode2/receivebuild/d7kp3ar18vgo7saed55yxrzz9bgbla16qatxudmn9v0b2bv8ku9ilz08g0cjl8u16uibzo02xhii98wp4kvaxusk1ksjpy668qykaf2j74wh6yzectwxezh77sa6z9f5rzolqr727c/build/Android
[java] Feb 09, 2021 6:33:40 PM com.google.appinventor.buildserver.BuildServer checkMemory
[java] INFO: Build 1 current used memory: 9342768 bytes
[java] Feb 09, 2021 6:33:40 PM com.google.appinventor.buildserver.BuildServer$1 run
[java] SEVERE: Exception: Connection reset and the length is of inputZip is 1291
[java] Feb 09, 2021 6:33:45 PM com.google.appinventor.buildserver.BuildServer checkMemory
[java] INFO: Build 1 current used memory: 9317728 bytes
[java] Feb 09, 2021 6:33:45 PM com.google.appinventor.buildserver.BuildServer$1 run
[java] INFO: BUILD 1 FINISHED
If any more info is needed please just reply