Android Question Updated B4ax to the latest version and all heck is breaking lose

brianwiz12

Active Member
Licensed User
Longtime User
I dont even know where to start.

I had to rebuild starting my libraries. Now getting the following
B4X:
B4A Version: 9.80
Java Version: 8
Parsing code.    Error
Error parsing program.
Error description: LeverageEasyJS is declared twice. You should either remove the library reference or the code module.
Which im totally lost at
 
Last edited:

brianwiz12

Active Member
Licensed User
Longtime User
Update

After a full uninstall/Reinstall.
added all libraries.

Now the app (Same one that is on google play ect) when i run it through the Debug/through the bridge... Installs.. Then i click open and it flickers and closes.. Then get error app closes several times.

I think this is progress?
 
Upvote 0

brianwiz12

Active Member
Licensed User
Longtime User
More Information
B4X:
B4A Version: 9.80
Java Version: 11
Parsing code.    (0.66s)
Building folders structure.    (0.16s)
Compiling code.    (2.65s)
Compiling layouts code.    (0.08s)
Organizing libraries.    (0.00s)
    (AndroidX SDK)
Generating R file.    (0.00s)
Compiling generated Java code.    (12.04s)
Convert byte code - optimized dex.    (13.30s)
    Optimized dexer failed. Switching to Standard dexer.
Packaging files.    (4.27s)
Copying libraries resources    (0.08s)
    Found 31 resource files.
Signing package file (debug key).    (1.91s)
ZipAlign file.    (0.09s)
Installing file to device.    (5.20s)
    Installing with B4A-Bridge.
*** Legacy debugger is deprecated. ***
It is recommended to switch to the default debugger (Tools - IDE Options).
Completed successfully
So when i created just a fresh .bal file test and put a label on it. Same thing. App installs using bridge. Then goes black and back to the bridge. App still running in background.
app still says its going on B4A

I have been able to get my phone to say app stops working ect.. App info/Close

Manifest if it helps
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="9" android:targetSdkVersion="28"/>
<supports-screens android:largeScreens="true"
    android:normalScreens="true"
    android:smallScreens="true"
    android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
CreateResourceFromFile(Macro, Themes.DarkTheme)


'Navigation System
SetApplicationAttribute(android:theme, "@style/MyAppTheme")

CreateResource(values, theme.xml,
<resources>
    <style name="MyAppTheme" parent="Theme.AppCompat.Light.NoActionBar">
        <item name="colorPrimary">#939999</item>
        <item name="colorPrimaryDark">#939999</item>
        <item name="colorAccent">#939999</item>
        <item name="windowNoTitle">true</item>
        <item name="windowActionBar">false</item>
    </style>
</resources>
)

'firebase
CreateResourceFromFile(Macro, FirebaseAnalytics.GooglePlayBase)
CreateResourceFromFile(Macro, FirebaseAnalytics.Firebase)
CreateResourceFromFile(Macro, FirebaseNotifications.FirebaseNotifications)
CreateResourceFromFile(Macro, FirebaseAnalytics.FirebaseAnalytics)
CreateResourceFromFile(Macro, FirebaseAdMob.FirebaseAds)
CreateResourceFromFile(Macro, FirebaseAuth.FirebaseAuth)

nothing in the logs
 
Last edited:
Upvote 0

brianwiz12

Active Member
Licensed User
Longtime User
1. sorry about not using the code.. Updated
2. I saw a thread that said switch to legacy to see if you get error logs. Switched back. Still no error logs.

App installs. Click to open.. Goes black and runs in background. never closes
 
Upvote 0

brianwiz12

Active Member
Licensed User
Longtime User
Yes

i did what you suggested. still no change in apps behavior. Installs... Closes. Runs in background and in B4A until i force it to close

No logs pointing me in a direction.

Now i was using B4x 8.80 before with no issues.
 
Upvote 0

brianwiz12

Active Member
Licensed User
Longtime User
I went back and installed 8.80 and everything works fine.

In the end is this the code im using only works for 8.80 and needs massive updates for the new 9.80?
 
Upvote 0
Top