Error WinBuildAPKfromSRC AI2LiveComplete

125 views
Skip to first unread message

Francisco Pérez

unread,
Feb 19, 2014, 2:58:33 AM2/19/14
to appto...@googlegroups.com
I tried to use with Windows 7 ad Windows 8 in Chrome and Firefox browers building from an aia file an apk file using AI2LiveComplete ( I have tried to use JDK 1.7and JDK 1,6) and I found the following errors tying to build the App WinBuildAPKfromSrc 



Is it possible to solve it without using cmd?

M. Hossein Amerkashi

unread,
Feb 19, 2014, 9:33:06 AM2/19/14
to Francisco Pérez, AppToMarket
Please read what the message says.
I wasn't able to get the batch file working.
You need to copy the command from the batch file, modify it to suit your needs and then run it from a command line.

-Hossein.


--
For Java Bridge (sdkBridger), visit http://code.google.com/p/apptomarket/
---
You received this message because you are subscribed to the Google Groups "AppToMarket" group.
To unsubscribe from this group and stop receiving emails from it, send an email to apptomarket...@googlegroups.com.
Visit this group at http://groups.google.com/group/apptomarket.
For more options, visit https://groups.google.com/groups/opt_out.

Sebastiano T.

unread,
Sep 12, 2014, 4:29:01 AM9/12/14
to appto...@googlegroups.com, drfp...@gmail.com
Hi Hossein,
in the past i've used succesfully the .cmd file to build APK from .aia file (to build project larger than 5Mb)
Now i've downloaded Ai2Offline_07Jun14.zip
I'm running Windows 7 64bit with 4Gb of Ram - Java JDK 1.7.0_17

I copied the script file WinBuildApkFromSrc.cmd to /buildserver/lib folder as instructed
And modified with my source .aia file so it looks like this now:

"%JAVA_HOME%\bin\java" -Xmx1g -cp BuildServer.jar;CommonUtils.jar;CommonVersion.jar;FastInfoset-1.2.2.jar;activation-1.1.jar;args4j-2.0.18.jar;asm-3.1.jar;commons-io-2.0.1.jar;grizzly-servlet-webserver-1.9.18-i.jar;guava-14.0.1.jar;http-20070405.jar;jackson-core-asl-1.9.4.jar;jaxb-api-2.1.jar;jaxb-impl-2.1.10.jar;jaxb-xjc.jar;jdom-1.0.jar;jersey-bundle-1.3.jar;jersey-multipart-1.3.jar;jettison-1.1.jar;json.jar;jsr311-api-1.1.1.jar;localizer.jar;mail-1.4.jar;rome-0.9.jar;sdklib.jar;stax-api-1.0-2.jar;wadl-cmdline.jar;wadl-core.jar;wadl2java.jar -Dfile.encoding=UTF-8 com.google.appinventor.buildserver.Main --inputZipFile C:\Users\stognacci\Downloads\testcompile.aia --userName kkas...@gmail.com --outputDir C:\Users\stognacci\Downloads

From dos windows i cd to C:\Ai2LiveComplete\buildserver\lib
and then launch the above command
however all the times it stops at 20%

I tried to modify the batch file, i tried to verify that all needed libs are existing in the lib folder, i tried to change memory allocation (-Xmx1828m) but all the time same result,
i've also tried on another pc, same issue

Here is the full output of the compilation process:

c:\Ai2LiveComplete\BuildServer\lib>"%JAVA_HOME%\bin\java" -Xmx1g -cp BuildServer
.jar;CommonUtils.jar;CommonVersion.jar;FastInfoset-1.2.2.jar;activation-1.1.jar;
args4j-2.0.18.jar;asm-3.1.jar;commons-io-2.0.1.jar;grizzly-servlet-webserver-1.9
.18-i.jar;guava-14.0.1.jar;http-20070405.jar;jackson-core-asl-1.9.4.jar;jaxb-api
-2.1.jar;jaxb-impl-2.1.10.jar;jaxb-xjc.jar;jdom-1.0.jar;jersey-bundle-1.3.jar;je
rsey-multipart-1.3.jar;jettison-1.1.jar;json.jar;jsr311-api-1.1.1.jar;localizer.
jar;mail-1.4.jar;rome-0.9.jar;sdklib.jar;stax-api-1.0-2.jar;wadl-cmdline.jar;wad
l-core.jar;wadl2java.jar -Dfile.encoding=UTF-8 com.google.appinventor.buildserve
r.Main --inputZipFile C:\Users\stognacci\Downloads\testcompile.aia --userName kk
ash...@gmail.com --outputDir C:\Users\stognacci\Downloads
set 12, 2014 10:28:07 AM com.google.appinventor.buildserver.ProjectBuilder build

