• Hello [name]! Thanks for joining the GMC. Before making any posts in the Tech Support forum, can we suggest you read the forum rules? These are simple guidelines that we ask you to follow so that you can get the best help possible for your issue.

Legacy GM [Solved]most recent GM settings for android export

U

Uberpink

Guest
what is the recommended most recent settings? i get many lint errors (51) and also about gradle not up to date or something build tools support lib and target sdk ,it messes me up ,, does these look right? :(

fails to show ads also so i need to go thru all those lints, so just wanted to make sure these settings were ok(?) if there is some site with continuously updated settings for gm, please send me url... any help would be greatly appreciated

these are my settings:
preferences-android.jpg globalgamesettings-general.jpg
 

O.Stogden

Member
Hello, here's the latest Android SDK versions I have managed to get working on GMS 1.4

Build Tools: 24
Support Lib: 23.2.1
Target SDK: 16
Min SDK: 14
Compile SDK: 23

JDK: 1.8.0_162

Make sure you've updated your Android SDK in the SDK Manager with the required files.

You can probably get higher versions than this working with GMS 1, if so, I'd love to know how.
 
U

Uberpink

Guest
my old settings is in the screenshots above, but the ones below im trying with now,, atleast no more gradle error afaik,and no other red lint errors,only warnings

build tools 26.0.0
support lib 26.0.0
26
16
26

when thats said i struggle with ads. cant get admob to show so maybe thats because of some of those settings idk.....

BTW have u got ads to work? if so, maybe ill use your settings that u posted:)
 
U

Uberpink

Guest
I changed to your settings, this is my code: in create of an object in a room: -

GoogleMobileAds_Init("ca-app-pub-9235698069544896~2943283761","ca-app-pub-9235698069544896/8477082984");

GoogleMobileAds_AddBannerAt("ca-app-pub-9235698069544896/8477082984", GoogleMobileAds_Banner,5,5);

but not working hm
no devices/emulators found,,, build was "successful" tho,, but got that grey error window
 
Last edited by a moderator:

O.Stogden

Member
Have you enabled ADB on your device? Usually what causes the error of no devices.

Also, I think you need to swap your arguments for GoogleMobileAds_Init. Your BannerAdId is in the space where your AppID should be.

GoogleMobileAds_Init("ca-app-pub-9235698069544896/8477082984","ca-app-pub-9235698069544896~2943283761"); //Should fix it

You'll want to add the test code, otherwise Google may ban you from using ads.

GoogleMobileAds_UseTestAds(true, "YOUR DEVICE ID HERE"); //Device ID is found in the command prompt window that opens up.

After these 2 are done, you can add a banner.

My banner code is:
GoogleMobileAds_AddBannerAt("AdId HERE", GoogleMobileAds_Smart_Banner, 0, display_get_height()-80); //Draws bannerad at bottom of screen
 
U

Uberpink

Guest
enabled ADB on my huawei phone? not sure, hm have to check (can i still make ads and test that it works on phone even if i get that "no devices/emulators found" when compile? OR do i need this to work in order to get the my deviceID info?) or can i get the deviceID in another way?

a friend registered for the admob and i have full login details since i have the compiler, i can still test on my phone and him on his, OR do i need to compile a special version to him with HIS deviceID ?

one more question... i dont have a sim card in my phone at the moment , only internet, is that enuff to see if ads working?
 
Last edited by a moderator:

O.Stogden

Member
If you make an APK and install it on your phone, yes that will work just as testing the game works I believe.

I am not sure of another method to find your Android Device ID.

Whatever device you use to test, you need to use that devices unique ID. When you specify the ID in the GoogleMobile_Ads_UseTestAds function, it'll tell the app to load a fake ad just so you can see how it's working. If you don't use your DeviceID here, it'll load a proper ad from Google, and if Google detect you repeatedly viewing the ad over and over (as you might when debugging/testing your game) your account may be banned as they will assume you're trying to generate ad revenue for yourself. So whatever device you're using, make sure that device's ID is entered into the UseTestAds function.

It will work as long as you have an internet connection, whether that's 3G/4G/Wi-Fi, as tablets only have Wi-Fi generally and they display test ads fine for me.
 
U

Uberpink

Guest
thanks!! i really appreciate the help:) i downed an app and found the deviceid:) and installed HiSuite and managed to connect phone i think,, compiled and didnt get the "no device error", i also did not get the grey window with red tekst,, what i got now was

BUILD SUCCESSFUL

Total time: 4 mins 51.894 secs
cmd /c "subst /d Y:"

device
adb server version (39) doesn't match this client (40); killing...
* daemon started successfully
CreateTargetExe End: 01:39:54
Create finished: 01:39:56


so that might mean some nice steps forward ;)compile was successful but still no ads ,but might be because of that error...

just in case,, i used your code eksample, so the entire ad code is now:

GoogleMobileAds_Init("ca-app-pub-9235698069544896/8477082984","ca-app-pub-9235698069544896~2943283761");
GoogleMobileAds_UseTestAds(true, "9844ca0913147a44") //unik device id

GoogleMobileAds_AddBannerAt("ca-app-pub-9235698069544896/8477082984", GoogleMobileAds_Smart_Banner, 0, display_get_height()-80); //Draws bannerad at bottom of screen

it looks ok? theres nothing i need to do in the ekstensions? u can doubleclick it and some stuff appear..
 
Last edited by a moderator:

O.Stogden

Member
Ads can take about 20 seconds to appear on my device over 4G, so make sure you give it some time to load. Sometimes they can load in a couple of seconds though.

The ADB server version is usually to do with your Android SDK being a different version to what's expected, but if it compiles the game properly, I'm not sure that'd affect the ads...

Your code looks fine to me, you could try changing the ad co-ords to something basic like 0,0 just to see if the ad is loading, it should appear at the top left of your phone if it is.
 
U

Uberpink

Guest
when compiling it pops up a new cmd window after compile succeeded ,havent done so before,,, even if compile is successful, -does this reflect whats happening if copying the apk to the phone and run it too? so is that window like an ekstended more in depth error report?


int logctl_get(): open '/dev/hwlog_switch' fail -1, 13. Permission denied

Note: log switch off, only log_main and log_events will have logs!
--------- beginning of main
07-27 13:02:23.332 18207 18207 I AndroidRuntime: readDownloadBoosterConfig: 'fal
se'
07-27 13:06:57.956 17470 17470 I yoyo : onRestart
07-27 13:06:57.963 17470 17470 I yoyo : onStart
07-27 13:06:57.963 17470 17470 I yoyo : googleplayservices extension onStart
called
07-27 13:06:57.966 17470 17470 I yoyo : onResume
07-27 13:06:57.967 17470 17470 I yoyo : Setting vis flags to 5894
07-27 13:06:57.969 17470 17470 I yoyo : googleplayservices extension onResume
called. Signed in on pause: false. Signed in now: false //??

