nexusgames's Recent Forum Activity

  • Hello,

    I'm so sorry... it was my fault because i don't noticed that i added " C3 Admob plugin " inside my project and this caused the error. Now everything work perfect.

    Thank You

  • Hello Again,

    Last time everything work perfect when try export then build with phonegap apk file... But this time i get error ..

    This is what i did :

    • choose " Minify Script "
    • Choose Cordova
    • Added the line in my project xml file

    <plugin name="cocoon-plugin-ads-android-admob" />

    Build Date: 2018-03-04 21:13:00 +0000

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

    PLUGIN OUTPUT

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

    Fetching plugin "cordova-plugin-inappbrowser" via npm

    Installing "cordova-plugin-inappbrowser" at "2.0.2" for android

    Fetching plugin "construct-mobile-advert@1.0.17" via npm

    Installing "construct-mobile-advert" at "1.0.17" for android

    Subproject Path: CordovaLib

    Fetching plugin "cordova-plugin-whitelist" via npm

    Installing "cordova-plugin-whitelist" at "1.3.3" for android

    This plugin is only applicable for versions of cordova-android greater than 4.0. If you have a previous platform version, you do *not* need this plugin since the whitelist will be built in.

    Fetching plugin "cocoon-plugin-ads-android-admob" via npm

    Installing "cocoon-plugin-ads-android-admob" at "1.0.11" for android

    Fetching plugin "cocoon-plugin-ads-android-common" via npm

    Installing "cocoon-plugin-ads-android-common" at "1.0.4" for android

    Fetching plugin "cocoon-plugin-ads-common" via npm

    Installing "cocoon-plugin-ads-common" at "1.0.3" for android

    Fetching plugin "cocoon-plugin-common" via npm

    Installing "cocoon-plugin-common" at "1.0.2" for android

    Subproject Path: CordovaLib

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

    COMPILE OUTPUT

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

    Subproject Path: CordovaLib

    Running command: /project/gradlew cdvBuildDebug -b /project/build.gradle -Dorg.gradle.daemon=true -Dorg.gradle.jvmargs=-Xmx2048m -Pandroid.useDeprecatedNdk=true

    The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.

    at build_a011ug76ipt3a39rdo20rcwem.run(/project/build.gradle:137)

    The JavaCompile.setDependencyCacheDir() method has been deprecated and is scheduled to be removed in Gradle 4.0.

    Incremental java compilation is an incubating feature.

    The TaskInputs.source(Object) method has been deprecated and is scheduled to be removed in Gradle 4.0. Please use TaskInputs.file(Object).skipWhenEmpty() instead.

    The ProjectDependency.getProjectConfiguration() method has been deprecated and is scheduled to be removed in Gradle 4.0.

    ModuleDependency.getConfiguration() has been deprecated and is scheduled to be removed in Gradle 4.0. Use ModuleDependency.getTargetConfiguration() instead.

    FAILURE: Build failed with an exception.

    * What went wrong:

    A problem occurred configuring root project 'project'.

    Could not resolve all dependencies for configuration ':_debugApkCopy'.

    > Could not find com.google.android.gms:play-services-ads:11.2.0.

    Required by:

    project :

    > Could not find com.google.android.gms:play-services-ads:11.2.0.

    Required by:

    project :

    * Try:

    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

    BUILD FAILED

    Total time: 1.447 secs

    Command finished with error code 1: /project/gradlew cdvBuildDebug,-b,/project/build.gradle,-Dorg.gradle.daemon=true,-Dorg.gradle.jvmargs=-Xmx2048m,-Pandroid.useDeprecatedNdk=true

    Error: /project/gradlew: Command failed with exit code 1 Error output:

    FAILURE: Build failed with an exception.

    * What went wrong:

    A problem occurred configuring root project 'project'.

    Could not resolve all dependencies for configuration ':_debugApkCopy'.

    > Could not find com.google.android.gms:play-services-ads:11.2.0.

    Required by:

    project :

    > Could not find com.google.android.gms:play-services-ads:11.2.0.

    Required by:

    project :

    * Try:

    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

    at ChildProcess.whenDone (/project/cordova/node_modules/cordova-common/src/superspawn.js:169:23)

    at emitTwo (events.js:106:13)

    at ChildProcess.emit (events.js:191:7)

    at maybeClose (internal/child_process.js:877:16)

    at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)

  • Hello,

    Thank so much ads work perfect

  • Hello,

    I'm trying disbale " Relace Effect " but i don't know why it doesn"t work .I need help !

  • 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

  • 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

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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

  • 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 !!

  • Hello,

    I get the same issue any solutions Ashley zenox98

    Thanks

  • SiddiqTech

    Hi can you tell me how you add " Share Button" in your C3 project... Please show me screenshot or write for me the lines

nexusgames's avatar

nexusgames

Member since 29 Dec, 2017

None one is following nexusgames yet!

Trophy Case

  • 6-Year Club

Progress

6/44
How to earn trophies