distriqt / airnativeextensions

DEPRECATED: Original repository of the distriqt native extensions and is no longer maintained. Please see our site for the latest ANEs
https://airnativeextensions.com
2 stars 0 forks source link

Adverts extension returning false for isPlatformSupported for ADMOB on Android #267

Closed philvessey closed 9 years ago

philvessey commented 9 years ago

Looking at my log from the device I can see this:

11-01 12:59:32.406: I/dalvikvm(7795): Could not find method com.google.android.gms.common.GooglePlayServicesUtil.isGooglePlayServicesAvailable, referenced from method com.distriqt.extension.adverts.platforms.AdvertsManager.isPlatformSupported

Which looks like its causing the issue.

marchbold commented 9 years ago

Can you let me know which version of Android / AIR etc you're using?

philvessey commented 9 years ago

Android 4.4.4 with latest stable AIR from Adobe 15.0.0.302. Im also running Google Play Services version 6.1.83 on the phone. The issue is resulting in no ads being displayed.

marchbold commented 9 years ago

Okay, this is an issue with the AIR SDK. I've put up a modified version with the corrections. You'll need to use this to create any applications with ANE's that use the newer Google Play services.

I'm going to try and contact Adobe and let them know but in the meantime you can you download this modified version and use it. It's the latest SDK but with the Android lib updates:

http://airnativeextensions.com/resources/airsdk/AIRSDK_15.0.0.349.distriqtGooglePlayModification.tar.gz

Let me know how it goes

philvessey commented 9 years ago

OK I will give it a go. Suggest you open up a bug report for Adobe and let Chris know about it over twitter. Include in the bug report your modifications.

Bearing in mind these new google play services roll out to everyone automatically this will quickly become a bigger issue.

philvessey commented 9 years ago

I get build errors with the modified SDK:

Error: File error processing catalog.xml in C:\Users\Phil\AppData\Local\FlashDevelop\Apps\ascsdk\15.0.0\frameworks\libs._asc-support.swc(error in opening zip file). Error: File error processing catalog.xml in C:\Users\Phil\AppData\Local\FlashDevelop\Apps\ascsdk\15.0.0\frameworks\libs._core.swc(error in opening zip file). Build halted with errors (fcsh).

marchbold commented 9 years ago

Okay, Can you try this version:

http://airnativeextensions.com/resources/airsdk/AIRSDK_15.0.0.349.win.distriqtGooglePlayModification.zip

I don't have a windows box easily accessible at the moment so I've just done the same modification I did to the OSX SDK and I'm hoping that it's the same on windows.

Let me know how it goes.

marchbold commented 9 years ago

(Actually it's still uploading so give it half before downloading it sorry!)

philvessey commented 9 years ago

Will do - what is the modification should I need to attempt it myself?

marchbold commented 9 years ago

Basically it's updating the Android libs (lib/android/). I'm still working on exactly which ones you need to update but I've been taking the ones from the Kitkat SDK and updating in the AIR SDK. I think it's just the jar lib but I'll get the details together and log a bug with Adobe.

philvessey commented 9 years ago

Ok excellent - thanks for all the work you put into the extensions. If you put in the bug report what action needs to be taken at least we can attempt it ourselves if Adobe are slow in updating it.

philvessey commented 9 years ago

Get a different error now in the log

11-02 10:51:12.772: E/com.distriqt.Adverts::AdvertsShowAdvertFunction(31429): java.lang.IllegalStateException: A required meta-data tag in your app's AndroidManifest.xml does not exist. You must have the following declaration within the application element: meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version"

philvessey commented 9 years ago

Ah sorry im missing this bit in the xml - will try again :)

marchbold commented 9 years ago

Posted the bug report to here: https://bugbase.adobe.com/index.cfm?event=bug&id=3846188