INFO: temporary project root: C:\Users\STOGNA~1\AppData\Local\Temp\1410510487547
_0.6797015862696162-0
set 12, 2014 10:28:07 AM com.google.appinventor.buildserver.ProjectBuilder extra
ctProjectFiles
INFO: extracting C:\Users\STOGNA~1\AppData\Local\Temp\1410510487547_0.6797015862
696162-0\src\appinventor\ai_seblogapps\TestCompile\Screen1.bky from input zip
set 12, 2014 10:28:07 AM com.google.appinventor.buildserver.ProjectBuilder extra
ctProjectFiles
INFO: extracting C:\Users\STOGNA~1\AppData\Local\Temp\1410510487547_0.6797015862
696162-0\src\appinventor\ai_seblogapps\TestCompile\Screen1.scm from input zip
set 12, 2014 10:28:07 AM com.google.appinventor.buildserver.ProjectBuilder extra
ctProjectFiles
INFO: extracting C:\Users\STOGNA~1\AppData\Local\Temp\1410510487547_0.6797015862
696162-0\src\appinventor\ai_seblogapps\TestCompile\Screen1.yail from input zip
set 12, 2014 10:28:07 AM com.google.appinventor.buildserver.ProjectBuilder extra
ctProjectFiles
INFO: extracting C:\Users\STOGNA~1\AppData\Local\Temp\1410510487547_0.6797015862
696162-0\youngandroidproject\project.properties from input zip
set 12, 2014 10:28:07 AM com.google.appinventor.buildserver.Execution execute
INFO: ____Executing C:\Program Files\Java\jdk1.7.0_17\jre/bin/keytool -genkey -k
eystore C:\Users\STOGNA~1\AppData\Local\Temp\1410510487547_0.6797015862696162-0\
android.keystore -alias AndroidKey -keyalg RSA -dname CN="kkas...@gmail.com", O
=AppInventor for Android, C=US -validity 10000 -storepass android -keypass andro
id
Libraries needed, n= 0
Native Libraries needed, n= 0
Component assets needed, n= 0
set 12, 2014 10:28:08 AM com.google.appinventor.buildserver.Compiler setProgress

INFO: The current progress is 10%
set 12, 2014 10:28:08 AM com.google.appinventor.buildserver.Compiler generatePer
missions
INFO: usesLocation = False
set 12, 2014 10:28:08 AM com.google.appinventor.buildserver.Compiler setProgress

INFO: The current progress is 15%
set 12, 2014 10:28:08 AM com.google.appinventor.buildserver.Compiler writeAndroi
dManifest
INFO: VCode: 1
set 12, 2014 10:28:08 AM com.google.appinventor.buildserver.Compiler writeAndroi
dManifest
INFO: VName: 1.0
set 12, 2014 10:28:08 AM com.google.appinventor.buildserver.Compiler setProgress

INFO: The current progress is 20%
set 12, 2014 10:28:08 AM com.google.appinventor.buildserver.Compiler generateCla
sses
INFO: source file: C:\Users\STOGNA~1\AppData\Local\Temp\1410510487547_0.67970158
62696162-0\youngandroidproject\..\src\appinventor\ai_seblogapps\TestCompile\Scre
en1.yail

Can you tell me what else i can try,
i really want to compile apps greater than 5Mb

Thanks  a lot for your support! :)

M. Hossein Amerkashi

unread,
Sep 12, 2014, 7:58:19 AM9/12/14
to Sebastiano T., AppToMarket, Francisco Pérez
Use below to see if you can build and let us know how it goes. Also, in the script, DO NOT use my email address. You should use your own email address:

