Android Question B4A 7.30 and B4A-Bridge 2.35 Parsing Paket Error

Chris160179

Member
Licensed User
Longtime User
Hello everybody,

I have an error during start of my Program (Debug and Release Mode).
The Android Device shows: (There was a problem parsing the package) this is an Android Error message.

Sometimes (20:1) it is possible to install the app.
The same error appears when i generate a new projekt without any Content or only an layout load.

Android Version 7.1.2 on an Raspberry Pi 3 with LineageOS Version 14.1-20170810.

It is possible that B4a is not compatible?
Google says that there is eventually a Problem with the Android paket installer (lack of authority)

(Sorry for my bad english)

Thank you
 

Chris160179

Member
Licensed User
Longtime User
I changed the paket Name to test.t correct?
upload_2017-10-3_17-49-44.png


The same Problem.
 
Upvote 0

Chris160179

Member
Licensed User
Longtime User
I switched to Default, with the same Problem.

The same error appears when i generate a new projekt without any Content or only an layout load.

but

with my Galaxy Tab 2 with Android LineageOS 6.0.1 everything works
 
Upvote 0

Chris160179

Member
Licensed User
Longtime User
In the background i´m adding Android API 25 and 26 in the SDK Manager, but it needs some time.
Could this be the problem?
 
Upvote 0

Chris160179

Member
Licensed User
Longtime User
This:

B4X:
'This code will be applied to the manifest file during compilation.
'You do not need to modify it in most cases.
'See this link for for more information: https://www.b4x.com/forum/showthread.php?p=78136
AddManifestText(
<uses-sdk android:minSdkVersion="5" android:targetSdkVersion="19"/>
<supports-screens android:largeScreens="true"
    android:normalScreens="true"
    android:smallScreens="true"
    android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
'End of default text.
AddPermission(android.permission.RECORD_AUDIO)
AddPermission(android.permission.READ_PHONE_STATE)
AddPermission("android.permission.INTERNET")
 
Upvote 0

klaus

Expert
Licensed User
Longtime User
Not sure if this is the prblem but this
AddPermission("android.permission.INTERNET")
should be this, without the double quotes:
AddPermission(android.permission.INTERNET)
Can you post a project as a zip file so we could test it ?
 
Upvote 0

Chris160179

Member
Licensed User
Longtime User
i dont know....
There is an externel SQL Database and the project is very large.
The SQL is on another Raspberry Pi with an RDC Server.

Could i share it to you as E-Mail?
 
Upvote 0

Chris160179

Member
Licensed User
Longtime User
I need to check this after work.
Yesterday i kopied the generated apk file in release mode directly to the raspberry pi and can install it without any problem. But the app crashed directly after start with the android Error: application stops.
I Think the problem is this non officell release of android version and not b4a. Because after Reboot of the raspberry i get an android error: Google Play Service stops. I Think this is the problem, what do you think?
 
Upvote 0

Chris160179

Member
Licensed User
Longtime User
Sorry i needs some time to find a way to debug from Raspberry Pi.
Finaly it is very simple, all you need is an 3,3v USB to Serial converter and a serial console on your pc.

here are the two logs from Installation:
1. the first (it works) and starting the app (don´t work)
2. Installation abords with parsing error
 

Attachments

  • 1. RPI3 - Debug install ok.txt
    10.7 KB · Views: 370
  • 2. RPI3 - Debug parsing problem.txt
    0 bytes · Views: 258
Upvote 0

Chris160179

Member
Licensed User
Longtime User
Ups, now the second one with content.
 

Attachments

  • 2. RPI3 - Debug parsing problem.txt
    5.6 KB · Views: 487
Upvote 0

Chris160179

Member
Licensed User
Longtime User
Is the log not complete?
I will Check if i get the adb over wifi working and gather this logs, perhaps there are more relevant messages.

Sorry for wasting your time.
 
Upvote 0

Chris160179

Member
Licensed User
Longtime User
So, after a Long time, i get it.
Here is the Logcat during Installation about 3 seconds.
I hope it helps.

Thank you for your support
 

Attachments

  • Logcat.zip
    215.8 KB · Views: 356
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
It is very difficult to read these logs in this format.

There are several errors that suggest that the file was not copied properly:
Error opening archive /storage/emulated/0/Android/data/anywheresoftware.b4a.b4abridge/files/temp1.apk: I/O Error -14 03:51:46.750 8965 8965 W zipro : Error opening archive /storage/emulated/0/Android/data/anywheresoftware.b4a.b4abridge/files/temp1.apk:

If you were able to use ADB over wifi then you can also use it to install the app instead of B4A-Bridge.

Do you get the same error with a new empty project?
Make sure that the icon file is not too large.
 
Upvote 0
Top