Android Question AndroidManifest.xml:43: error: Error: No resource found that matches the given name ..

tufanv

Expert
Licensed User
Longtime User
Hello

I am trying to update a old project. When i try to compile i get :
AndroidManifest.xml:43: error: Error: No resource found that matches the given name (at 'theme' with value '@style/Theme.MMTransparent').

It has stg to do with the manifest but i cant figure it out. I searched the forum 1-2 people experienced the same but did not write how they solved it. Any ideas ?
 

DonManfred

Expert
Licensed User
Longtime User
check your manifest if you set a specific theme there.
Check your res-folder too if there is a theme.xml with a specific theme
 
Upvote 0

tufanv

Expert
Licensed User
Longtime User
check your manifest if you set a specific theme there.
Check your res-folder too if there is a theme.xml with a specific theme
this is my manifest
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="22"/>
<supports-screens android:largeScreens="true"
    android:normalScreens="true"
    android:smallScreens="true"
    android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")

in objects/res/xml there is no file.
 
Upvote 0

tufanv

Expert
Licensed User
Longtime User
Can you post the content of Objects\AndroidManifest.xml ?
here it is :
B4X:
<?xml version="1.0" encoding="utf-8"?>
<manifest
    xmlns:android="http://schemas.android.com/apk/res/android"
    package="ct.airlineboss"
    android:versionCode="34"
    android:versionName="1"
    android:installLocation="internalOnly">
   
    <uses-sdk android:minSdkVersion="15" android:targetSdkVersion="22"/>
    <supports-screens android:largeScreens="true"
        android:normalScreens="true"
        android:smallScreens="true"
        android:anyDensity="true"/>
    <uses-permission android:name="android.permission.INTERNET"/>
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
    <uses-permission android:name="android.permission.READ_PHONE_STATE"/>
    <uses-permission android:name="com.android.vending.BILLING"/>
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
    <application
        android:icon="@drawable/icon"
        android:label="Airline Boss">
       
        <!-- MoPub -->
        <activity android:name="com.mopub.mobileads.MoPubActivity" android:configChanges="keyboardHidden|orientation"/>
        <activity android:name="com.mopub.mobileads.MraidActivity" android:configChanges="keyboardHidden|orientation|screenSize"/>
        <activity android:name="com.mopub.common.MoPubBrowser" android:configChanges="keyboardHidden|orientation|screenSize"/>
        <activity android:name="com.mopub.mobileads.MraidVideoPlayerActivity" android:configChanges="keyboardHidden|orientation|screenSize"/>
        <activity android:name="com.google.android.gms.ads.AdActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize" />
       
        <!-- MultiDex -->
        <application android:name="android.support.multidex.MultiDexApplication" />
       
        <!-- AdMob -->
        <activity android:name="com.google.android.gms.ads.AdActivity"
        android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"/>
       
        <!-- Google Play Services -->
                <meta-data android:name="com.google.android.gms.version"
                android:value="@integer/google_play_services_version" />
       
        <!-- mMedia -->
        <activity
        android:name="com.millennialmedia.internal.MMActivity"
        android:theme="@style/Theme.MMTransparent" />
        <activity android:name="com.millennialmedia.internal.MMIntentWrapperActivity" />
           
        <!-- Inmobi -->
            <!--Required Activity for rendering ads in the embedded browser-->
            <activity android:name="com.inmobi.rendering.InMobiAdActivity"
                        android:configChanges="keyboardHidden|orientation|keyboard|smallestScreenSize|screenSize"
                        android:theme="@android:style/Theme.Translucent.NoTitleBar"
                        android:hardwareAccelerated="true" />
       
            <!--Required Receiver for enhanced targeting for better ads.-->
            <receiver android:name="com.inmobi.commons.core.utilities.uid.ImIdShareBroadCastReceiver"
                        android:enabled="true"
                        android:exported="true" >
                <intent-filter>
                   <action android:name="com.inmobi.share.id" />
                </intent-filter>
            </receiver>
            <service android:enabled="true" android:name="com.inmobi.signals.activityrecognition.ActivityRecognitionManager" />
       
        <!-- Greystripe -->
        <activity android:name="com.greystripe.sdk.GSFullscreenActivity"
        android:configChanges="keyboard|keyboardHidden|orientation|screenSize" ></activity>
       
        <!-- AppBrain -->
        <activity android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"
            android:name="com.appbrain.AppBrainActivity" />
        <service android:name="com.appbrain.AppBrainService" />       
        <receiver android:exported="true" android:name="com.appbrain.ReferrerReceiver" >
            <intent-filter>
                <action android:name="com.android.vending.INSTALL_REFERRER" />
            </intent-filter>
        </receiver>
       
        <!-- TapForTap -->
        <activity android:name="com.tapfortap.FullScreenAdActivity" android:theme="@android:style/Theme.Translucent.NoTitleBar"/>
       
        <!-- AppLovin -->
        <meta-data android:name="applovin.sdk.key"
               android:value="YOUR_SDK_KEY"  />
        <activity android:name="com.applovin.adview.AppLovinInterstitialActivity" />
        <activity android:name="com.applovin.adview.AppLovinConfirmationActivity" />
       
        <!-- AdColony -->
        <activity android:name="com.jirbo.adcolony.AdColonyOverlay"
        android:configChanges="keyboardHidden|orientation|screenSize"
        android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen" />
        <activity android:name="com.jirbo.adcolony.AdColonyFullscreen"
        android:configChanges="keyboardHidden|orientation|screenSize"
        android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen" />
        <activity android:name="com.jirbo.adcolony.AdColonyBrowser"
        android:configChanges="keyboardHidden|orientation|screenSize"
        android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen" />
       
        <!-- Vungle -->
        <activity android:name="com.vungle.publisher.FullScreenAdActivity"
        android:configChanges="keyboardHidden|orientation|screenSize"
        android:theme="@android:style/Theme.NoTitleBar.Fullscreen" />
        <service android:name="com.vungle.publisher.VungleService"
        android:exported="false" />
       
        <activity android:name="com.vungle.sdk.VungleAdvert"
        android:configChanges="keyboardHidden|orientation|screenSize"
        android:theme="@android:style/Theme.NoTitleBar.Fullscreen" />
        <service android:name="com.vungle.sdk.VungleIntentService" android:exported="false"/>
       
        <!-- Facebook -->
        <activity android:name="com.facebook.ads.InterstitialAdActivity"
                          android:configChanges="keyboardHidden|orientation|screenSize" />
                         
        <!-- StartApp -->
        <activity android:name="com.startapp.android.publish.list3d.List3DActivity"
                  android:theme="@android:style/Theme" />
       
        <activity android:name="com.startapp.android.publish.AppWallActivity"
                  android:theme="@android:style/Theme.Translucent"
                  android:configChanges="orientation|keyboardHidden|screenSize" />
                 
        <!-- MobileCore -->
        <service android:name="com.ironsource.mobilcore.MobileCoreReport" android:enabled="true" android:exported="false" android:process=":mcServiceProcess" />
        <service android:name="com.ironsource.mobilcore.InstallationTracker"
        android:enabled="true" android:process=":installationTracker" />
       
        <!-- Chartboost -->
        <activity android:name="com.chartboost.sdk.CBImpressionActivity"
                       android:excludeFromRecents="true"
                       android:hardwareAccelerated="true"
                       android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen"
                       android:configChanges="keyboardHidden|orientation|screenSize" />
       
        <!-- Leadbolt -->
        <activity android:configChanges="keyboard|keyboardHidden|orientation|screenSize"
                  android:name="com.apptracker.android.module.AppModuleActivity"
                  android:hardwareAccelerated="false">
        </activity>
       
        <!-- Unity -->
        <activity
                    android:name="com.unity3d.ads.android.view.UnityAdsFullscreenActivity"
                    android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen"
                    android:hardwareAccelerated="true"
                    android:theme="@android:style/Theme.NoTitleBar.Fullscreen"/>
                    tools:ignore="UnusedAttribute"/>
                   
        <!-- Amazon Ads -->
        <activity android:name="com.amazon.device.ads.AdActivity" android:configChanges="keyboardHidden|orientation|screenSize"/>
       
        <!-- Tapjoy -->
        <activity
          android:name="com.tapjoy.TJAdUnitActivity"
          android:configChanges="orientation|keyboardHidden|screenSize"
          android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen"
          android:hardwareAccelerated="true" />
        <activity
          android:name="com.tapjoy.mraid.view.ActionHandler"
          android:configChanges="orientation|keyboardHidden|screenSize" />
        <activity
          android:name="com.tapjoy.mraid.view.Browser"
          android:configChanges="orientation|keyboardHidden|screenSize" />
        <activity
            android:windowSoftInputMode="stateHidden"
            android:launchMode="singleTop"
            android:name=".main"
            android:label="Airline Boss"
            android:screenOrientation="landscape">
            <intent-filter>
               <action android:name="android.intent.action.MAIN" />
               <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
           
        </activity>
        <service android:name=".httputils2service">
        </service>
        <receiver android:name=".httputils2service$httputils2service_BR">
        </receiver>
    </application>
</manifest>
 
Upvote 0

tufanv

Expert
Licensed User
Longtime User
it is not read only. On compilation windowsi only get
B4X:
B4A version: 5.80
Parsing code.    (0.06s)
Compiling code.    (0.17s)
Compiling layouts code.    (0.05s)
Generating R file.    Error
AndroidManifest.xml:43: error: Error: No resource found that matches the given name (at 'theme' with value '@style/Theme.MMTransparent').
The file is probably read-only. Compile your app and pay attention to all the messages in the compilation window.
It was an old project , maybe it is the reason making a problem , (maybe created with b4a v.3.xx and i am forgetting to change stg ? )
 
Upvote 0

tufanv

Expert
Licensed User
Longtime User
=) you are right. I only need chartboost with mopub but there were too many other permissions. I deleted them now it is ok . Ty !
 
Upvote 0
Top