Android Question google play services update to 29, now app won't compile

katrad

Member
Licensed User
Longtime User
Here's the error I'm getting:
B4X:
Generating R file.    Error
c:\android\android-sdk\extras\google\google_play_services\libproject\google-play-services_lib\res\values-v21\appinvite_styles.xml:5: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Theme.Material.Light.DialogWhenLarge.NoActionBar'.

I copied the update google-play-services.jar in my libraries folder.

Here's my manifest file:
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="15" android:targetSdkVersion="19"/>
<supports-screens android:largeScreens="true"
    android:normalScreens="true"
    android:smallScreens="true"
    android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
'SetApplicationAttribute(android:theme, "@android:style/Theme.Holo")
'SetApplicationAttribute(android:theme, "@android:style/Theme.Holo.Light")
SetApplicationAttribute(android:theme, "@style/Theme.Ludirectory")
'End of default text.
AddManifestText( <permission         
        android:name="$PACKAGE$.permission.MAPS_RECEIVE"         
        android:protectionLevel="signature"/>     
        <uses-feature android:glEsVersion="0x00020000" android:required="true"/>) 
AddApplicationText(<meta-data    android:name="com.google.android.maps.v2.API_KEY"   
        android:value="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"/>
        <meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version"    />)
AddPermission(android.permission.ACCESS_NETWORK_STATE)
AddPermission(com.google.android.providers.gsf.permission.READ_GSERVICES)
AddManifestText(<uses-permission android:name="android.permission.INTERNET" />)
AddManifestText(<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />)
AddActivityText(Result, <intent-filter> <action android:name="android.intent.action.SEARCH" />
        </intent-filter>
        <meta-data android:name="android.app.searchable"
        android:resource="@xml/searchable"/>)
AddActivityText(Main, <meta-data android:name="android.app.default_searchable"
                   android:value=".result" />)

I was ready to publish the app, I have no idea what to do. Please help!! Thanks in advance!!
 

katrad

Member
Licensed User
Longtime User
I was using version 19, I tried later version when I was testing up to 23, but it still wouldnt compile and had the same error.
 
Upvote 0

katrad

Member
Licensed User
Longtime User
Question: if I change to 22, will it still work on devices version 19? In the mean time, I'll try 22, it's nice to always have it current with SDK. Thank You. I downloaded jdk 8.66 yesterday and am going to change to that too.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…