Android Question Failed to generate resource table for split ''

msali

Member
Licensed User
Longtime User
Hi,
I got the same error and checked for the android.jar version as suggested in the following link.
https://www.b4x.com/android/forum/threads/failed-to-generate-resource-table-for-split.80244/

At compile:
B4A Version: 7.80
Parsing code. (0.01s)
Compiling code. (0.12s)
Compiling layouts code. (0.00s)
Organizing libraries. (0.47s)
Generating R file. Error
Failed to generate resource table for split ''
res\values-v20\theme.xml:6: error: Error: No resource found that matches the given name (at 'android:textColorPrimary' with value '@color/textColorPrimary').

in my manifest it says

<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="26"/>

latest android.jar
C:\Android\platforms\android-27\android.jar

inserted the AdditionalJar
#AdditionalJar: com.android.support:support-v4

Have ensured that
android-support-v4 is in
C:\Program Files (x86)\Anywhere Software\Basic4android\Libraries


Any idea what am i still missing.

Thanks in advance.
 

DonManfred

Expert
Licensed User
Longtime User
Have ensured that
î dont think that there should be an android-support-c4 as it is no longer available. It is splitted into the maven repos... They are located in anotherplace but not in the internal library folder.

Install b4a in a new folder and you´ll see what should be in C:\Program Files (x86)\Anywhere Software\Basic4android\Libraries
And only this files should be there.

Away from that it may be related to a library you are using in your project. Or the resources they need.
 
Upvote 0

msali

Member
Licensed User
Longtime User
i copied it in internal folder as i was trying one of the other libraries (unfortunately do not remember which). I did try after deleting it from Libraries folder but the issue remained.
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
You did used the Instructions here, yes? Imean; you did setup the SDK with the B4A SDKManager?
You also configured your b4a to use the paths you mentioned? Tools -> Configure Paths

3. B4A
  • Download B4A Trial Version
  • Open B4A.
  • Choose Tools > Configure Paths.
  • Set the path to "javac.exe" if it is empty (C:\Program Files\Java\jdk1.8.0_102\bin\javac.exe).
  • Click on Open Sdk Manager button.
  • Set the path to "sdkmanager.bat" (C:\Android\tools\bin\sdkmanager.bat) and install all recommended items.
  • Read and accept the licenses when asked for.
  • Return to B4A and set the path to "android.jar" (C:\Android\platforms\android-27\android.jar).

 
Upvote 0

msali

Member
Licensed User
Longtime User
Till this stage I am not using AppCompat in my app, but do plan to add it at a later stage.

My Manifest looks like this:

B4X:
'This code will be applied to the manifest file during compilation.
'You do not need to modify it in most cases.
'See this link for for more information: https://www.b4x.com/forum/showthread.php?p=78136
AddManifestText(
<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="26"/>
<supports-screens android:largeScreens="true" 
    android:normalScreens="true" 
    android:smallScreens="true" 
    android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
'End of default text.

'************* Erel - CustomListview ***************************
'https://www.b4x.com/android/forum/threads/customlistview-a-flexible-list-based-on-scrollview.19567/
'***************************************************************
SetApplicationAttribute(android:theme, "@style/LightTheme")
CreateResource(values, colors.xml,
<resources>
    <color name="actionbar">#ff039be5</color>
    <color name="statusbar">#ff006db3</color>
    <color name="textColorPrimary">#ffffffff</color>
    <color name="navigationBar">#ff006db3</color>
</resources>
)
CreateResource(values-v20, theme.xml,
<resources>
    <style name="LightTheme" parent="@android:style/Theme.Material.Light">
        <item name="android:colorPrimary">@color/actionbar</item>
        <item name="android:colorPrimaryDark">@color/statusbar</item>
        <item name="android:textColorPrimary">@color/textColorPrimary</item>
        <item name="android:navigationBarColor">@color/navigationBar</item>
    </style>
</resources>
)
CreateResource(values-v14, theme.xml,
<resources>
    <style name="LightTheme" parent="@android:style/Theme.Holo.Light">
        <item name="android:actionBarStyle">@style/CustomActionBarStyle</item>
    </style>
    <style name="CustomActionBarStyle" parent="@android:style/Widget.Holo.Light.ActionBar.Solid.Inverse">
        <item name="android:background">@color/actionbar</item>
    </style>
</resources>
)
'************* End CustomListview ***************************
'
'********* Erel - TabStripViewPager  ***********************
'https://www.b4x.com/android/forum/threads/tabstripviewpager-better-viewpager.63975/
'***********************************************************
'CreateResource(drawable, background_tab.xml,
'<selector xmlns:android="http://schemas.android.com/apk/res/android"
'   android:exitFadeDuration="@android:integer/config_shortAnimTime">
'  <item android:state_pressed="true" android:drawable="@color/background_tab_pressed" />
'  <item android:state_focused="true" android:drawable="@color/background_tab_pressed"/>
'  <item android:drawable="@android:color/transparent"/>
'</selector>)
'CreateResource(values, colors.xml,
'<resources>
'  <color name="background_tab_pressed">#6633B5E5</color>
'</resources>)
'*************** TabStripViewPager  ***************************

for the time being i got it to work by commenting it so that i can continue with my app development.
'
Other than Core, the libs that i have are:
- JavaObjects
- Phone
- StringUtils
- TabStripViewPager
- XUI
 
Upvote 0
Top