07-27 13:06:57.990 17470 17470 I yoyo : onWindowFocusChanged(true|false)
07-27 13:06:57.990 17470 17470 I yoyo : Setting vis flags to 5894
07-27 13:06:57.990 17470 17470 I yoyo : resumeApp
07-27 13:06:57.991 17470 17470 I yoyo : GAMEPAD: Bonded Bluetooth devices rea
d
07-27 13:06:57.991 17470 17470 I yoyo : GAMEPAD: Enumeration complete
07-27 13:06:57.991 17470 17486 I yoyo : chooseConfig
07-27 13:06:57.997 17470 17486 I yoyo : OpenGL ES Extensions : GL_EXT_debug_m
arker GL_OES_byte_coordinates GL_OES_fixed_point GL_OES_single_precision GL_OES_
matrix_get GL_OES_compressed_paletted_texture GL_OES_point_size_array GL_OES_poi
nt_sprite GL_OES_read_format GL_OES_compressed_ETC1_RGB8_texture GL_OES_depth24
GL_OES_stencil8 GL_OES_framebuffer_object GL_OES_packed_depth_stencil GL_OES_rgb
8_rgba8 GL_EXT_read_format_bgra GL_OES_matrix_palette GL_OES_extended_matrix_pal
ette GL_OES_draw_texture GL_OES_blend_equation_separate GL_OES_blend_func_separa
te GL_OES_blend_subtract GL_OES_stencil_wrap GL_OES_texture_mirrored_repeat GL_E
XT_texture_format_BGRA8888 GL_OES_query_matrix GL_OES_EGL_image GL_OES_EGL_image
_external GL_OES_EGL_sync GL_OES_texture_npot GL_OES_vertex_half_float GL_OES_re
quired_internalformat GL_OES_vertex_array_object GL_OES_mapbuffer GL_OES_fbo_ren
der_mipmap GL_OES_element_index_uint GL_ARM_rgba8 GL_EXT_blend_minmax GL_EXT_dis
card_framebuffer GL_EXT_texture_storage GL_OES_texture_compression_astc GL_KHR_t
exture_compression_astc_ldr GL_KHR_texture_compression_astc_hdr GL_OES_surfacele
ss_context GL_EXT_multisampled_render_to_texture GL_OES_texture_cube_map GL_KHR_
debug GL_EXT_sRGB GL_EXT_robustness
07-27 13:06:57.997 17470 17486 I yoyo : Device supports 32bit display formats

