Android Question Installing 2 or more versions of B4A on same computer

toby

Well-Known Member
Licensed User
Longtime User
I would like to install 2 or more versions of B4A on one single computer and they should not interfere with each other; in case I run into some problem with one version, I could switch to another version to verify whether its isolated to a particular version.

Is that a good ideal? If so, any advice would be welcome.
 

ac9ts

Active Member
Licensed User
Longtime User
I have an older version and the latest. I keep the older version because I have one paid app that uses a Chromecast hack that I can't figure out how to fix with the new version.

I have 2 directories (Android_old and Android_new) that I rename to Android. You need to kill adb.exe before the rename. Not the best but it is all I have time for.
 
Upvote 0

toby

Well-Known Member
Licensed User
Longtime User
I have 2 directories (Android_old and Android_new) that I rename to Android. You need to kill adb.exe before the rename. Not the best but it is all I have time for.

You have two versions of Android sdk and one version of B4A. Is that correct?
 
Upvote 0

ac9ts

Active Member
Licensed User
Longtime User
You have two versions of Android sdk and one version of B4A. Is that correct?

No. I have 2 complete development directories.

C:\Android_Old has B4A 9.0 and the android-sdk directory (with a lot of the old format libraries, etc. required to keep that one app running)

C:\Android_New has B4A 9.9 and the android-sdk package from the installation instructions.

I mostly use the latest version (9.9). When I need to do maintenance on the one app, I kill adb.exe, rename Android to Android_New, and rename Android_Old to Android.

This keeps B4A happy as far as the path locations being C:\Android
 
Upvote 0

AnandGupta

Expert
Licensed User
Longtime User
I too have maintained tow separate B4A installation in separate drives, C: and D:
I have set paths for them in ide and have two icons, renamed, on desktop.

Though now I do not much use the older version.

Regards,

Anand
 
Upvote 0

ac9ts

Active Member
Licensed User
Longtime User
There is no need to keep an old version. B4A is fully backward compatible. Keeping an old SDK might make sense in some cases.

I tried that. In my case, I was getting compile errors (related to a hacked chromecast library) that I didn't get with the old version. The effort vs. reward to try and fix it is low so I keep 2 installations.

B4X:
B4A Version: 9.90
Java Version: 8
Parsing code.    (0.12s)
Building folders structure.    (0.05s)
Running custom action.    (0.21s)
Compiling code.    (0.21s)
Compiling layouts code.    (0.07s)
Organizing libraries.    (0.00s)
    (Android Support Library)
Generating R file.    (2.44s)
Compiling generated Java code.    Error
B4A line: 768
MediaRouteButton1.SetRouteSelector(MediaRouteSel
javac 1.8.0_212
src\com\Sxxxxxx\Gxxxxx\gui.java:2307: error: package androidx.mediarouter.media does not exist
mostCurrent._mediaroutebutton1.SetRouteSelector((androidx.mediarouter.media.MediaRouteSelector)(_mediarouteselector1.getObject()));
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…