Old APPs work fine but APP I created today generate the following error when compiled:
[RunAapt] Starting Task
[RunAapt] ERROR: Error running AAPT
[RunAapt] Task errored in 0.847 seconds
.
the compilation runs ok until those 3 last lines.
Created a new APP with no logic at all, some buttons, text boxes and a couple of arrangements.
Works ok during companion tests.
If I try to add an icon after loading it to assets, it does not show on the setup drop down for icons or to Splash screens…
Only option shown is “none” but still it ends with this error:
[PrepareAppIcon] Starting Task
[PrepareAppIcon] INFO: Creating mipmap dirs…
[PrepareAppIcon] INFO: Generating icons…
[PrepareAppIcon] ERROR: Something went wrong while getting the default icon
[PrepareAppIcon] ERROR: Could not prepare app icon
[PrepareAppIcon] Task errored
I first faced this problem after trying to put an icon in an app I created this morning, this one is the one that complains something about the icon.
But I could not set an icon because even after loading a icon.png (512x512) into assets it does not show at the icon selection dialog at setup. Is is none and the drop down only shows none, nothing else.
Then I created a new APP as described above and could not compile it as well, this one I do not have any assets, no icon.
I need solution for 2 problems I have with this app:
1- It compiles (android app), I can scan the QR code and install the APP but its icon do not show and only looking into android setup/applications I can find the APP and the only option is to uninstall it.
2- Due to problems with native Web_Viewer I was sugested to use NoFileHtml extention. It works OK but the extention has no block to evaluate JS and it is a requirement for my APP so I tried with the native Web_Viewer - Evaluate JS but it looks like they cannot work toguether.
Code block below.
The APP works well in tests with companion except for the evaluation of the JS code.
Assistance wellcome.
Hi, it might well be the case.
It results from AI responses for the problem of needing to update table element status based on status sent by devices via MQTT.
The sugestion I got was to run (evaluate) the following JS code as status messages arrive:
call Web_Viewer1.RunJavaScript
with join [“updateDeviceStatus(‘mac’,‘status’);”]
Makes any sense to you?
By the way, updateDeviceStatus(‘mac’,‘status’) is a function on the main html code that houses the table.
Just an update.
Most problems solved except test app works but compiled app does not.
Generating the APK goes well, downloading and installing also looks fine.
But after the instalation finishes the usual message saying a shortcut was created is not shown and the companion screen goes white and stays that way.
The APP icon is not created.
Going to setup/Applications I go down to S and find my APP there, it says installed including has the proper icon.
But if i click on it only one option is available: Uninstall
By the way, if I create a very simple app, a Vertical_Arrangement with am image inside for instance, it works perfect, it says the shortcut was created and gives me the option to start it… and the app works.
Hi,
" What means companion in this case while installing the app?"
The Kodular software installed on my phone used to test and install APKs
“Make sure you add all details in the Global App Settings. Add a Package Name and the Version Name & Version Number should be valid.”
Just double checked on that.
Uninstalled and re installed… No change
I am talking about the APP I use to read the QR code on the screen and I use to test and download the APK. Its name is companion.
I was convinced this was the standard method for testing and downloading the APPs, I have being doing this way for ages…
Yes, I am using 2 extentions: UrsPahoMqttClient1 and NoFileHtml1
Will check if they have new versions.
Will try other device as well…
Just tried downloading the APP to my local PC, sending it by WhatsApp to my phone and installing from there, no change.
Also installed Kodular Companion in another Android phone, downloaded and installed the APK. Same behavior.
In both cases the last stage of the installation is the same:
There is a message the APP was installed, but instead of getting a message that a shortcut was created I get a mostly blank screen that stays there forever.
From there the only next step is to go to setup/applications, find the APP, click on it and accept the only option available: Uninstall.
Did the capture as described above on this ADB utility.
Searched SmartLights (APP Name) and found things that hopefully someone may help to decifer.
Thanks
Well, after adding, removing and reorganizing things, removing and reinstalling extentions the APP still does not work but the APP now installs sucessfully and creates a shortcut icon on my smartphone…
But as soon as it starts the APP generates the following message: