Android Question optimized dex error with admob

le_toubib

Active Member
Licensed User
Longtime User
hi all
i m trying to revive an old app , installing the new admob

using these module attributes :
B4X:
#Region Module Attributes
    #FullScreen: False
    #IncludeTitle: True
    #ApplicationLabel: 
    #VersionCode: 9
    #VersionName: E
    #SupportedOrientations: portrait
    #CanInstallToExternalStorage: False
        #AdditionalRes: F:\Android\android-sdk\extras\google\google_play_services\libproject\google-play-services_lib\res, com.google.android.gms
    #AdditionalJar: android-support-v4
   #ExcludeClasses: com.google.ads, anywheresoftware.b4a.phone.RingtoneManager
#End Region


manifest editor :

i received this error :


P.s: i still get the library googleadmobsdk is not used warning
P.S : had to change process timeout to 120 even though i have 16GB ram i7 device ... and a relatively small app (apk size 3.3MB including a 4MB map)
P.S : is working perfectly fine before admob
P.S : libraries used : RAF , JO, IME , admob, googleadmobsdk

what s wrong did i do ?
 

sorex

Expert
Licensed User
Longtime User
the new admob is the firebase one. You better switch to that as it doesn't rely on those v4 files etc...
 
Reactions: eps
Upvote 0

eps

Expert
Licensed User
Longtime User
You probably need to 'up' your minsdk version substantially - I think 14 is around the lowest that works for most services.

ETA : Actually it might be 9, but I think 14 is for Maps and so on.

I've been through this pain with my Apps - once set up it is fine, but it's a bit of a trek getting there.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…