Android Question My application worked correctly until I update everything from SDK Manager

desof

Well-Known Member
Licensed User
Longtime User
I do not know why this happened because everything was working correctly until I thought about updating all the files that SDK Manager would manage and my projects were broken.
HELP PLEASE IN THIS IS MY MANIFEST

B4X:
ddManifestText(
<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="23"/>
<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, "@style/AppTheme")


AddApplicationText(
   <activity android:name="com.google.android.gms.auth.api.signin.internal.SignInHubActivity"
                  android:theme="@android:style/Theme.Translucent.NoTitleBar"
                  android:excludeFromRecents="true"
                  android:exported="false" />    
)
SetActivityAttribute(LSlider, android:screenOrientation, "landscape")
SetActivityAttribute(Noticia, android:screenOrientation, "landscape")
'************ Google Play Services Base ************
AddApplicationText(
    <activity android:name="com.google.android.gms.common.api.GoogleApiActivity"
                  android:theme="@android:style/Theme.Translucent.NoTitleBar"
                  android:exported="false"/>
     <meta-data
            android:name="com.google.android.gms.version"
            android:value="@integer/google_play_services_version" />
)
'************ (end) ************

'************ Firebase Base ************
CreateResourceFromFile("google-services", "google-services.json")
AddPermission(android.permission.ACCESS_NETWORK_STATE)
AddPermission(android.permission.INTERNET)
AddPermission(android.permission.WAKE_LOCK)
AddPermission(com.google.android.c2dm.permission.RECEIVE)
AddPermission(${applicationId}.permission.C2D_MESSAGE)
AddManifestText( <permission android:name="${applicationId}.permission.C2D_MESSAGE"
        android:protectionLevel="signature" />)
AddApplicationText(
<receiver
          android:name="com.google.android.gms.measurement.AppMeasurementReceiver"
          android:enabled="true">
        <intent-filter>
          <action android:name="com.google.android.gms.measurement.UPLOAD"/>
        </intent-filter>
      </receiver>

      <service
          android:name="com.google.android.gms.measurement.AppMeasurementService"
          android:enabled="true"
          android:exported="false"/>  
    <provider
            android:authorities="${applicationId}.firebaseinitprovider"
            android:name="com.google.firebase.provider.FirebaseInitProvider"
            android:exported="false"
            android:initOrder="100" />
      <receiver
          android:name="com.google.android.gms.measurement.AppMeasurementReceiver"
          android:enabled="true">
        <intent-filter>
          <action android:name="com.google.android.gms.measurement.UPLOAD"/>
        </intent-filter>
      </receiver>

      <service
          android:name="com.google.android.gms.measurement.AppMeasurementService"
          android:enabled="true"
          android:exported="false"/>
    <receiver
            android:name="com.google.firebase.iid.FirebaseInstanceIdReceiver"
            android:exported="true"
            android:permission="com.google.android.c2dm.permission.SEND" >
            <intent-filter>
                <action android:name="com.google.android.c2dm.intent.RECEIVE" />
                <action android:name="com.google.android.c2dm.intent.REGISTRATION" />
                <category android:name="${applicationId}" />
            </intent-filter>
        </receiver>
       <receiver
            android:name="com.google.firebase.iid.FirebaseInstanceIdInternalReceiver"
            android:exported="false" />

   
        <service
            android:name="com.google.firebase.iid.FirebaseInstanceIdService"
            android:exported="true">
            <intent-filter android:priority="-500">
                <action android:name="com.google.firebase.INSTANCE_ID_EVENT" />
            </intent-filter>
        </service>
)
'************ (end) ************

'************ Firebase Auth ************
AddApplicationText(
   <activity android:name="com.google.android.gms.auth.api.signin.internal.SignInHubActivity"
                  android:theme="@android:style/Theme.Translucent.NoTitleBar"
                  android:excludeFromRecents="true"
                  android:exported="false" />

        <service
            android:name="com.google.android.gms.auth.api.signin.RevocationBoundService"
            android:exported="true"
            android:permission="com.google.android.gms.auth.api.signin.permission.REVOCATION_NOTIFICATION" />
)

AddPermission(android.permission.WRITE_EXTERNAL_STORAGE)
'************(end) ************

'************ Facebook Login ****************
AddApplicationText(<activity android:name="com.facebook.FacebookActivity"
          android:configChanges=
                 "keyboard|keyboardHidden|screenLayout|screenSize|orientation"
          android:theme="@android:style/Theme.Translucent.NoTitleBar" />
           <meta-data android:name="com.facebook.sdk.ApplicationId" android:value="@string/facebook_app_id"/>)
