Android Question Parsing error in package message

johnaaronrose

Active Member
Licensed User
Longtime User
I have Debug (as opposed to Release) set in B4A. I've successfully connected to my Android 7.2 phone using B4A-Bridge. When I compile & run my app, it installs successfully. There's a problem in the app which causes my code to output a Msgbox. Immediately, before the MsgBox line, there is a line with a Log command. However, no result appears However, I do not see the above Log entry in B4A. Is there a way of seeing it on the connected phone?
PS I previously got a message in the B4A Log saying to add android:targetSdkVersion="19" to the Manifest after line android:minSdkVersion="4". I did as instructed but it still appears. Is this connected with this problem?
PPS Does the Log clear after each Compile & Run invocation?
 
Last edited:

johnaaronrose

Active Member
Licensed User
Longtime User
You haven't lowered the version number have you? They must always increase or be the same but can't be lower
Version has increased. The version name & code of the previous version was 9. The version name & code of the current version is 10.
 
Upvote 0

johnaaronrose

Active Member
Licensed User
Longtime User
Looking at your manifest - it's not a language thing is it?
I don't understand what you mean. The application is called JewishWorld but it's entirely in English not Hebrew.
BTW the only compiler warnings are for fullFilename unused variable even though I have:
Dim fullFilename As String
fullFilename = HttpUtils2Service.TempFolder & "/" & _
HttpUtils2Service.filename
similar for variable v
and GetInputStream is not used (part of one of the standard http modules).
 
Last edited:
Upvote 0

eps

Expert
Licensed User
Longtime User
I don't know - I seem to remember something triggering this for unsupported languages - but fair enough if it's in English - I haven't got the code in front of me.

It's going to be something 'silly' like a missed end sub, reserved keyword or the version was set to a high number at some point and you've set it back to a lower one.. Maybe conflicting libraries or something like that as well.

I haven't got your code or an apk to try in front of me so I can't really help much more than that.

If it were me I'd take a copy of the code and then look to remove or comment large chunks to see if chopping stuff out removes the packaging issue. It's either going to be something inanely stupid or something deep in a library or similar...
 
Upvote 0

johnaaronrose

Active Member
Licensed User
Longtime User
I don't know - I seem to remember something triggering this for unsupported languages - but fair enough if it's in English - I haven't got the code in front of me.

It's going to be something 'silly' like a missed end sub, reserved keyword or the version was set to a high number at some point and you've set it back to a lower one.. Maybe conflicting libraries or something like that as well.

I haven't got your code or an apk to try in front of me so I can't really help much more than that.

If it were me I'd take a copy of the code and then look to remove or comment large chunks to see if chopping stuff out removes the packaging issue. It's either going to be something inanely stupid or something deep in a library or similar...

I've checked for missing End Sub, but all Ok. App used to compile & work Ok. I had to change it as the Http stuff changed to OkHttp and because I download a file from the internet - used to be from Public in my Dropbox, but Dropbox changed usage of Public, so I switched the file to store it on Box.com which required changes in the code).

I've attached the project in its current state.
 

Attachments

  • JewishWorld.zip
    43.4 KB · Views: 199
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
I removed the TapForTap code as I don't have this library (it is an old service which probably doesn't work anymore). It runs successfully here.

1. Uninstall the existing app if there is one.
2. Try to restart the device.
3. If it doesn't help, switch to USB debug mode. This will allow you to monitor the unfiltered logs during installation.
 
Upvote 0

johnaaronrose

Active Member
Licensed User
Longtime User

I'm using Android SDK Build Tools 25.0. Maybe I have to use a version prior to 24 as the first link above says 24 is not Ok. Is that so? I can't do any Android SDK updates as the manager just shows that there is some dependency missing though doesn't tell me which one(s)! I'm using. I've attached screenshots of my SDK Manager's status.
 

Attachments

  • SDK Manager Screenshot 1.png
    SDK Manager Screenshot 1.png
    187.3 KB · Views: 179
  • SDK Manager Screenshot 2.png
    SDK Manager Screenshot 2.png
    172.1 KB · Views: 197
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
As a first step i would update the two repositories to the newest releases. You are using OLD versions (UPDATE AVAILABLE!!)....
for ex. you are using rel44 of the google repository. But rel58 is most up to date. you are 14 versions behind
 
Last edited:
Upvote 0

johnaaronrose

Active Member
Licensed User
Longtime User
I removed the TapForTap code as I don't have this library (it is an old service which probably doesn't work anymore). It runs successfully here.

1. Uninstall the existing app if there is one.
2. Try to restart the device.
3. If it doesn't help, switch to USB debug mode. This will allow you to monitor the unfiltered logs during installation.

I've removed TapForTap code and its library usage, as well as its View using the Designer. Did you say that app then compiled & ran Ok for you? It gave Parse Error for me.

So I uninstalled the existing app, restarted the phone, switched to USB Debug Mode, connected using B4A Bridge, invoked Compile & Run; phone asked me if Ok to install, i agreed,phone asked me if wanted to run, I agreed and app started. NO Parse Error.
 
Upvote 0
Top