07-27 13:06:58.001 17470 17486 I yoyo : 16 bit colour depth forced
07-27 13:06:58.002 17470 17486 I yoyo : Trying EGL config : EGLConfig 7: rgba
=5650 depth=24 stencil=8 EGL_ALPHA_MASK_SIZE=0 EGL_BUFFER_SIZE=16 EGL_COLOR_BUFF
ER_TYPE=12430 EGL_CONFIG_CAVEAT=0x3038 EGL_LEVEL=0 EGL_LUMINANCE_SIZE=0 EGL_MAX_
PBUFFER_WIDTH=8192 EGL_MAX_PBUFFER_HEIGHT=8192 EGL_MAX_PBUFFER_PIXELS=67108864 E
GL_MAX_PBUFFER_HEIGHT=8192 EGL_MAX_PBUFFER_HEIGHT=8192 EGL_NATIVE_RENDERABLE=0 E
GL_NATIVE_VISUAL_TYPE=4 EGL_RENDERABLE_TYPE=69 EGL_SAMPLE_BUFFERS=0 EGL_SAMPLES=
0 EGL_SURFACE_TYPE=1029 EGL_TRANSPARENT_TYPE=12344 EGL_TRANSPARENT_RED_VALUE=0 E
GL_TRANSPARENT_GREEN_VALUE=0 EGL_TRANSPARENT_BLUE_VALUE=0
07-27 13:06:58.006 17470 17486 I yoyo : Selected EGL config working
07-27 13:06:58.009 17470 17470 I yoyo : Resuming the C++ Runner/resetting GL
state
07-27 13:06:58.009 17470 17470 W yoyo : AL lib: (EE) dlGetIID: dlsymIID :: SL
_IID_VOLUME :: de612e7c
07-27 13:06:58.011 17470 17486 I yoyo : onSurfaceCreated() aborted on re-crea
te, state is currently Process
07-27 13:06:58.011 17470 17486 I yoyo : onSurfaceChanged :: width=1080 height
=1920
07-27 13:06:58.023 17470 17470 W yoyo : AL lib: (EE) dlGetIID: dlsymIID :: SL
_IID_VOLUME :: de612e7c
07-27 13:06:58.036 17470 17470 I yoyo : Setting vis flags to 5894
07-27 13:06:58.468 17470 17470 I yoyo : Setting vis flags to 5894
07-27 13:06:58.491 17470 17470 I yoyo : Setting vis flags to 5894
07-27 13:06:58.537 17470 17470 I yoyo : Setting vis flags to 5894
07-27 13:07:01.603 17470 17470 I yoyo : onPause
07-27 13:07:01.605 17470 17470 I yoyo : Pausing the Runner
07-27 13:07:01.605 17470 17470 W yoyo : AL lib: (EE) dlGetIID: dlsymIID :: SL
_IID_VOLUME :: de612e7c
07-27 13:07:01.703 17470 17486 I yoyo : vsync timeout...
07-27 13:07:01.715 17470 17470 I yoyo : onWindowFocusChanged(false|false)
07-27 13:07:01.716 17470 17470 I yoyo : Setting vis flags to 5894
07-27 13:07:01.716 17470 17470 W yoyo : AL lib: (EE) dlGetIID: dlsymIID :: SL
_IID_VOLUME :: de612e7c
07-27 13:07:01.800 18498 18498 I AndroidRuntime: readDownloadBoosterConfig: 'fal
se'
07-27 13:07:01.927 17470 17470 I yoyo : Setting vis flags to 5894
07-27 13:07:02.202 17470 17470 I yoyo : onStop
07-27 13:07:02.202 17470 17470 I yoyo : googleplayservices extension onStop c
alled
07-27 13:07:02.217 17470 17470 I yoyo : Setting vis flags to 5894
07-27 13:07:02.428 17470 17470 I yoyo : Setting vis flags to 5894
07-27 13:08:22.961 18623 18623 I AndroidRuntime: readDownloadBoosterConfig: 'fal
se'
07-27 13:08:23.442 18623 18623 I AndroidRuntime: VM exiting with result code 0.
07-27 13:08:27.167 18845 18845 I AndroidRuntime: readDownloadBoosterConfig: 'fal
se'
07-27 13:08:34.728 18845 18845 I AndroidRuntime: VM exiting with result code 0.
07-27 13:08:35.375 18939 18939 I AndroidRuntime: readDownloadBoosterConfig: 'fal
se'
07-27 13:08:35.637 19001 19001 I yoyo : onCreate
07-27 13:08:35.638 19001 19001 I yoyo : #######!!!!!!! Checking for runner -
found assets
07-27 13:08:35.640 19001 19001 I yoyo : ###@@@@!!!~~~~###### versionName - 1.
0.0
07-27 13:08:35.644 19001 19001 I yoyo : ###@@@@!!!~~~~###### default orientat
ion - 1
07-27 13:08:35.644 19001 19001 I yoyo : #####!!!! package name is com.company
name.Googleadtest01
07-27 13:08:35.644 19001 19001 I yoyo : Loading INI from manifest file
07-27 13:08:35.645 19001 19001 I yoyo : INI loaded from AndroidManifest.xml
07-27 13:08:35.645 19001 19001 I yoyo : Attempting to initialise extension cl
ass com.companyname.Googleadtest01.GooglePlayServicesExtension
07-27 13:08:35.647 19001 19001 I yoyo : Method found, attempting to invoke In
it
07-27 13:08:35.655 19001 19001 I yoyo : Google Play Services extension initia
lising
07-27 13:08:35.655 19001 19001 I yoyo : Initialising Google Play Services. Ap
p id: ca-app-pub-9235698069544896~2943283761
07-27 13:08:35.661 19001 19001 I yoyo : Signing into google game services. Cl
oud enabled: false. Options builder: com.google.android.gms.auth.api.signin.Goog // ?

leSignInOptions$Builder@4ec61b6
07-27 13:08:35.672 19001 19001 I yoyo : @@@@@@@ Build.Display = GRA-L09C432B5
20 BRAND=HUAWEI DEVICE=HWGRA MANUFACTURER=HUAWEI MODEL=HUAWEI GRA-L09 PRODUCT=GR
A-L09
07-27 13:08:35.673 19001 19001 I yoyo : @@@@@@@ XPeriaPlay=false manufacturer
=false model=false
07-27 13:08:35.673 19001 19001 I yoyo : Extension Class not found: com.compan // ?
yname.Googleadtest01.GooglePlayLicensingAsExt attempting to call checkLicensing
07-27 13:08:35.673 19001 19001 I yoyo : !!!!!!! Checking if APK Expansion fil
e required...

