Games ABPhysicsEngine - is it still in use ?

renemo

Member
Licensed User
Longtime User
Hi

Is anyone using ABPhysicsEngine in new B4A version ? Is it work without issues ?

Best regards
 

JGParamo

Active Member
Licensed User
I have tried the sample test app ABPhysicsEngineTest today and ABPhysicsEngine still works if:
- using JDK 8 (jdk1.8.0_281) or earlier
- using Android SDK 28 or earlier
- installed on Android 10 or earlier

 

ilan

Expert
Licensed User
Longtime User
Why do you want to use ABPhysicsEngine?
Are you planning to make a game for mobile?
 

renemo

Member
Licensed User
Longtime User
I made some game (DropletShield2) but i have to clean folders Objects/Dexed and Objects\bin\classes\com\AB in my project due issue

Dex merge Error
Error in C:\Android\tools\..\extras\b4a_local\unpacked-abphysicsengine-63447273266000\dex_v1\abphysicsengine.zip:classes.dex:
Type com.AB.ABPhysicsEngine.ABPhysicsEngine$ABCollision is defined multiple times: C:\Android\tools\..\extras\b4a_local\unpacked-abphysicsengine-63447273266000\dex_v1\abphysicsengine.zip:classes.dex, C:\Program Files (x86)\Anywhere Software\Basic4android\projects\DropletShield2\Objects\dexed\com\AB\ABPhysicsEngine\ABPhysicsEngine$ABCollision.dex
Compilation failed

When i clean folders - compile done

Update:

Solution:
Added
#ExcludedLib: abphysicsengine
#MultiDex: True
 
Last edited:

JGParamo

Active Member
Licensed User
...
Dex merge Error
...
Solution:
Added
#ExcludedLib: abphysicsengine
#MultiDex: True

This does the job renemo, thanks.

Had encountered sort of "privacy protection" that prevents installation to device using Google Play Protect but sorted this out. What I did is, using Manifest Editor for the ABPhysicsEngineTest sample app, replaced <uses-sdk android:minSdkVersion="4" /> with <uses-sdk android:minSdkVersion="4" android:targetSdkVersion="34"/> and at the Paths Configuration, use jdk-19.0.2 and android-sdk platform android-34.

It's nice that ABPhysicsEngine can still be used with the latest version of JDK and Android SDK

B4X:
#Region Module Attributes
    #FullScreen: False
    #IncludeTitle: False
    #ApplicationLabel: ABPhysicsTest
    #VersionCode: 1
    #VersionName:
    #SupportedOrientations: portrait
    #CanInstallToExternalStorage: False
    #ExcludedLib: abphysicsengine
    #MultiDex: True
#End Region

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: http://www.b4x.com/forum/showthread.php?p=78136
AddManifestText(
<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="34"/>
<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.

 
Last edited:
Cookies are required to use this site. You must accept them to continue using the site. Learn more…