CreateResource(values, facebook.xml, <resources>
     <string name="facebook_app_id">XXXXXXXXXXXXXX</string>
    </resources>)
'************ (end) **********

'************ Firebase Notifications ************
AddApplicationText(
    <service
  android:name="com.google.firebase.messaging.FirebaseMessagingService"
  android:exported="true">
  <intent-filter android:priority="-500">
  <action android:name="com.google.firebase.MESSAGING_EVENT" />
  </intent-filter>
  </service>
   <service android:name="anywheresoftware.b4a.objects.FirebaseNotificationsService">
     <intent-filter>
  <action android:name="com.google.firebase.MESSAGING_EVENT"/>
     </intent-filter>
   </service>
)

AddManifestText(
 <uses-feature android:name="android.hardware.telephony" android:required="false" />
 <uses-feature android:name="android.hardware.location" android:required="false" />
 <uses-feature android:name="android.hardware.location.gps" android:required="false" />
  <uses-feature android:name="android.hardware.location.network" android:required="false" />
)

'************  (end)************
 
Last edited:

KMatle

Expert
Licensed User
Longtime User
You must start with an EMPTY folder. Don't mix old and new sdk parts. So delete anything in the sdk folder and start downloading everything via sdk manager.

PS: You should know not to post pictures to show error messages. Just copy and paste it using code tags.
 
Upvote 0

desof

Well-Known Member
Licensed User
Longtime User
You must start with an EMPTY folder. Don't mix old and new sdk parts. So delete anything in the sdk folder and start downloading everything via sdk manager.

PS: You should know not to post pictures to show error messages. Just copy and paste it using code tags.
Hi, I do not understand what you mean?
old parts with new ones?
I only allowed the SDK to update !!!
I do not see another way to do it!
What folder should I delete?

I did not know about the images but I do not know
 
Upvote 0

desof

Well-Known Member
Licensed User
Longtime User
1. If you are using B4A v8+ then you should switch to CreateResourceFromFile: https://www.b4x.com/android/forum/threads/integrating-firebase-services.67692/#content

2. Are you adding any resources with #AdditionalRes ?
Excuse me EREL I have many problems with English.
I'm desperate because my application can not compile it and it is necessary to upload a new version to PlayStore URGENT.

Damn the time I updated everything if I was walking correctly!

I do not understand how or where to use CreateResourceFromFile ???
 
Upvote 0

desof

Well-Known Member
Licensed User
Longtime User
Using CreateResourceFromFile is explained here: https://www.b4x.com/android/forum/threads/integrating-firebase-services.67692/#content

Where is the error message?

Which #AdditionalRes resources are you using and why? It is not needed in most cases.

Used res for ImageSliderEx

B4X:
B4A Versión: 8.30
Parseando código.    (0.16s)
Compilando código    (0.33s)
Compilado código de diseños    (0.07s)
Organizando librerías.    (3.97s)
Generando el fichero R.    Error
Failed to generate resource table for split ''
res\values\styles.xml:9: error: Error: No resource found that matches the given name (at 'textColorError' with value '@color/design_textinput_error_color_light').

Used res for ImageSliderEx
 
Last edited:
Upvote 0

desof

Well-Known Member
Licensed User
Longtime User
I understand but I am desperate because I have to deliver an update because I have a commitment and I do not know where to go to have a solution. I think it's the right place because I bought my license and I need help,
Sorry for my previous bad response and I hope please can you give me a solution. Erel asked me for the text of the manifiest and I sent it to him.
 
Last edited:
Upvote 0

Peter Simpson

Expert
Licensed User
Longtime User
Upvote 0

desof

Well-Known Member
Licensed User
Longtime User
Asking a question like you did in your last post will not get you anywhere with most forum members, most of us are usually asleep at this hour like I should be.

Have you searched the forum.
https://www.b4x.com/android/forum/pages/results/?query=No+resource+found+that+matches+the+given+name
I understand but I am desperate because I have to deliver an update because I have a commitment and I do not know where to go to have a solution. I think it's the right place because I bought my license and I need help,
Sorry for my previous bad response and I hope please can you give me a solution. Erel asked me for the text of the manifiest and I sent it to him.

Of course I have searched and I have looked at several cases but nothing seems to work.
I still get this error when compiling.

