Android Question Still having a compile error

gruizelgruis

Member
Licensed User
Longtime User
Goodmornig,
After updating I followed these instructions:

B4A – The simple way to develop native Android apps (b4x.com)

To get rid of this error:
Linking resources Error
unknown option '-A'.
aapt2 link [options] -o arg --manifest arg files...

I am running into this error.

applied to given types;
mostCurrent._pager.Initialize(mostCurrent.activityBA,mostCurrent._container,"Pager");
^
required: BA,String
found: BA,AHPageContainer,String
reason: actual and formal argument lists differ in length

It points to this line in teh code
B4X:
    pager.Initialize(container, "Pager")

I am using the AHViewPager version 3

please advice
 

gruizelgruis

Member
Licensed User
Longtime User
We've already gone through this with you!
Compil error | B4X Programming Forum
Why are you still using an old SDK?

Finaly I managed to get "android-30" installed. THX

However it still wil not compile.
So I tried to compile the attached example
And that gives me the saem error

 

Attachments

  • ViewPagerSample.zip
    7.7 KB · Views: 198
Last edited:
Upvote 0

agraham

Expert
Licensed User
Longtime User
This?
AHViewPager library - Sliding panels now perfect | B4X Programming Forum
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…