07-27 13:08:35.673 19001 19001 I yoyo : + + + + setupView + + + +
07-27 13:08:35.683 19001 19001 I yoyo : #####!!!! package name is com.company
name.Googleadtest01
07-27 13:08:35.683 19001 19001 I yoyo : Loading INI from manifest file
07-27 13:08:35.684 19001 19001 I yoyo : INI loaded from AndroidManifest.xml
07-27 13:08:35.685 19001 19001 I yoyo : RestrictOrientation setting from YYPr
efs
07-27 13:08:35.687 19001 19001 I yoyo : RestrictOrientation("true", "true"tru
e"true")
07-27 13:08:35.688 19001 19001 I yoyo : Reading GL config option...
07-27 13:08:35.689 19001 19001 I yoyo : Using OpenGL ES 1 renderer
07-27 13:08:35.690 19001 19001 I yoyo : DemoGLSurfaceView: CREATED
07-27 13:08:35.707 19001 19001 I yoyo : Setting vis flags to 5894
07-27 13:08:35.709 19001 19001 I yoyo : !!!!!!! Using frame count timing if p
ossible...
07-27 13:08:35.710 19001 19001 I yoyo : onStart
07-27 13:08:35.710 19001 19001 I yoyo : googleplayservices extension onStart
called
07-27 13:08:35.710 19001 19001 I yoyo : onResume
07-27 13:08:35.711 19001 19001 I yoyo : Setting vis flags to 5894
07-27 13:08:35.715 19001 19001 I yoyo : googleplayservices extension onResume
called. Signed in on pause: false. Signed in now: false
07-27 13:08:35.733 19001 19001 I yoyo : onPause
07-27 13:08:35.737 19001 19001 I yoyo : Pausing the Runner
07-27 13:08:35.789 19001 19001 I yoyo : onStop
07-27 13:08:35.789 19001 19001 I yoyo : googleplayservices extension onStop c
alled
07-27 13:08:36.209 19001 19001 I yoyo : Setting vis flags to 5894
07-27 13:08:36.227 19001 19001 I yoyo : Setting vis flags to 5894
 
Last edited by a moderator:
U

Uberpink

Guest
might it be that i use a to new GooglePlayServices ekstension? compared to the versions of sdk/build tools etc?
 
U

Uberpink

Guest
me also.. do you put in something manually in that ekstensions? import or eksport anyting into the ekstension?
 
U

Uberpink

Guest
weve tried with ads and interstitial ads for a week , maybe we simply are banned,,havent tried test ads until recently,, hehe but no views in admob panel,, maybe it simply is some admob problem,, ill contact them and see:) thanks for all help, ill post if we make it working... do u have a game in the store? gonna download and give u some ad clicks :)
 

O.Stogden

Member
Admob can take a while to work with your app, but if you've been trying a week, that's probably not the problem.

I have no apps in the appstore right now, I have one that's pretty much been ready to launch for a month or so, but I've been holding off releasing it.
 
U

Uberpink

Guest
ok hehe sorry to interupt once more.. while phone is connected and GM compile finished and game starting on the phone by itself and the black window running; when i go into the room where the ad code is, this is one of the thingsthat happens in the black window... maybe finally found the error heh.....

: Use AdRequest.Builder.addTestDevice("
1FA1EDCBFA4A630908A8CC4509FC9E45") to get test ads on this device.

should i remove my deviceID and put in the above instead?
 
Last edited by a moderator:
U

Uberpink

Guest
that works! so test ads now works... some guy said that i should not compile with yyc,,, why is that? thought yyc made the game run faster...

btw do you know if i can compile a version to the other guy in the project?`

i tried compile with his deviceID (not that long code that cmd window asked me to do)- the strange thing is that this version with his deviceID also run on my phone but not his phone... maybe ill try to avoid having phone connected when making a version for him
 

O.Stogden

Member
Not sure, I've put my game on a phone and a tablet before,and just switched the device ID when necessary,and it worked fine for me.
 
Top