Android Question Android support repository not found

yves67

Active Member
Licensed User
Longtime User
Hello
I am startind a new installation in a Windows10 VM machine
I installed jdk 11, Android , B4A 9.30
all my path are correctly set
I started the B4A SDK Manager and install the recommended packages

my application is using the AHViewPager library (I have it in my additional librairies)
but I need to install the Android Support Repository (V47 ? )
and in the B4A SDK manager I don't see this package ??

of course I get this error : class file for android.support.v4.view.PagerAdapter not found

what am I doing wrong ?

thanks for any help, I am stuck

Yves67
 

yves67

Active Member
Licensed User
Longtime User
OK, I clic on jetifier line in the tools menu
A window appear and disapper,
but in the B4A SDKmanager, still no Android Support repository

what is suppose to do the jetifier ?

thanks for your help
 
Upvote 0

yves67

Active Member
Licensed User
Longtime User
This is the error I get :

B4A Version : 9.30
Java Version : 11
Analyse du code. (0.00s)
Building folders structure. (0.02s)
Compilation du code. (0.34s)
Compilation du code des layouts. (0.05s)
Organiser les bibliothèques. (0.00s)
(AndroidX SDK)
Génération du fichier R. (0.00s)
Compilation du code du débogueur. (0.00s)
Compilation du code Java. Error
B4A line: 81
container.Initialize
src\b4a\quickcall\main.java:450: error: cannot access PagerAdapter
mostCurrent._container.Initialize(mostCurrent.activityBA);
^
class file for android.support.v4.view.PagerAdapter not found
1 error
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Upvote 0

yves67

Active Member
Licensed User
Longtime User
I put a \ at the end of the path, if not the B4A disappear...
but removing the \ I am able to jetified my additional library
and because I add manualy android-support-v4.jar
(I copied it from mmy old installation)
I am able now to build my application

but why the android support repository is not display in the B4A SDKManager ?
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
and because I add manualy android-support-v4.jar
(I copied it from mmy old installation)
it is a mistake to have this file in additional libs folder.
You, all libs, should use the maven artifacts.
Google has changed the SDK in many ways.
 
Upvote 0

yves67

Active Member
Licensed User
Longtime User
Ok thanks
I didn t kwnon that...
To be able to use Ahpageviewer what is the name of the small part to download from the b4a sdkmanager
Thanks a lot
Yves
 
Upvote 0
Top