B4X:
B4A Versión: 8.30
Parseando código.    (0.17s)
Compilando código    (0.23s)
Compilado código de diseños    (0.04s)
Organizando librerías.    (0.00s)
Generando el fichero R.    Error
Failed to generate resource table for split ''
res\values\styles.xml:9: error: Error: No resource found that matches the given name (at 'textColorError' with value '@color/design_textinput_error_color_light').
 
Upvote 0

desof

Well-Known Member
Licensed User
Longtime User
You still haven't answered my questions. This error comes from one of the additional resources you add. I recommend you to start a new project and add the resources and the libraries and find out when this error happens.
Hello, if I answered EREL I asked for the manifest and I put it above. Tbn told me where the errors were and put the same ones.
It's really a disaster to have to start a project again after having it almost 2 years active and by version 54- It has a lot of code and modules that will take me a lot of time which I do not have.
Thank you for your patience and I think I'm about to give up and drop my project in version 54.
 
Upvote 0

desof

Well-Known Member
Licensed User
Longtime User
I will try to be clearer to see if I can achieve a reproduction of my error

Portion of the MAIN Module:
B4X:
#Region  Project Attributes
    #ApplicationLabel: SanCrisApp
    #VersionCode: 54
    #VersionName: 2.5.4
    #SupportedOrientations: portrait
    #CanInstallToExternalStorage: False
#End Region
#Region  Activity Attributes
    #FullScreen: true
    #IncludeTitle: false
#End Region
#Region RecursosAdicionales
    #AdditionalJar: com.google.firebase:firebase-core
    #AdditionalJar: com.android.support:support-v4
    #AdditionalRes: ..\res
#End Region
Sub Process_Globals
    Dim dbSQL As SQL
    Dim CategoriaActual As String ="Audio Visual"
    Dim SubCategoriaActual As String ="Despensas"
    Dim NegocioActual As String =""
    Public FlagAndroid6oSuperior = False  As Boolean   
    Dim SQLF As SQL   
End Sub

Manifest Editor:

B4X:
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:icon, "@mipmap/ic_launcher")
SetApplicationAttribute(android:label, "$LABEL$")

SetApplicationAttribute(android:theme, "@style/AppTheme")

AddApplicationText(
   <activity android:name="com.google.android.gms.auth.api.signin.internal.SignInHubActivity"
                  android:theme="@android:style/Theme.Translucent.NoTitleBar"
                  android:excludeFromRecents="true"
                  android:exported="false" />

      
)
SetActivityAttribute(LSlider, android:screenOrientation, "landscape")
SetActivityAttribute(Noticia, android:screenOrientation, "landscape")
'SetActivityAttribute(SR, android:screenOrientation, "landscape")
'************ Google Play Services Base ************
AddApplicationText(
    <activity android:name="com.google.android.gms.common.api.GoogleApiActivity"
                  android:theme="@android:style/Theme.Translucent.NoTitleBar"
                  android:exported="false"/>
     <meta-data
            android:name="com.google.android.gms.version"
            android:value="@integer/google_play_services_version" />
)
'************ (end) ************

'************ Firebase Base ************
CreateResourceFromFile("google-services", "google-services.json")
AddPermission(android.permission.ACCESS_NETWORK_STATE)
AddPermission(android.permission.INTERNET)
AddPermission(android.permission.WAKE_LOCK)
AddPermission(com.google.android.c2dm.permission.RECEIVE)
AddPermission(${applicationId}.permission.C2D_MESSAGE)
AddManifestText( <permission android:name="${applicationId}.permission.C2D_MESSAGE"
        android:protectionLevel="signature" />)
AddApplicationText(
<receiver
          android:name="com.google.android.gms.measurement.AppMeasurementReceiver"
          android:enabled="true">
        <intent-filter>
          <action android:name="com.google.android.gms.measurement.UPLOAD"/>
        </intent-filter>
      </receiver>

      <service
          android:name="com.google.android.gms.measurement.AppMeasurementService"
          android:enabled="true"
          android:exported="false"/>   
    <provider
            android:authorities="${applicationId}.firebaseinitprovider"
            android:name="com.google.firebase.provider.FirebaseInitProvider"
            android:exported="false"
            android:initOrder="100" />
      <receiver
          android:name="com.google.android.gms.measurement.AppMeasurementReceiver"
          android:enabled="true">
        <intent-filter>
          <action android:name="com.google.android.gms.measurement.UPLOAD"/>
        </intent-filter>
      </receiver>

      <service
          android:name="com.google.android.gms.measurement.AppMeasurementService"
          android:enabled="true"
          android:exported="false"/>
    <receiver
            android:name="com.google.firebase.iid.FirebaseInstanceIdReceiver"
            android:exported="true"
            android:permission="com.google.android.c2dm.permission.SEND" >
            <intent-filter>
                <action android:name="com.google.android.c2dm.intent.RECEIVE" />
                <action android:name="com.google.android.c2dm.intent.REGISTRATION" />
                <category android:name="${applicationId}" />
            </intent-filter>
        </receiver>
       <receiver
            android:name="com.google.firebase.iid.FirebaseInstanceIdInternalReceiver"
            android:exported="false" />

    
        <service
            android:name="com.google.firebase.iid.FirebaseInstanceIdService"
            android:exported="true">
            <intent-filter android:priority="-500">
                <action android:name="com.google.firebase.INSTANCE_ID_EVENT" />
            </intent-filter>
        </service>
)
'************ (end) ************

