Android Question Firebase Ads problem

tufanv

Expert
Licensed User
Longtime User
Hello,

I checked my androidmanifest xml if it is read only but it is not. (according to search i tried it )

My problem is , when i add the manifest for firebase ads I get:

B4X:
AndroidManifest.xml:110: error: Error: No resource found that matches the given name (at 'theme' with value '@style/Theme.IAPTheme').

I couldnt find a similar error in the forum. My android manifest .xml is:
B4X:
<?xml version="1.0" encoding="utf-8"?>
<manifest
    xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.ct.airline"
    android:versionCode="18"
    android:versionName="1"
    android:installLocation="internalOnly">
   
    <uses-sdk android:minSdkVersion="14" android:targetSdkVersion="22"/>
    <supports-screens android:largeScreens="true"
        android:normalScreens="true"
        android:smallScreens="true"
        android:anyDensity="true"/>
    <permission android:name="com.ct.airline.permission.C2D_MESSAGE"
      android:protectionLevel="signature" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
    <uses-permission android:name="android.permission.INTERNET"/>
    <uses-permission android:name="com.android.vending.BILLING"/>
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
    <uses-permission android:name="android.permission.WAKE_LOCK"/>
    <uses-permission android:name="com.google.android.c2dm.permission.RECEIVE"/>
    <uses-permission android:name="com.ct.airline.permission.C2D_MESSAGE"/>
    <application
        android:icon="@drawable/icon"
        android:label="Airline Manager Online">
       
        <meta-data android:name="com.google.android.gms.version"
          android:value="@integer/google_play_services_version"/>
         <activity android:name="com.google.android.gms.ads.AdActivity"
          android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"/>
        <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" />
        <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="com.ct.airline.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="com.ct.airline" />
          </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>
        <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"/>
       
          <service android:name="com.google.firebase.crash.internal.service.FirebaseCrashReceiverService"
          android:process=":background_crash"/>
       
          <service android:name="com.google.firebase.crash.internal.service.FirebaseCrashSenderService"
          android:process=":background_crash"/>
        <activity
          android:name="com.google.android.gms.ads.AdActivity"
          android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"
          android:theme="@android:style/Theme.Translucent" />
          <activity android:name="com.google.android.gms.ads.purchase.InAppPurchaseActivity"
          android:theme="@style/Theme.IAPTheme"/>
        <activity
            android:windowSoftInputMode="stateHidden"
            android:launchMode="singleTop"
            android:name=".main"
            android:label="Airline Manager Online"
            android:screenOrientation="portrait">
            <intent-filter>
               <action android:name="android.intent.action.MAIN" />
               <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
           
        </activity>
        <service android:name=".starter">
        </service>
        <receiver android:name=".starter$starter_BR">
        </receiver>
        <service android:name=".httputils2service">
        </service>
        <receiver android:name=".httputils2service$httputils2service_BR">
        </receiver>
    </application>
</manifest>
 

susu

Well-Known Member
Licensed User
Longtime User
Hi @tufanv ,

It seems you're the only one tried new Firebase Ad so could you please help me to answer some questions?

What is the difference between old AdMob and new Firebase Ad? I'm using AdMob and want to change to Firebase Ad, do I need to register new Firebase account? How about my revenue from old AdMob?

Thank you so much.
 
Upvote 0
Top