"%JAVA_HOME%\bin\java" -Xmx1g -cp bcpkix-jdk15on-149.jar;bcprov-jdk15on-149.jar;BuildServer.jar;CommonUtils.jar;CommonVersion.jar;FastInfoset-1.2.2.jar;activation-1.1.jar;args4j-2.0.18.jar;asm-3.1.jar;commons-io-2.0.1.jar;grizzly-servlet-webserver-1.9.18-i.jar;guava-14.0.1.jar;http-20070405.jar;jackson-core-asl-1.9.4.jar;jaxb-api-2.1.jar;jaxb-impl-2.1.10.jar;jaxb-xjc.jar;jdom-1.0.jar;jersey-bundle-1.3.jar;jersey-multipart-1.3.jar;jettison-1.1.jar;json.jar;jsr311-api-1.1.1.jar;localizer.jar;mail-1.4.jar;rome-0.9.jar;sdklib.jar;stax-api-1.0-2.jar;wadl-cmdline.jar;wadl-core.jar;wadl2java.jar -Dfile.encoding=UTF-8 com.google.appinventor.buildserver.Main --inputZipFile C:\Users\stognacci\Downloads\testcompile.aia --userName kkas...@gmail.com --outputDir C:\Users\stognacci\Downloads


--
For Java Bridge (sdkBridger), visit http://code.google.com/p/apptomarket/
---
You received this message because you are subscribed to the Google Groups "AppToMarket" group.
To unsubscribe from this group and stop receiving emails from it, send an email to apptomarket...@googlegroups.com.
Visit this group at http://groups.google.com/group/apptomarket.
For more options, visit https://groups.google.com/d/optout.

seblog

unread,
Sep 15, 2014, 11:55:38 AM9/15/14
to M. Hossein Amerkashi, AppToMarket, Francisco Pérez
Sorry Hossein, forget to remove your email address :)