'************ Firebase Auth ************
AddApplicationText(
   <activity android:name="com.google.android.gms.auth.api.signin.internal.SignInHubActivity"
                  android:theme="@android:style/Theme.Translucent.NoTitleBar"
                  android:excludeFromRecents="true"
                  android:exported="false" />

        <service
            android:name="com.google.android.gms.auth.api.signin.RevocationBoundService"
            android:exported="true"
            android:permission="com.google.android.gms.auth.api.signin.permission.REVOCATION_NOTIFICATION" />
)

AddPermission(android.permission.WRITE_EXTERNAL_STORAGE)
'************(end) ************

'************ Facebook Login ****************
AddApplicationText(<activity android:name="com.facebook.FacebookActivity"
          android:configChanges=
                 "keyboard|keyboardHidden|screenLayout|screenSize|orientation"
          android:theme="@android:style/Theme.Translucent.NoTitleBar" />
           <meta-data android:name="com.facebook.sdk.ApplicationId" android:value="@string/facebook_app_id"/>)
CreateResource(values, facebook.xml, <resources>
     <string name="facebook_app_id">xxxxxxxxxxxxxxxxxxx</string>
    </resources>)
'************ (end) **********

'************ Firebase Notifications ************
AddApplicationText(
    <service
  android:name="com.google.firebase.messaging.FirebaseMessagingService"
  android:exported="true">
  <intent-filter android:priority="-500">
  <action android:name="com.google.firebase.MESSAGING_EVENT" />
  </intent-filter>
  </service>
   <service android:name="anywheresoftware.b4a.objects.FirebaseNotificationsService">
     <intent-filter>
  <action android:name="com.google.firebase.MESSAGING_EVENT"/>
     </intent-filter>
   </service>
 
)

AddManifestText(
 <uses-feature android:name="android.hardware.telephony" android:required="false" />
 <uses-feature android:name="android.hardware.location" android:required="false" />
 <uses-feature android:name="android.hardware.location.gps" android:required="false" />
  <uses-feature android:name="android.hardware.location.network" android:required="false" />
)

'************  (end)************


* Libraries that I use with their corresponding versions in attached
* Path JAVA >>> C:\Program Files\Java\jdk1.8.0_181\bin\javac.exe
* Path ANDROID SDK >>>> D:\Android\android-sdk\platforms\android-27\android.jar
* Path Aditional C:\Program Files (x86)\Anywhere Software\Basic4android\Adicionales

Error trying to compile:
B4X:
B4A Versión: 8.30
Parseando código.    (0.18s)
Compilando código    (0.45s)
Compilado código de diseños    (0.04s)
Organizando librerías.    (0.00s)
Generando el fichero R.    Error
Failed to generate resource table for split ''
res\values\styles.xml:9: error: Error: No resource found that matches the given name (at 'textColorError' with value '@color/design_textinput_error_color_light').

When you open the Managger SDK, this error appears.
A few days ago it was updated completely.
Attached capture

I do not know what else I can contribute to detect the problem.
 

Attachments

  • MAIN_LIB.jpg
    MAIN_LIB.jpg
    43.5 KB · Views: 171
  • error.jpg
    error.jpg
    34.5 KB · Views: 184
Upvote 0

desof

Well-Known Member
Licensed User
Longtime User
The out of bounds error usually happens when you haven't installed the new SDK in a new folder. Try it again.

Can you upload the res\values\styles.xml file?

Does it mean that you install the SDK in a new folder?
 

Attachments

  • styles.xml
    2.7 KB · Views: 186
Upvote 0
Top