What´s worng with mobile advert? (SOLVED)

0 favourites
From the Asset Store
A simple fun and stylish endless scroller game ready to be customized and published.
  • I trying to show ads on C3 since a while ago but always I include Mobile Advert object in the project I get a black screen. Without the mobile advert the apk works fine whichever it be the method to export.

    I have tried differnt options:

    -Export to Android Studio from c3. Black screen

    -Export to Cordova from c3 and build locally with cmd. Black screen

    -Export to debug from c3 also gives me black screen.

    Ashley

  • It's impossible to help unless you provide more information, such as a sample project.

  • Ok. I have made this very simple capx. with the MobileAdvert object, I have exported to Android Studio to check again and I get a black screen as usual.

    When I export I use my app id and app id unit, but I have delete it to share this capx.

    https://www.dropbox.com/s/v0dq6h6si04rfnv/Mobile%20Advert%20Test.c3p?dl=0

    This is how my event looks:

    Once exported to Android Studio the only thing I do is:

    I go to "File<Project Structure<Project" and I change the gradle version from 4.1 to 2.14.1 to avoid the error, because in the build.gradle appears like this. After I generate a signed APK and is generated successfully with no errors.

    I install on my device and black screen.

    If I do the exactly same process without the mobileAdvert object the APK runs ok.

  • If I open the Android Studio Emulator with the debug mode this is what console says: (the emulator gives me black screen as well)

    01/16 02:23:59: Launching Mobile Advert Test.android.project (2)

    No apk changes detected since last installation, skipping installation of F:\c3\Mobile Advert Test.android.project (2)\build\outputs\apk\Mobile Advert Test.android.project (2)-debug.apk

    $ adb shell am force-stop com.ekdu.trapbeats

    $ adb shell am start -n "com.ekdu.trapbeats/com.ekdu.trapbeats.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -D

    Waiting for application to come online: com.ekdu.trapbeats | com.ekdu.trapbeats.test

    Waiting for application to come online: com.ekdu.trapbeats | com.ekdu.trapbeats.test

    Connecting to com.ekdu.trapbeats

    Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page.

    W/ActivityThread: Application com.ekdu.trapbeats is waiting for the debugger on port 8100...

    I/System.out: Sending WAIT chunk

    I/art: Debugger is active

    I/System.out: Debugger has connected

    I/System.out: waiting for debugger to settle...

    Connected to the target VM, address: 'localhost:8610', transport: 'socket'

    I/System.out: waiting for debugger to settle...

    I/System.out: waiting for debugger to settle...

    I/System.out: waiting for debugger to settle...

    I/System.out: waiting for debugger to settle...

    I/System.out: waiting for debugger to settle...

    I/System.out: waiting for debugger to settle...

    I/System.out: debugger has settled (1349)

    I/CordovaLog: Changing log level to DEBUG(3)

    I/CordovaActivity: Apache Cordova native platform version 6.3.0 is starting

    D/CordovaActivity: CordovaActivity.onCreate()

    I/WebViewFactory: Loading com.android.webview version 39 (4409265-x86) (code 300007)

    I/LibraryLoader: Time to load native libraries: 1 ms (timestamps 5091-5092)

    I/LibraryLoader: Expected native library version number "",actual native library version number ""

    V/WebViewChromiumFactoryProvider: Binding Chromium to main looper Looper (main, tid 1) {8dedac1}

    I/LibraryLoader: Expected native library version number "",actual native library version number ""

    I/chromium: [INFO:library_loader_hooks.cc(104)] Chromium logging enabled: level = 0, default verbosity = 0

    I/BrowserStartupController: Initializing chromium process, singleProcess=true

    W/art: Attempt to remove local handle scope entry from IRT, ignoring

    W/chromium: [WARNING:resource_bundle.cc(304)] locale_file_path.empty()

    I/chromium: [INFO:aw_browser_main_parts.cc(65)] Load from apk succesful, fd=29 off=46184 len=3037

    I/chromium: [INFO:aw_browser_main_parts.cc(78)] Loading webviewchromium.pak from, fd:30 off:229484 len:1089587

    W/AudioManagerAndroid: Requires BLUETOOTH permission

    [ 01-16 01:24:04.594 3167: 3167 D/ ]

    HostConnection::get() New Host Connection established 0xb3cf0d80, tid 3167

    [ 01-16 01:24:04.595 3167: 3167 W/ ]

    Unrecognized GLES max version string in extensions: ANDROID_EMU_CHECKSUM_HELPER_v1

    D/EGL_emulation: eglCreateContext: 0xb3f70700: maj 2 min 0 rcv 2

    D/EGL_emulation: eglMakeCurrent: 0xb3f70700: ver 2 0

    W/chromium: [WARNING:data_reduction_proxy_settings.cc(331)] SPDY proxy OFF at startup

    W/art: Attempt to remove local handle scope entry from IRT, ignoring

    W/AwContents: onDetachedFromWindow called when already detached. Ignoring

    D/SystemWebViewEngine: CordovaWebView is running on device made by: unknown

    W/art: Attempt to remove local handle scope entry from IRT, ignoring

    W/art: Attempt to remove local handle scope entry from IRT, ignoring

    D/PluginManager: init()

    D/CordovaWebViewImpl: >>> loadUrl(file:///android_asset/www/index.html)

    D/CordovaActivity: Started the activity.

    D/CordovaActivity: Resumed the activity.

    D/OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true

    D/Atlas: Validating map...

    I/OpenGLRenderer: Initialized EGL, version 1.4

    [ 01-16 01:24:04.709 3167: 3209 D/ ]

    HostConnection::get() New Host Connection established 0xa24d6420, tid 3209

    [ 01-16 01:24:04.709 3167: 3209 W/ ]

    Unrecognized GLES max version string in extensions: ANDROID_EMU_CHECKSUM_HELPER_v1

    W/OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without...

    D/EGL_emulation: eglCreateContext: 0xa242e940: maj 2 min 0 rcv 2

    D/EGL_emulation: eglMakeCurrent: 0xa242e940: ver 2 0

    D/OpenGLRenderer: Enabling debug mode 0

    D/EGL_emulation: eglMakeCurrent: 0xa242e940: ver 2 0

    D/EGL_emulation: eglMakeCurrent: 0xa242e940: ver 2 0

    D/EGL_emulation: eglMakeCurrent: 0xa242e940: ver 2 0

    D/CordovaWebViewImpl: onPageDidNavigate(file:///android_asset/www/index.html)

    D/EGL_emulation: eglMakeCurrent: 0xa242e940: ver 2 0

    D/EGL_emulation: eglMakeCurrent: 0xa242e940: ver 2 0

    D/JsMessageQueue: Set native->JS mode to EvalBridgeMode

    D/EGL_emulation: eglMakeCurrent: 0xa242e940: ver 2 0

    D/EGL_emulation: eglMakeCurrent: 0xa242e940: ver 2 0

    D/SystemWebChromeClient: file:///android_asset/www/c2runtime.js: Line 21962 : Uncaught SyntaxError: In strict mode code, functions can only be declared at top level or immediately within another function.

    I/chromium: [INFO:CONSOLE(21962)] "Uncaught SyntaxError: In strict mode code, functions can only be declared at top level or immediately within another function.", source: file:///android_asset/www/c2runtime.js (21962)

    D/SystemWebChromeClient: file:///android_asset/www/start.js: Line 7 : Uncaught TypeError: undefined is not a function

    I/chromium: [INFO:CONSOLE(7)] "Uncaught TypeError: undefined is not a function", source: file:///android_asset/www/start.js (7)

    D/CordovaWebViewImpl: onPageFinished(file:///android_asset/www/index.html)

    D/EGL_emulation: eglMakeCurrent: 0xa242e940: ver 2 0

    D/EGL_emulation: eglMakeCurrent: 0xa242e940: ver 2 0

    D/EGL_emulation: eglMakeCurrent: 0xa242e940: ver 2 0

    D/EGL_emulation: eglMakeCurrent: 0xa242e940: ver 2 0

    D/EGL_emulation: eglMakeCurrent: 0xa242e940: ver 2 0

    D/EGL_emulation: eglMakeCurrent: 0xa242e940: ver 2 0

    D/EGL_emulation: eglMakeCurrent: 0xa242e940: ver 2 0

    D/EGL_emulation: eglMakeCurrent: 0xa242e940: ver 2 0

    D/EGL_emulation: eglMakeCurrent: 0xa242e940: ver 2 0

    D/EGL_emulation: eglMakeCurrent: 0xa242e940: ver 2 0

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • And at the same time this is the Logcat since the moment the debugger is settled:

    01-16 01:24:04.510 3167-3167/com.ekdu.trapbeats I/System.out: debugger has settled (1349)

    01-16 01:24:04.512 1508-1565/system_process D/EGL_emulation: eglMakeCurrent: 0xa252bb80: ver 2 0

    01-16 01:24:04.522 3167-3167/com.ekdu.trapbeats I/CordovaLog: Changing log level to DEBUG(3)

    01-16 01:24:04.522 3167-3167/com.ekdu.trapbeats I/CordovaActivity: Apache Cordova native platform version 6.3.0 is starting

    01-16 01:24:04.522 3167-3167/com.ekdu.trapbeats D/CordovaActivity: CordovaActivity.onCreate()

    01-16 01:24:04.543 3167-3167/com.ekdu.trapbeats I/WebViewFactory: Loading com.android.webview version 39 (4409265-x86) (code 300007)

    01-16 01:24:04.549 3167-3167/com.ekdu.trapbeats I/LibraryLoader: Time to load native libraries: 1 ms (timestamps 5091-5092)

    01-16 01:24:04.549 3167-3167/com.ekdu.trapbeats I/LibraryLoader: Expected native library version number "",actual native library version number ""

    01-16 01:24:04.556 3167-3167/com.ekdu.trapbeats I/LibraryLoader: Expected native library version number "",actual native library version number ""

    01-16 01:24:04.556 3167-3167/com.ekdu.trapbeats I/chromium: [INFO:library_loader_hooks.cc(104)] Chromium logging enabled: level = 0, default verbosity = 0

    01-16 01:24:04.560 3167-3167/com.ekdu.trapbeats I/BrowserStartupController: Initializing chromium process, singleProcess=true

    01-16 01:24:04.560 3167-3167/com.ekdu.trapbeats W/art: Attempt to remove local handle scope entry from IRT, ignoring

    01-16 01:24:04.565 3167-3167/com.ekdu.trapbeats W/chromium: [WARNING:resource_bundle.cc(304)] locale_file_path.empty()

    01-16 01:24:04.565 3167-3167/com.ekdu.trapbeats I/chromium: [INFO:aw_browser_main_parts.cc(65)] Load from apk succesful, fd=29 off=46184 len=3037

    01-16 01:24:04.566 3167-3167/com.ekdu.trapbeats I/chromium: [INFO:aw_browser_main_parts.cc(78)] Loading webviewchromium.pak from, fd:30 off:229484 len:1089587

    01-16 01:24:04.568 3167-3190/com.ekdu.trapbeats W/AudioManagerAndroid: Requires BLUETOOTH permission

    [ 01-16 01:24:04.594 3167: 3167 D/ ]

    HostConnection::get() New Host Connection established 0xb3cf0d80, tid 3167

    [ 01-16 01:24:04.595 3167: 3167 W/ ]

    Unrecognized GLES max version string in extensions: ANDROID_EMU_CHECKSUM_HELPER_v1

    01-16 01:24:04.605 3167-3167/com.ekdu.trapbeats D/EGL_emulation: eglCreateContext: 0xb3f70700: maj 2 min 0 rcv 2

    01-16 01:24:04.606 3167-3167/com.ekdu.trapbeats D/EGL_emulation: eglMakeCurrent: 0xb3f70700: ver 2 0

    01-16 01:24:04.634 3167-3167/com.ekdu.trapbeats W/chromium: [WARNING:data_reduction_proxy_settings.cc(331)] SPDY proxy OFF at startup

    01-16 01:24:04.641 3167-3167/com.ekdu.trapbeats W/art: Attempt to remove local handle scope entry from IRT, ignoring

    01-16 01:24:04.643 3167-3167/com.ekdu.trapbeats W/AwContents: onDetachedFromWindow called when already detached. Ignoring

    01-16 01:24:04.657 3167-3167/com.ekdu.trapbeats D/SystemWebViewEngine: CordovaWebView is running on device made by: unknown

    01-16 01:24:04.661 3167-3167/com.ekdu.trapbeats W/art: Attempt to remove local handle scope entry from IRT, ignoring

    01-16 01:24:04.661 3167-3167/com.ekdu.trapbeats W/art: Attempt to remove local handle scope entry from IRT, ignoring

    01-16 01:24:04.661 3167-3167/com.ekdu.trapbeats D/PluginManager: init()

    01-16 01:24:04.664 3167-3167/com.ekdu.trapbeats D/CordovaWebViewImpl: >>> loadUrl(file:///android_asset/www/index.html)

    01-16 01:24:04.670 3167-3167/com.ekdu.trapbeats D/CordovaActivity: Started the activity.

    01-16 01:24:04.670 3167-3167/com.ekdu.trapbeats D/CordovaActivity: Resumed the activity.

    01-16 01:24:04.672 3167-3209/com.ekdu.trapbeats D/OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true

    01-16 01:24:04.674 3167-3167/com.ekdu.trapbeats D/Atlas: Validating map...

    01-16 01:24:04.709 3167-3209/com.ekdu.trapbeats I/OpenGLRenderer: Initialized EGL, version 1.4

    [ 01-16 01:24:04.709 3167: 3209 D/ ]

    HostConnection::get() New Host Connection established 0xa24d6420, tid 3209

    [ 01-16 01:24:04.709 3167: 3209 W/ ]

    Unrecognized GLES max version string in extensions: ANDROID_EMU_CHECKSUM_HELPER_v1

    01-16 01:24:04.711 3167-3209/com.ekdu.trapbeats W/OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without...

    01-16 01:24:04.712 3167-3209/com.ekdu.trapbeats D/EGL_emulation: eglCreateContext: 0xa242e940: maj 2 min 0 rcv 2

    01-16 01:24:04.721 3167-3209/com.ekdu.trapbeats D/EGL_emulation: eglMakeCurrent: 0xa242e940: ver 2 0

    01-16 01:24:04.723 3167-3209/com.ekdu.trapbeats D/OpenGLRenderer: Enabling debug mode 0

    01-16 01:24:04.736 3167-3209/com.ekdu.trapbeats D/EGL_emulation: eglMakeCurrent: 0xa242e940: ver 2 0

    01-16 01:24:04.756 3167-3209/com.ekdu.trapbeats D/EGL_emulation: eglMakeCurrent: 0xa242e940: ver 2 0

    01-16 01:24:04.788 3167-3209/com.ekdu.trapbeats D/EGL_emulation: eglMakeCurrent: 0xa242e940: ver 2 0

    01-16 01:24:04.814 1508-1532/system_process E/WindowManager: Performed 6 layouts in a row. Skipping

    01-16 01:24:04.815 3167-3167/com.ekdu.trapbeats D/CordovaWebViewImpl: onPageDidNavigate(file:///android_asset/www/index.html)

    01-16 01:24:04.816 1790-1790/com.google.android.googlequicksearchbox W/IInputConnectionWrapper: showStatusIcon on inactive InputConnection

    01-16 01:24:04.826 1508-1532/system_process I/ActivityManager: Displayed com.ekdu.trapbeats/.MainActivity: +3s484ms

    01-16 01:24:04.841 1141-1560/? D/gralloc_ranchu: gralloc_alloc: Creating ashmem region of size 12582912

    01-16 01:24:04.928 3167-3209/com.ekdu.trapbeats D/EGL_emulation: eglMakeCurrent: 0xa242e940: ver 2 0

    01-16 01:24:04.941 1508-1532/system_process I/WindowManager: Screen frozen for +3s540ms due to Window{11161ef5 u0 com.ekdu.trapbeats/com.ekdu.trapbeats.MainActivity}

    01-16 01:24:05.048 3167-3209/com.ekdu.trapbeats D/EGL_emulation: eglMakeCurrent: 0xa242e940: ver 2 0

    01-16 01:24:05.049 3167-3167/com.ekdu.trapbeats D/JsMessageQueue: Set native->JS mode to EvalBridgeMode

    01-16 01:24:05.138 3167-3209/com.ekdu.trapbeats D/EGL_emulation: eglMakeCurrent: 0xa242e940: ver 2 0

    01-16 01:24:05.155 3167-3209/com.ekdu.trapbeats D/EGL_emulation: eglMakeCurrent: 0xa242e940: ver 2 0

    01-16 01:24:05.156 3167-3167/com.ekdu.trapbeats D/SystemWebChromeClient: file:///android_asset/www/c2runtime.js: Line 21962 : Uncaught SyntaxError: In strict mode code, functions can only be declared at top level or immediately within another function.

    01-16 01:24:05.157 3167-3167/com.ekdu.trapbeats I/chromium: [INFO:CONSOLE(21962)] "Uncaught SyntaxError: In strict mode code, functions can only be declared at top level or immediately within another function.", source: file:///android_asset/www/c2runtime.js (21962)

    01-16 01:24:05.177 3167-3167/com.ekdu.trapbeats D/SystemWebChromeClient: file:///android_asset/www/start.js: Line 7 : Uncaught TypeError: undefined is not a function

    01-16 01:24:05.177 3167-3167/com.ekdu.trapbeats I/chromium: [INFO:CONSOLE(7)] "Uncaught TypeError: undefined is not a function", source: file:///android_asset/www/start.js (7)

    01-16 01:24:05.178 3167-3167/com.ekdu.trapbeats D/CordovaWebViewImpl: onPageFinished(file:///android_asset/www/index.html)

    01-16 01:24:05.216 3167-3209/com.ekdu.trapbeats D/EGL_emulation: eglMakeCurrent: 0xa242e940: ver 2 0

    01-16 01:24:05.230 3167-3209/com.ekdu.trapbeats D/EGL_emulation: eglMakeCurrent: 0xa242e940: ver 2 0

    01-16 01:24:05.911 3167-3209/com.ekdu.trapbeats D/EGL_emulation: eglMakeCurrent: 0xa242e940: ver 2 0

    01-16 01:24:06.017 3167-3209/com.ekdu.trapbeats D/EGL_emulation: eglMakeCurrent: 0xa242e940: ver 2 0

    01-16 01:24:06.109 3167-3209/com.ekdu.trapbeats D/EGL_emulation: eglMakeCurrent: 0xa242e940: ver 2 0

    01-16 01:24:06.161 3167-3209/com.ekdu.trapbeats D/EGL_emulation: eglMakeCurrent: 0xa242e940: ver 2 0

    01-16 01:24:06.226 3167-3209/com.ekdu.trapbeats D/EGL_emulation: eglMakeCurrent: 0xa242e940: ver 2 0

    01-16 01:24:06.293 3167-3209/com.ekdu.trapbeats D/EGL_emulation: eglMakeCurrent: 0xa242e940: ver 2 0

    01-16 01:24:06.383 3167-3209/com.ekdu.trapbeats D/EGL_emulation: eglMakeCurrent: 0xa242e940: ver 2 0

    01-16 01:24:06.458 3167-3209/com.ekdu.trapbeats D/EGL_emulation: eglMakeCurrent: 0xa242e940: ver 2 0

    01-16 01:24:07.012 1508-1532/system_process I/art: Explicit concurrent mark sweep GC freed 27433(1407KB) AllocSpace objects, 9(190KB) LOS objects, 32% free, 8MB/12MB, paused 1.468ms total 62.637ms

    01-16 01:25:00.029 1613-2057/com.android.systemui D/EGL_emulation: eglMakeCurrent: 0xa3452220: ver 2 0

    01-16 01:30:01.025 3222-3222/? E/libprocessgroup: failed to make and chown /acct/uid_10022: Read-only file system

    01-16 01:30:01.025 3222-3222/? W/Zygote: createProcessGroup failed, kernel missing CONFIG_CGROUP_CPUACCT?

    01-16 01:30:01.027 1508-1527/system_process I/ActivityManager: Start proc 3222:com.android.deskclock/u0a22 for broadcast com.android.deskclock/com.android.alarmclock.DigitalAppWidgetProvider

    01-16 01:30:01.099 1508-1931/system_process I/ActivityManager: Killing 2163:com.google.android.apps.maps/u0a36 (adj 15): empty #17

    01-16 01:30:01.100 1508-1931/system_process W/libprocessgroup: failed to open /acct/uid_10036/pid_2163/cgroup.procs: No such file or directory

  • Hope this might help Rasputin

    Steps to build and install a release APK in C3 with Mobile Advert , and without Android studio

    I have got the banner, interstitial, and rewarded videos to work, with this method below.

    Test OS, Windows 10 64 bit

    Choose export >-android 6.0+

    I did not minify.

    Then I chose >-unsigned release build.

    Sign your APK, with a .Keystore file

    Use an existing .Keystore or make a new one, with appropriate software e.g https://shatter-box.com/knowledgebase/a ... pk-signer/

    Download Java, if it is not already installed i have java jdk 1.8.0_131 installed.

    Download your apk, and put it in Program files>Java Bin directory

    I signed with jarsigner from the Program files>Java Bin directory, also I made sure that I had my .Keystore file and my C3 APK in the same directory, to save any lengthy file pathnames.

    When in the Java Bin Directory hold down SHIFT & Right Click your mouse and choose Open powershell window .

    Use this Command at the prompt>

    Replacing below with your the details from your .Keystore file , where appropriate.

    .\jarsigner -verbose -keystore yourkeystorefilenamehere.keystore -storepass yourstorepasshere -keypass yourkeypasshere yourAPKhere.apk yourALIAShere

    Then Align your APK

    Then the only way I could Align it was from a program called apk-signer, found here https://shatter-box.com/knowledgebase/a ... pk-signer/

    Then I sent the signed and aligned file to my mobile phone, by gmail attachment, you must enable developer mode, and enable download from unkown sources.

    You should now be prompted to install.

    Following these steps seemed to work for me, without the need of Android Studio.

    Hope this helps

    Cheers

  • I would like to try but the build server is down. As soon as I can I will try your method.

    Really apreciate your advice. Thanks !

  • I’d been trying to get MobileAdvert object working in my C3 app and PhoneGap for about 4 weeks - looking for help anywhere and everywhere online.

    I gave up in the end and have just bought the UltimateAds plugin. (https://www.scirra.com/store/construct2 ... e-ads-3549)

    It works fine straight out of the box and the small cash outlay was well worth losing the hassle of trying to get mobile Advert working.

  • I can no believe it!. After more that one month trying to show ads on my app I have achieve it.

    Thanks for point me in the good direction.

    First I tryed your method, but I got a problem with the jarsigner.

    So what I did was next:

    1.Export with minify script unchecked to Unsigned Release APK with minimun version 5.0

    2.Copy the generated APK to the folder where you have installed "apksigner.bat"----> android studio>sdk<build-tools<27.0.3 (this is my last version installed, also you dont need to have installed Android Studio but you will need the build-tools, in this case apksigner.bat)

    3.Open cmd and go to this folder and execute:

    apksigner sign --ks (the name of your certificate file, it could be .jks or .keystore, both of them works in this command).jks --out (choose a name for your signed apk).apk (the current name of your apk file).apk

    You have to introduce your 2 pass and in less than 10 seconds a signed APK is generated on the same folder.

    This works for me and hope works for you. <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

    ---------------------------------------------------------------------------------------------------------------------------------------------------------------

    Another useful thing that I have learned today (if you have Android Studio is going to be useful):

    Sometimes when I have my APK I want to test in my device. So I upload to dropbox and from there I download to my device. But sometimes I get a message when I trying to install :"Unable to install the apk file" (even with the developer mode on in the device and deleting previus versions of the app).

    So, there is a command that makes very easy and fast to install the apk on your device:

    1.Enable developer mode on your phone

    2.Go to androidstudio<sdk<platform-tools and execute adb devices to check if your device is connected. You will get a device number here.

    3.Copy your signed apk to this folder.

    4.Execute adb -s (your device number) install (the name of your signed apk).apk

    In less than 10 secons your apk is intalled on your device. <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

    If you want to try my succesful App with Ads you can click on:

    https://play.google.com/store/apps/deta ... .trapbeats

  • I can no believe it!. After more that one month trying to show ads on my app I have achieve it.

    Thanks for point me in the good direction.

    First I tryed your method, but I got a problem with the jarsigner.

    So what I did was next:

    1.Export with minify script unchecked to Unsigned Release APK with minimun version 5.0

    2.Copy the generated APK to the folder where you have installed "apksigner.bat"----> android studio>sdk<build-tools<27.0.3 (this is my last version installed, also you dont need to have installed Android Studio but you will need the build-tools, in this case apksigner.bat)

    3.Open cmd and go to this folder and execute:

    apksigner sign --ks (the name of your certificate file, it could be .jks or .keystore, both of them works in this command).jks --out (choose a name for your signed apk).apk (the current name of your apk file).apk

    You have to introduce your 2 pass and in less than 10 seconds a signed APK is generated on the same folder.

    This works for me and hope works for you. <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile" />

    ---------------------------------------------------------------------------------------------------------------------------------------------------------------

    Another useful thing that I have learned today (if you have Android Studio is going to be useful):

    Sometimes when I have my APK I want to test in my device. So I upload to dropbox and from there I download to my device. But sometimes I get a message when I trying to install :"Unable to install the apk file" (even with the developer mode on in the device and deleting previus versions of the app).

    So, there is a command that makes very easy and fast to install the apk on your device:

    1.Enable developer mode on your phone

    2.Go to androidstudio<sdk<platform-tools and execute adb devices to check if your device is connected. You will get a device number here.

    3.Copy your signed apk to this folder.

    4.Execute adb -s (your device number) install (the name of your signed apk).apk

    In less than 10 secons your apk is intalled on your device. <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile" />

    If you want to try my succesful App with Ads you can click on:

    https://play.google.com/store/apps/deta ... .trapbeats

    Amazing <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile" /> ...I will try your idea

    can i know what is version of C3 you used !!

  • I can no believe it!. After more that one month trying to show ads on my app I have achieve it.

    Thanks for point me in the good direction.

    First I tryed your method, but I got a problem with the jarsigner.

    So what I did was next:

    1.Export with minify script unchecked to Unsigned Release APK with minimun version 5.0

    2.Copy the generated APK to the folder where you have installed "apksigner.bat"----> android studio>sdk<build-tools<27.0.3 (this is my last version installed, also you dont need to have installed Android Studio but you will need the build-tools, in this case apksigner.bat)

    3.Open cmd and go to this folder and execute:

    apksigner sign --ks (the name of your certificate file, it could be .jks or .keystore, both of them works in this command).jks --out (choose a name for your signed apk).apk (the current name of your apk file).apk

    You have to introduce your 2 pass and in less than 10 seconds a signed APK is generated on the same folder.

    This works for me and hope works for you. <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile" />

    ---------------------------------------------------------------------------------------------------------------------------------------------------------------

    Another useful thing that I have learned today (if you have Android Studio is going to be useful):

    Sometimes when I have my APK I want to test in my device. So I upload to dropbox and from there I download to my device. But sometimes I get a message when I trying to install :"Unable to install the apk file" (even with the developer mode on in the device and deleting previus versions of the app).

    So, there is a command that makes very easy and fast to install the apk on your device:

    1.Enable developer mode on your phone

    2.Go to androidstudio<sdk<platform-tools and execute adb devices to check if your device is connected. You will get a device number here.

    3.Copy your signed apk to this folder.

    4.Execute adb -s (your device number) install (the name of your signed apk).apk

    In less than 10 secons your apk is intalled on your device. <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile" />

    If you want to try my succesful App with Ads you can click on:

    https://play.google.com/store/apps/deta ... .trapbeats

    Hi again i try use r73 but i get again black screen and i follow all your steps <img src="{SMILIES_PATH}/icon_e_sad.gif" alt=":(" title="Sad" /> and i signed the apk with cmd but when i try i get black screen

    can i know the version you used or can you please share capx with me how i can write correctly in C3

  • nexusgames It should work no matters with version of C3 you are using. And the Black Screen is not for your events.

    Don´t you get any error messague on cmd?

    For me is working perfect, the only different is now I upgrade windows, so with the new cmd (powershell) I have to add .\ at the beggining of the 2 commands that I wrote on the post.

  • nexusgames It should work no matters with version of C3 you are using. And the Black Screen is not for your events.

    Don´t you get any error messague on cmd?

    For me is working perfect, the only different is now I upgrade windows, so with the new cmd (powershell) I have to add .\ at the beggining of the 2 commands that I wrote on the post.

    Yes i follow your steps and i aligned and sign my app. but i still get black screen ..Can you share with me screenshot how you write your lines in event to show admob. Thank You

  • nexusgames

    I repeat, I dont do nothing especial on events, and I think this is not related with your blackscreen. Anyway I do as this:

    -On start of layout:

    ---->Create interstitial. Show:false

    ---->Create banner. Show:false

    And when you want to show the add:

    ---->on banner ready. Show banner add

    ---->on interstitial ready. Show insterstitial add

    -----------------------------------------------------------

    Which version of android build-tools are you using? (Mine is 27.0.3)

    Are you getting any error messague on cmd when you run apksigner?

    Have you set your system variable JAVA_HOME?

    ---------------------------------------------------------

    Many users are using "Ultimate Ads" plugin. This could be another option for you

  • nexusgames

    I repeat, I dont do nothing especial on events, and I think this is not related with your blackscreen. Anyway I do as this:

    -On start of layout:

    ---->Create interstitial. Show:false

    ---->Create banner. Show:false

    And when you want to show the add:

    ---->on banner ready. Show banner add

    ---->on interstitial ready. Show insterstitial add

    -----------------------------------------------------------

    Which version of android build-tools are you using? (Mine is 27.0.3)

    Are you getting any error messague on cmd when you run apksigner?

    Have you set your system variable JAVA_HOME?

    ---------------------------------------------------------

    Many users are using "Ultimate Ads" plugin. This could be another option for you

    Okey... Look i'm using build tool 26.0.5

    i don't get any issue in cmd and everything work fine with it

    Also i try create keystore in Android Studio directly and sometimes create in Unity3D.com engine because i'm also C# programmer

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)