Android Question Please .. Please . Slove my Problem

Status
Not open for further replies.

Alansari

Member
Licensed User
Longtime User
Hello

Please do not delete this topic for moderators

This is the third theme for the same problem

This problem I have not found a solution more than two months

Stopped adsmob ads in my all apps and said you should upgrade to the seventh edition of the android has been updated

Among the solutions i have found in the forum is that you must update and update the SDK library and update your special ad items

All these solutions have not solved the problem so far

The problem is that he did not find the file: com.google.android.gms
B4X:
#AdditionalRes: D: \ android-sdk-windows1 \ extras \ google \ google_play_services \ libproject \ google-play-services_lib \ res, com.google.android.gms

also no folder named : libproject

I hope you have a complete solution to this problem

Please
 

Emme Developer

Well-Known Member
Licensed User
Longtime User
First of all, for sure if you don't call your thread "Pleas.. pleas.. SOLVE my problem" is easiest to understand what issue you have.
Why don't you use Firebase admob?
 
Upvote 0

Star-Dust

Expert
Licensed User
Longtime User
the file you are looking for is linked to the Google Play Service.
If you report this type of error, you may be calling a different version of your app than the one installed on your PC.

Not necessarily fix it by updating it because if you're trying to use old APIs then you should regress and not update. Or change the code for the new version.

I think it's the case that you put the code so many others can check it if you have not already done it in the previous Threads.
 
Upvote 0

Alansari

Member
Licensed User
Longtime User
First of all, for sure if you don't call your thread "Pleas.. pleas.. SOLVE my problem" is easiest to understand what issue you have.
Why don't you use Firebase admob?

error-png.59728

I have done ( Firebade Admob) and become a problem above

I want to put Admob ads in my apps
The old way does not fit

If possible explain the way step by step without complexity

Please
 

Attachments

  • error.png
    error.png
    5.7 KB · Views: 662
Upvote 0

Star-Dust

Expert
Licensed User
Longtime User
Admob and fireAdMob are used in the same way. I just changed the library. Use is the same.
The only thing to do and add in the manifest the right references.

B4X:
'************ 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" />
)
'************ Google Play Services Base (end) ************

'************ Firebase Ads ************
AddApplicationText(
  <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" />
)
'************ Firebase Ads (end) ************

Of course you have to have the right version of the Play Service
 
Upvote 0

Alansari

Member
Licensed User
Longtime User
the file you are looking for is linked to the Google Play Service.
If you report this type of error, you may be calling a different version of your app than the one installed on your PC.

Not necessarily fix it by updating it because if you're trying to use old APIs then you should regress and not update. Or change the code for the new version.

I think it's the case that you put the code so many others can check it if you have not already done it in the previous Threads.

This error:
nofind-png.59729


I Updated items for google services :
mysdk-png.59730
 

Attachments

  • nofind.png
    nofind.png
    5.6 KB · Views: 663
  • mysdk.png
    mysdk.png
    20.6 KB · Views: 650
Upvote 0

Star-Dust

Expert
Licensed User
Longtime User
Did you add this line to the attributes of the project?
B4X:
#AdditionalRes: C:\Program Files (x86)\Android\android-sdk\extras\google\google_play_services\libproject\google-play-services_lib\res, com.google.android.gms

If you did, remove it because it is not necessary
 
Upvote 0

Star-Dust

Expert
Licensed User
Longtime User
see the attached example.

Enter the code of your banner and change the PackedName to the one to which the banner is linked to AdMob (otherwise it does not work)
 

Attachments

  • FireBase_AdMob_Sample.zip
    7.4 KB · Views: 153
Upvote 0

Star-Dust

Expert
Licensed User
Longtime User
Upvote 0

eps

Expert
Licensed User
Longtime User
That thread... first line "Firebase depends on B4A v6+ which was not yet released."

I don't know - my use of Admob works - I'm on B4A 6.8 and using Firebase and so on...
 
Upvote 0

Star-Dust

Expert
Licensed User
Longtime User
No Google Play Service for API 9
IMG_20170916_171500.png


But don't work B4A 5.20
 
Upvote 0

Alansari

Member
Licensed User
Longtime User
That thread... first line "Firebase depends on B4A v6+ which was not yet released."

I don't know - my use of Admob works - I'm on B4A 6.8 and using Firebase and so on...
I will buy last one B4A v7.30 . Is it working on this ver ?
 
Upvote 0

eps

Expert
Licensed User
Longtime User
You're a licensed User, have you not got access to a later version?

6.8 was released in March of this year....
 
Upvote 0

eps

Expert
Licensed User
Longtime User
5.20 is over 2 years old, things have moved on massively from there. There might be .NET updates to do as well...
 
Upvote 0
Status
Not open for further replies.
Top