however , i tried with your command but same problem, process ends at 20%, please see below the new dos command (i've tried yours and also added all the jar files in my last test run, same result):
I changed the source .aia file (with an even simpler one created with local instance of AIServer)

"%JAVA_HOME%\bin\java" -Xmx1g -cp activation-1.1.jar;args4j-2.0.18.jar;asm-3.1.jar;bcpkix-jdk15on-149.jar;bcprov-jdk15on-149.jar;BuildServer.jar;commons-io-2.0.1.jar;CommonUtils.jar;CommonVersion.jar;FastInfoset-1.2.2.jar;grizzly-servlet-webserver-1.9.18-i.jar;guava-14.0.1.jar;http-20070405.jar;jackson-core-asl-1.9.4.jar;jaxb-api-2.1.jar;jaxb-impl-2.1.10.jar;jaxb-xjc.jar;jdom-1.0.jar;jersey-bundle-1.3.jar;jersey-multipart-1.3.jar;jettison-1.1.jar;json.jar;jsr311-api-1.1.1.jar;localizer.jar;mail-1.4.jar;rome-0.9.jar;sdklib.jar;stax-api-1.0-2.jar;wadl2java.jar;wadl-cmdline.jar;wadl-core.jar -Dfile.encoding=UTF-8 com.google.appinventor.buildserver.Main --inputZipFile C:\Users\seblogapps\Downloads\testproject.aia --userName seblo...@gmail.com --outputDir C:\Users\seblogapps\Downloads

Here's the full dos window output:

C:\Android\Ai2LiveComplete\BuildServer\lib>"%JAVA_HOME%\bin\java" -Xmx1g -cp act
ivation-1.1.jar;args4j-2.0.18.jar;asm-3.1.jar;bcpkix-jdk15on-149.jar;bcprov-jdk1
5on-149.jar;BuildServer.jar;commons-io-2.0.1.jar;CommonUtils.jar;CommonVersion.j
ar;FastInfoset-1.2.2.jar;grizzly-servlet-webserver-1.9.18-i.jar;guava-14.0.1.jar
;http-20070405.jar;jackson-core-asl-1.9.4.jar;jaxb-api-2.1.jar;jaxb-impl-2.1.10.
jar;jaxb-xjc.jar;jdom-1.0.jar;jersey-bundle-1.3.jar;jersey-multipart-1.3.jar;jet
tison-1.1.jar;json.jar;jsr311-api-1.1.1.jar;localizer.jar;mail-1.4.jar;rome-0.9.
jar;sdklib.jar;stax-api-1.0-2.jar;wadl2java.jar;wadl-cmdline.jar;wadl-core.jar -
Dfile.encoding=UTF-8 com.google.appinventor.buildserver.Main --inputZipFile C:\U
sers\stognacci\Downloads\testproject.aia --userName seblo...@gmail.com --outpu
tDir C:\Users\stognacci\Downloads
set 15, 2014 5:51:18 PM com.google.appinventor.buildserver.ProjectBuilder build
INFO: temporary project root: C:\Users\STOGNA~1\AppData\Local\Temp\1410796278041
_0.13743114309918136-0
set 15, 2014 5:51:18 PM com.google.appinventor.buildserver.ProjectBuilder extrac
tProjectFiles
INFO: extracting C:\Users\STOGNA~1\AppData\Local\Temp\1410796278041_0.1374311430
9918136-0\src\appinventor\ai_seblogapps\testproject\Screen1.bky from input zip
set 15, 2014 5:51:18 PM com.google.appinventor.buildserver.ProjectBuilder extrac
tProjectFiles
INFO: extracting C:\Users\STOGNA~1\AppData\Local\Temp\1410796278041_0.1374311430
9918136-0\src\appinventor\ai_seblogapps\testproject\Screen1.scm from input zip
set 15, 2014 5:51:18 PM com.google.appinventor.buildserver.ProjectBuilder extrac
tProjectFiles
INFO: extracting C:\Users\STOGNA~1\AppData\Local\Temp\1410796278041_0.1374311430
9918136-0\src\appinventor\ai_seblogapps\testproject\Screen1.yail from input zip
set 15, 2014 5:51:18 PM com.google.appinventor.buildserver.ProjectBuilder extrac
tProjectFiles
INFO: extracting C:\Users\STOGNA~1\AppData\Local\Temp\1410796278041_0.1374311430
9918136-0\youngandroidproject\project.properties from input zip
set 15, 2014 5:51:18 PM com.google.appinventor.buildserver.Execution execute
INFO: ____Executing C:\Program Files\Java\jdk1.7.0_17\jre/bin/keytool -genkey -k
eystore C:\Users\STOGNA~1\AppData\Local\Temp\1410796278041_0.13743114309918136-0
\android.keystore -alias AndroidKey -keyalg RSA -dname CN="seblo...@gmail.com"
, O=AppInventor for Android, C=US -validity 10000 -storepass android -keypass an
droid
Libraries needed, n= 0
Native Libraries needed, n= 0
Component assets needed, n= 0
set 15, 2014 5:51:19 PM com.google.appinventor.buildserver.Compiler setProgress
INFO: The current progress is 10%
set 15, 2014 5:51:19 PM com.google.appinventor.buildserver.Compiler generatePerm
issions
INFO: usesLocation = False
set 15, 2014 5:51:19 PM com.google.appinventor.buildserver.Compiler setProgress
INFO: The current progress is 15%
set 15, 2014 5:51:19 PM com.google.appinventor.buildserver.Compiler writeAndroid
Manifest
INFO: VCode: 1
set 15, 2014 5:51:19 PM com.google.appinventor.buildserver.Compiler writeAndroid
Manifest
INFO: VName: 1.0
set 15, 2014 5:51:19 PM com.google.appinventor.buildserver.Compiler setProgress
INFO: The current progress is 20%
set 15, 2014 5:51:19 PM com.google.appinventor.buildserver.Compiler generateClas
ses
INFO: source file: C:\Users\STOGNA~1\AppData\Local\Temp\1410796278041_0.13743114
309918136-0\youngandroidproject\..\src\appinventor\ai_seblogapps\testproject\Scr
een1.yail

If i add verbose output from the java command i get this line that might have the problem:

[Loaded org.apache.commons.io.output.NullOutputStream from file:/C:/Android/Ai2L
iveComplete/BuildServer/lib/commons-io-2.0.1.jar]
[Loaded org.apache.commons.io.FileExistsException from file:/C:/Android/Ai2LiveC
omplete/BuildServer/lib/commons-io-2.0.1.jar]

You can find full dos output here:

Please let me know what else we can do to solve the problem,
thanks!

Reply all
Reply to author
Forward
0 new messages