Android Question error compile

zarkap

Member
i have problem to compile when use appcompat library.
apcmt.jpg
 

zarkap

Member
B4X:
B4A Version: 10.2
Java Version: 8
Parsing code.    (0.02s)
Building folders structure.    (0.03s)
Running custom action.    (0.04s)
Compiling code.    (0.11s)
Compiling layouts code.    (0.02s)
Organizing libraries.    (0.00s)
    (AndroidX SDK)
Generating R file.    Error
c:\android\tools\..\extras\b4a_remote\androidx\appcompat\appcompat\1.2.0\unpacked-appcompat-1.2.0\res\values-v23\values-v23.xml:39: error: A 'type' attribute is required for <item>

I have this problem when use AppCompat library
 

Attachments

  • apcmt.jpg
    apcmt.jpg
    247 KB · Views: 94
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
1. Delete your current Android SDK.
2. Update to B4A v10.5.
3. Download Android SDK + additional components.

 
Upvote 0

zarkap

Member
B4X:
#AdditionalRes: ..\resource
#AdditionalRes:  ..\b4a_appcompat,de.amberhome.objects.appcompat
#AdditionalRes: $AndroidSDK$\extras\android\support\v7\appcompat\res, android.support.v7.appcompat
#Extends: android.support.v7.app.AppCompatActivity
#AdditionalRes: ..\res



B4A Version: 10.50
Parsing code.    (0.00s)
    Java Version: 8
Building folders structure.    (0.02s)
Compiling code.    (0.02s)
Compiling layouts code.    (0.01s)
Organizing libraries.    (0.00s)
    (AndroidX SDK)
Generating R file.    Error
ERROR: resource directory 'C:\Android\tools\..\extras\android\support\v7\appcompat\res' does not exist

can you help to resolve this problem?
 
Upvote 0

zarkap

Member
B4X:
B4A Version: 10.50
Parsing code.    (0.00s)
    Java Version: 8
Building folders structure.    (0.02s)
Compiling code.    (0.04s)
Compiling layouts code.    (0.01s)
Organizing libraries.    (0.00s)
    (AndroidX SDK)
Generating R file.    (0.00s)
Compiling generated Java code.    Error
B4A line: 126
TabLayout.SetViewPager(VP)
javac 1.8.0_162
src\b4a\example\SpinningTabStrip\main.java:478: error: cannot access ViewPager
mostCurrent._tablayout.SetViewPager((androidx.viewpager.widget.ViewPager)(mostCurrent._vp.getObject()));
                      ^
  class file for android.support.v4.view.ViewPager not found
do you know what is problem?
 
Upvote 0
Top