Android Question error compiler after update at 9.3 release

Roberto P.

Well-Known Member
Licensed User
Hi all
I've update at 9.30 release and run the Android sdk\Jetifier and have error in the picture.

upload_2019-8-23_19-21-32.png


Please help me.
thanks
 

Roberto P.

Well-Known Member
Licensed User
I done all instructions and the files are generated, but have the same error.
I see that the files AHViewPager.androidx.jar exist!?

help me
 

DonManfred

Expert
Licensed User
When i started the SDK Manager and updated the components the first time o got a question asking me to switch to AndroidX as it is recommended. I answered with YES.

Did you answer no?

Try to put the attached file into your [sdkpath]\extras\b4a_remote folder
 

Attachments

Roberto P.

Well-Known Member
Licensed User
I not remember my answer!

I Have the same file in the folder.
 

Attachments

Roberto P.

Well-Known Member
Licensed User
I've delete the folder b4a_remote and run sdkmanger then I answer Yes, but it not compile in AndroidX!?

see images

upload_2019-8-24_11-16-3.png



this is the result of compilation:

B4A Version: 9.30
Java Version: 8
Parsing code. (1.11s)
Building folders structure. (0.08s)
Compiling code. (0.86s)
Compiling layouts code. (0.08s)
Organizing libraries. (0.00s)
(Android Support Library)
Generating R file. (0.00s)
Compiling generated Java code. Error
B4A line: 289
TabLayout.SetViewPager(VP)
javac 1.8.0_60
src\dev\meta\sb\cuserinterface.java:234: error: package androidx.viewpager.widget does not exist
_tablayout.SetViewPager((androidx.viewpager.widget.ViewPager)(_vp.getObject()));
^
thank in advance
 

Roberto P.

Well-Known Member
Licensed User
I tried to install the b4a 9.30 in other computer and now compile regular con AndroidX sdk.
But I've another error:

B4A Version: 9.30
Java Version: 8
Parsing code. (1.99s)
Building folders structure. (0.09s)
Compiling code. (1.57s)
Compiling layouts code. (0.24s)
Organizing libraries. (0.02s)
(AndroidX SDK)
Generating R file. Error
Failed to generate resource table for split ''
c:\android\sdk\tools\..\extras\b4a_remote\androidx\appcompat\appcompat\1.0.2\unpacked-appcompat-1.0.2\res\values-v28\values-v28.xml:7: error: Error: No resource found that matches the given name (at 'dialogCornerRadius' with value '?android:attr/dialogCornerRadius').
 

Roberto P.

Well-Known Member
Licensed User
done, but there are still problems

B4A Version: 9.30
Java Version: 8
Parsing code. (1.28s)
Building folders structure. (0.10s)
Compiling code. (0.93s)
Compiling layouts code. (0.12s)
Organizing libraries. (0.00s)
(AndroidX SDK)
Generating R file. (0.00s)
Compiling generated Java code. Error
B4A line: 241
PC.AddPage(View, Title)
javac 1.8.0_60
src\dev\meta\sb\cuserinterface.java:186: error: cannot access PagerAdapter
_pc.AddPage((android.view.View)(_view.getObject()),_title);
^
class file for android.support.v4.view.PagerAdapter not found
 

Roberto P.

Well-Known Member
Licensed User
thank you Erel
i resolved the problem with the sdk command line. Now work fine and not have it any problem

regards
 
Top