pctb2007
(Paulo Borges)
December 1, 2021, 10:08am
#1
Hi, cannot generate APK for several days now.
Testing with companion works ok.
Error message is as below:
Kodular is unable to compile this project.
The compiler error output was
________Preparing application icon
________Creating animation xml
________Creating fragment xml
________Creating listview xml in res/layout/..
________Creating listview xml in res/layout-v21/..
________Creating xml in res/drawable/..
________Creating splash png in res/drawable/..
________Creating colors xml
________Creating styles xml
________Creating drawables xml v21
________Checking for firebase
________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
AAPT time: 1.306 seconds
________Compiling source files
(compiling io/kodular/pctb2007/ALPRBRSSL/Config.yail to io.kodular.pctb2007.ALPRBRSSL.Config)
(compiling io/kodular/pctb2007/ALPRBRSSL/Screen1.yail to io.kodular.pctb2007.ALPRBRSSL.Screen1)
(compiling /tmp/runtime3163500755750213266.scm to com.google.youngandroid.runtime)
Kawa compile time: 1.802 seconds
________Invoking DX
DX time: 4.481 seconds
________Invoking ApkBuilder
com.android.sdklib.build.ApkCreationException: Failed to add /tmp/1638352781713_0.8090696230651829-0/youngandroidproject/../build/tmp/classes3.dex
YAIL compiler - ApkBuilder failed.
Am I doing anything wrong?
Assistance welcome.
dora_paz
(Dora)
December 1, 2021, 10:11am
#2
Extensions used ? How big are your assets? How many screens ? Please provide more info
1 Like
pctb2007
(Paulo Borges)
December 1, 2021, 12:50pm
#3
Extentions: DateTools, TaifunFTP, TaifunImage
Assets: 3 (png) images totaling 580K
Screens: 2 (main App on Screen1, setup parameters on screen config)
Second screen is just a setup screen that collects system parameters and store on Tiny_DB
Initially the App worked with fix parameters.
Sometime during the design of the config screen this problem started and I switched to test with the companion to complete the config screen.
The App works ok while testing with the companion but fails to compile.
Thanks
dora_paz
(Dora)
December 1, 2021, 12:52pm
#4
If you wish you can pm me your aia to check it
pctb2007
(Paulo Borges)
December 1, 2021, 12:55pm
#5
Ok, thanks.
The App uses a couple of tokens and private ftp credencials I am unable to disclose.
Is it ok?
pctb2007
(Paulo Borges)
December 1, 2021, 1:08pm
#8
I replaced private credentials as suggested.
removed aia by Mod beacause contained paid extension
Thanks
dora_paz
(Dora)
December 1, 2021, 1:28pm
#10
I found that removing the DateTools extension allows apk to compile with no errors. Updated extension to latest version 6.1 and still error occurs. I found this
Sounds good that you got the solution.
However I would like mention here that sometimes DateTools extension causes issues in compiling.
If you (or anyone) faces compiling issues due to DateTools or my any other extension then simply re- import the extension.
Maybe the developer @vknow360 might help you
vknow360
(Sunny Gupta)
December 1, 2021, 1:35pm
#11
The problem is that it is not possible use DateTools extension if you use FTP component or any FTP related extension (except FtpClient extension).
2 Likes
pctb2007
(Paulo Borges)
December 1, 2021, 1:45pm
#12
Hi, I used FtpExtension before but had to abandon it because it only works over WiFi and not via GSM.
Datetools I use exclusively because I need to know local timeZoneOffset.
Any way out of this?
dora_paz
(Dora)
December 1, 2021, 1:54pm
#13
You mean GTM +2:00 for example?
dora_paz
(Dora)
December 1, 2021, 2:00pm
#14
If yes maybe you could use clock component
vknow360
(Sunny Gupta)
December 1, 2021, 2:12pm
#15
pctb2007:
Any way out of this?
Please wait till tomorrow.
dora_paz
(Dora)
December 1, 2021, 2:13pm
#16
See this has the same function
pctb2007
(Paulo Borges)
December 1, 2021, 2:15pm
#17
Did not know I could use such construct.
Will try, thanks.
1 Like
pctb2007
(Paulo Borges)
December 1, 2021, 2:24pm
#19
Indeed removing DateTools extension and using Dora’s suggestion sorted out the problem.
It now compiles successfully.
Thanks you people for your time.
Paulo
1 Like
dora_paz
(Dora)
December 1, 2021, 2:26pm
#20
If problem solved mark solution in order to help others with the same problem
1 Like