I need to track Google Advertising ID with AppsFlyer. In order to do that, I need to add Google Play Services SDK to my Xamarin Android App.
Official AppsFlyer binding manual offers me to add GooglePlayServicesLib.dll binding library to project. But if I add this library I have Java error code 2 on build. It is known problem, I tried to fix it by setting Java Max Heap Size to 1G but no chance.
To bypass this problem Xamarin split google play services library to 20 separate NuGet packages. According to AppsFlyer integration guide we need to add
We only use the ads packages from Google Services
therefore i tried to use only Ads package
<package id="Xamarin.GooglePlayServices.Ads" version="25.0.0.0" targetFramework="monoandroid5" />
<package id="Xamarin.GooglePlayServices.Base" version="25.0.0.0" targetFramework="monoandroid5" />
I receive Warning:Google Play services SDK jar is missing from AppsFlyer on launch
to summarize:
I can't build the project with full GooglePlayServicesLib and it looks like AppsFlyer does not see SDK with only Ads package. What I'm missing?
Related
I used to use old version of Google Play Services in my projects. But now I keep getting warnings when I upload my apps to Google Play. These warnings says that I have to update my Google Play Services.
I have the latest version of Google Play Services in SDK manager with Rev.49
In the last versions of Google Play Services, I can find the Google Play library in the following directory:
SDK --> /extras/google/google_play_services/libproject/google-play-services_lib/
But now there is no libproject/google-play-services_lib/. Where can I get the library?
Check out this answer: https://stackoverflow.com/a/37311511/8294916
Or the answer directly below it: https://stackoverflow.com/a/37356709/8294916
Hopefully you can migrate over to Android Studio, but if you're stuck with Eclipse because you're working on a legacy project, I feel for you! :(
I have created an android app in eclipse. When upload app in google play store,
Google has put a new option on their Pricing and Distribution page of their Google Play Developer Console that requires publishers to declare if they have ads or not. I got following warning message.
We detected Ad SDKs in one or more of your active APKs:
version: XXXXX, sdk: AdMob
If your app is serving ads, please change your ads declaration to
'Yes'. Failure to accurately declare the presence of ads is a policy
violation and may result in your app's removal from Google Play. You
can visit our Help Center to learn more.
Our app does not have ads, yet we are being flagged as having the AdMob SDK. I think it's because we are using google play service library which includes a transitive dependency on AdMob.
Is it possible to build google play service lib only for GCM in eclipse ?
If yes, then how ?
Go for android studio dude, Google play services has a separate instance for Google Could messaging and you can add it into gradle like this.
compile 'com.google.android.gms:play-services-gcm:x.x.x'
I don't have much idea about eclipse. But in android studio we can do that.
Google Cloud Messaging
com.google.android.gms:play-services-gcm:8.3.0
you can check more on Google developer Link
I have an app in the store which has Admob. But now I want to update the Admob sdk just to be up-to-date
I was reading that. Now we do not need to install the sdk from Admob site. As it is already included with Android sdk.
Is that correct. What shall I do now.... Is there any link or tutorial for that.
The Admob libraries are now part of Google Play Services.
You need to include Play Services.
You can find the latest version of the Admob libraries by looking in
ANDROID-SDK_HOME\extras\google\m2repository\com\google\android\gms\play-services-ads.
As of 9-AUG-2015 it is 7.5.0
I have downloaded a demo project of GSM services.
For using it, I need to install a file name Google could messaging but, it is missing from my SDK.
How can I add this file to my SDK?
New To Android
If you use GCMS (Google Cloud Messaging Services), you need to build a library project which uses Play Services and import it into your work-space.
Generally:
Install the Android SDK from this link.
Download and configure the Google Play services SDK, which includes the Google Maps Android API. You can see the setting up on this link.
Don't forget to add the required Google Play services settings in your application's manifest.
When you add the Play Services library to your project, be sure to add it with resources, as described in Setup Google Play Services SDK. The key point is that you must reference the library. Simply adding .jar file to your project won't work. You must follow the directions for referencing a library, or your app won't be able to access the library's resources, and it won't run properly.
You can get the full instructions from Setting Up Google Play Services.
Hello I am trying to use google-play-services_lib in my android project. As you know in android phone there is Google Play Service APK which provide a some features to you such as location fetching etc.
So I have confusion that Suppose user have Google Play Service APK version is 4.3 and I am using Google Play Services library version is 4.0.30 in android project to build the app.
Do we require same version on both side like build with same latest Google play service library and Google Play Services installed APK to make as like Push Notification, Location fetching work in this case or there is no link between them ?
Thanks in advance
They don't have to match.
The development of the library and the application is not completely dependant, that's why thier version number is different. As far as I know, each release of the services apk defines a maximum version of the library that is supported. So the only conflict could happen when the services apk is outdated (on the target device), and your application's library is a newer one.
The best you can do is to update the library, and the services application on your device.
It should work that way.
I dont think so that there is link between APK and supported libraries in that because the APK silently gets updated about libraries