Closed iicd2386cd closed 8 years ago
Double-check that you have used the right values in the right place.
I have the same issue, and on the first runs i was unable to see any ad. But after a while i start seeing ads on my app.
And try to test it on a real device, it definitely don't work on Live Preview and i don;t know if it could work on a Simulator.
Regards
J
Hi, like @jmoleiro say have you try on real device? You use your own Admob id?
I cant even compile it. i got this error
Uno 0.38.2 (build 3913) Windows 8.1 x64 255da1e
Configuring (3.1s)
Installing dependencies (1.1s)
Compiling syntax tree (2.5s)
Generating code and data (8.0s)
Building Android app
1/2: libAdMob.so
2/2: AdMob.apk
[javac] warning: [options] source value 1.5 is obsolete and will be removed in a future release
[javac] warning: [options] target value 1.5 is obsolete and will be removed in a future release
[javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
[javac] C:\Users\dAREKfff\Desktop\AdMob-master\build\Android\Release\AdMob\app\src\main\java\com\foreign\Android\AdMobView.java:20: error: package com.google.android.gms.ads does not exist
[javac] C:\Users\dAREKfff\Desktop\AdMob-master\build\Android\Release\AdMob\app\src\main\java\com\foreign\Android\AdMobView.java:21: error: package com.google.android.gms.ads does not exist
[javac] C:\Users\dAREKfff\Desktop\AdMob-master\build\Android\Release\AdMob\app\src\main\java\com\foreign\Android\AdMobView.java:22: error: package com.google.android.gms.ads does not exist
[javac] C:\Users\dAREKfff\Desktop\AdMob-master\build\Android\Release\AdMob\app\src\main\java\com\foreign\Android\AdMobView.java:23: error: package com.google.android.gms.ads does not exist
[javac] C:\Users\dAREKfff\Desktop\AdMob-master\build\Android\Release\AdMob\app\src\main\java\com\foreign\Android\AdMobView.java:36: error: cannot find symbol
[javac] C:\Users\dAREKfff\Desktop\AdMob-master\build\Android\Release\AdMob\app\src\main\java\com\foreign\Android\AdMobView.java:36: error: package AdRequest does not exist
[javac] C:\Users\dAREKfff\Desktop\AdMob-master\build\Android\Release\AdMob\app\src\main\java\com\foreign\Android\AdMobView.java:39: error: cannot find symbol
[javac] C:\Users\dAREKfff\Desktop\AdMob-master\build\Android\Release\AdMob\app\src\main\java\com\foreign\Android\AdMobView.java:39: error: cannot find symbol
[javac] C:\Users\dAREKfff\Desktop\AdMob-master\build\Android\Release\AdMob\app\src\main\java\com\foreign\Android\AdMobView.java:40: error: cannot find symbol
[javac] C:\Users\dAREKfff\Desktop\AdMob-master\build\Android\Release\AdMob\app\src\main\java\com\foreign\Android\AdMobView.java:49: error: cannot find symbol
BUILD FAILED
C:\Users\dAREKfff\AppData\Local\Fusetools\Fuse\Android\AndroidSDK\tools\ant\build.xml:720: The following error occurred while executing this line:
C:\Users\dAREKfff\AppData\Local\Fusetools\Fuse\Android\AndroidSDK\tools\ant\build.xml:734: Compile failed; see the compiler error output for details.
Total time: 3 seconds
_root.AdMob.cpp
_root.g.cpp
_root.MainView.cpp
Android.AdMobView.cpp
Android.Base.g.cpp
Android.Base.Primitives.g.cpp
Android.Base.Types.g.cpp
Android.Base.Wrappers.g.cpp
Android.com.fuse.ExperimentalHttp.g.cpp
Android.g.cpp
BootstrapperImpl_Android.cpp
Experimental.Cache.g.cpp
Experimental.Http.g.cpp
Experimental.Http.Internal.g.cpp
Experimental.TextureLoader.g.cpp
Fuse.Android.Controls.g.cpp
Fuse.Android.Controls.WebViewUtils.g.cpp
Fuse.Android.g.cpp
Fuse.Animations.g.cpp
Fuse.Controls.g.cpp
Fuse.Controls.Graphics.g.cpp
Fuse.Controls.Native.Android.g.cpp
Fuse.Controls.Native.g.cpp
Fuse.Controls.Native.iOS.g.cpp
Fuse.Controls.NavigationControlBit.g.cpp
Fuse.Controls.VideoImpl.Android.g.cpp
Fuse.Controls.VideoImpl.g.cpp
Fuse.Drawing.Batching.g.cpp
Fuse.Drawing.g.cpp
Fuse.Drawing.Internal.g.cpp
Fuse.Drawing.Primitives.g.cpp
Fuse.Effects.g.cpp
Fuse.Elements.g.cpp
Fuse.Entities.g.cpp
Fuse.FileSystem.g.cpp
Fuse.g.cpp
Fuse.Gestures.g.cpp
Fuse.Gestures.Internal.g.cpp
Fuse.Input.g.cpp
Fuse.Internal.Drawing.g.cpp
Fuse.Internal.g.cpp
Fuse.Layouts.g.cpp
Fuse.Motion.g.cpp
Fuse.Motion.Simulation.g.cpp
Fuse.Navigation.g.cpp
Fuse.Platform.g.cpp
Fuse.Preview.g.cpp
Fuse.Reactive.FuseJS.g.cpp
Fuse.Reactive.g.cpp
Fuse.Resources.g.cpp
Fuse.Scripting.g.cpp
Fuse.Scripting.V8.g.cpp
Fuse.Scripting.V8.Simple.g.cpp
Fuse.Selection.g.cpp
(unknown): E0200: Android build failed
Fuse.Storage.g.cpp
Fuse.Triggers.Actions.g.cpp
Fuse.Triggers.g.cpp
FuseJS.g.cpp
Java.g.cpp
OpenGL.g.cpp
Polyfills.Window.g.cpp
Uno.Collections.g.cpp
Uno.Compiler.ExportTargetInterop.Foreign.Android.g.cpp
Uno.Content.Fonts.g.cpp
Uno.Content.Models.g.cpp
Uno.Diagnostics.g.cpp
Uno.g.cpp
Uno.Geometry.g.cpp
Uno.Graphics.g.cpp
Uno.IO.g.cpp
Uno.Net.g.cpp
Uno.Net.Http.g.cpp
Uno.Net.Http.Implementation.g.cpp
Uno.Net.Sockets.g.cpp
Uno.Platform.g.cpp
Uno.Platform2.g.cpp
Uno.Runtime.Implementation.g.cpp
Uno.Runtime.Implementation.Internal.g.cpp
Uno.Runtime.Implementation.ShaderBackends.OpenGL.g.cpp
Uno.Text.g.cpp
Uno.Threading.g.cpp
Uno.Time.Calendars.g.cpp
Uno.Time.g.cpp
Uno.Time.Text.g.cpp
Uno.UX.g.cpp
V8Proxy.cpp
Uno/_invoke.cpp
Uno/_main.cpp
Uno/Base64.cpp
Uno/JNIHelper.cpp
Uno/Memory.cpp
Uno/ObjectModel.cpp
Uno/Support.cpp
Uno/Activity/AApplication.cpp
Uno/Activity/EntryPoints.cpp
Uno/Activity/Platform2.cpp
Uno/Graphics/GLHelper.cpp
Buildfile: C:\Users\dAREKfff\Desktop\AdMob-master\build\Android\Release\AdMob\app\src\main\build.xml
-set-mode-check:
-set-debug-files:
-check-env:
[checkenv] Android SDK Tools Revision 24.0.2
[checkenv] Installed at C:\Users\dAREKfff\AppData\Local\Fusetools\Fuse\Android\AndroidSDK
-setup:
[echo] Project Name: AdMob
[gettype] Project Type: Application
-set-debug-mode:
-debug-obfuscation-check:
-pre-build:
-build-setup:
[getbuildtools] Using latest Build Tools: 23.0.1
[echo] Resolving Build Target for AdMob...
[gettarget] Project Target: Android 6.0
[gettarget] API level: 23
[echo] ----------
[echo] Creating output directories if needed...
[mkdir] Created dir: C:\Users\dAREKfff\Desktop\AdMob-master\build\Android\Release\AdMob\app\src\main\bin\res
[mkdir] Created dir: C:\Users\dAREKfff\Desktop\AdMob-master\build\Android\Release\AdMob\app\src\main\bin\rsObj
[mkdir] Created dir: C:\Users\dAREKfff\Desktop\AdMob-master\build\Android\Release\AdMob\app\src\main\bin\rsLibs
[mkdir] Created dir: C:\Users\dAREKfff\Desktop\AdMob-master\build\Android\Release\AdMob\app\src\main\gen
[mkdir] Created dir: C:\Users\dAREKfff\Desktop\AdMob-master\build\Android\Release\AdMob\app\src\main\bin\classes
[mkdir] Created dir: C:\Users\dAREKfff\Desktop\AdMob-master\build\Android\Release\AdMob\app\src\main\bin\dexedLibs
[echo] ----------
[echo] Resolving Dependencies for AdMob...
[dependency] Library dependencies:
[dependency] No Libraries
[dependency]
[dependency] ------------------
[echo] ----------
[echo] Building Libraries with 'debug'...
[subant] No sub-builds to iterate on
-code-gen:
[mergemanifest] Merging AndroidManifest files into one.
[mergemanifest] Manifest merger disabled. Using project manifest only.
[echo] Handling aidl files...
[aidl] No AIDL files to compile.
[echo] ----------
[echo] Handling RenderScript files...
[echo] ----------
[echo] Handling Resources...
[aapt] Generating resource IDs...
[echo] ----------
[echo] Handling BuildConfig class...
[buildconfig] Generating BuildConfig class.
-pre-compile:
-compile:
if you want to see all code it is here : https://www.dropbox.com/s/libgtwovz53a51p/AdMob-master.rar?dl=0 someone can help me ?
Have you used the -DGRADLE parameter?
No, where i have to do it ? in cmd ?
It is working !! Thank you !!
I have last question, how to include your project in to my ? I copy AdMob.Android.uno in to root folder, i am add
"Includes": [
"*".
"AdMob.Android.uno"
]
It is should woryk right ?
I think yes you can add directly the uno file in your unoproj.
Personally I prefer add the full Admob project before the includes.
"Projects": [
"Components/AdMob/AdMob.unoproj",
]
Anyway I am happy that you succeeded (The command for use this script is in the README)
no, where i have to do it ? in cmd ?
2016-10-26 20:15 GMT+02:00 Jonatan Moleiro notifications@github.com:
Have you used the -DGRADLE parameter?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/aToO57/AdMob/issues/1#issuecomment-256432812, or mute the thread https://github.com/notifications/unsubscribe-auth/AWAkG9eacqjFmj6wzA1cmBi01VLJONrDks5q35jGgaJpZM4KhJy4 .
Win+R -> cmd -> uno build --target=Android -DGRADLE
And you found the generate apk inside your project folder
If it's good tell me so i can close this issue
Hi, i have one more question, i trying to upload my apk to google play but it says it can't be debuged version, is any way to fix it ?
Hi, you need to check fuse doc if you want make a release version. https://www.fusetools.com/docs/preview-and-export/signing
Hi, i don`t know why but your project is not working, it not show any advert. Can you add more information how to run it ?