Hello again,
just by replacing the following reference :
Location l = LocationManager.getLocationManager().getLastKnownLocation();
with this :
Location l =
Display.getInstance().getLocationManager().getLastKnownLocation();
android build works just fine.
Unfortunately i had to modify also some of my constructors in a class which
they reference the Location API as
an arg so as the build to succeed.
Regards,
Vasileios
On Tuesday, July 28, 2020 at 9:45:04 PM UTC+3, Βασίλειος Τσουμάνης wrote:
>
> Hi when i try to android build an app with AdmobInterstitial cnlib
> integrated together with the Location API
> referenced in code then the build fails with the following reasons. I
> concluded this from a trial and error process
>
> and when i removed any reference from the Location API the android build
> was successful. Is there any advice?
>
>
> Compiling with JDK Java compiler API.
> /tmp/build2708158476482284487xxx/POIFinder/src/main/java/com/codename1/admob/AdMobNativeImpl.java:3:
>
> error: package com.google.android.gms.ads does not exist
> import com.google.android.gms.ads.*;
> ^
> /tmp/build2708158476482284487xxx/POIFinder/src/main/java/com/codename1/admob/AdMobNativeImpl.java:13:
>
> error: cannot find symbol
> private InterstitialAd interstitial;
> ^
> symbol: class InterstitialAd
> location: class AdMobNativeImpl
> /tmp/build2708158476482284487xxx/POIFinder/src/main/java/com/codename1/admob/AdMobNativeImpl.java:66:
>
> error: cannot find symbol
> interstitial = new InterstitialAd(activity);
> ^
> symbol: class InterstitialAd
> location: class AdMobNativeImpl
> /tmp/build2708158476482284487xxx/POIFinder/src/main/java/com/codename1/admob/AdMobNativeImpl.java:68:
>
> error: cannot find symbol
> interstitial.setAdListener(new AdListener() {
> ^
> symbol: class AdListener
> location: class AdMobNativeImpl
> /tmp/build2708158476482284487xxx/POIFinder/src/main/java/com/codename1/admob/AdMobNativeImpl.java:106:
>
> error: cannot find symbol
> final AdRequest adRequest = new AdRequest.Builder().build();
> ^
> symbol: class AdRequest
> location: class AdMobNativeImpl
> /tmp/build2708158476482284487xxx/POIFinder/src/main/java/com/codename1/admob/AdMobNativeImpl.java:106:
>
> error: package AdRequest does not exist
> final AdRequest adRequest = new AdRequest.Builder().build();
> ^
>
--
You received this message because you are subscribed to the Google Groups
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/codenameone-discussions/38281cd4-5296-4aff-85f9-0336d8335fb2o%40googlegroups.com.