Closed MeteoryWeb closed 4 years ago
With ti.playservice v. 16.0+ my app crashing and appear the error on the attached image.
Hi @MeteoryWeb have you tried using specifically Play Services 6.1.3? That is the version I am using on my projects right now. I am using module version 5.1.2 and Play Services 6.1.3.
Could you please test it and let me know.
With ti.playservice v. 16.0+ my app crashing and appear the error on the attached image.
Hi @MeteoryWeb have you tried using specifically Play Services 6.1.3? That is the version I am using on my projects right now. I am using module version 5.1.2 and Play Services 6.1.3.
Could you please test it and let me know.
Hi deckameron. Thanks for your response.
The error persist also with Play Service 16.1.3.
In addition I would say that the error is present also in emulator.
I reduce the code and isolate the problem and I found that the line that fires the error is $.index.add(bannerAd);
where bannerAd is:
var bannerAd = Alloy.Globals.Admob.module.createView({ top: 0, adSizeType: 'BANNER', publisherId: 'xxxxxxxxxxx/yyyyyy', testing: true });
like the example of this module. I have try even with:
var admob = require("ti.android.admob"); var bannerAd = this.module.createView({ extras : { 'npa' : '1' }, viewType : admob .TYPE_ADS, adSizeType: admob .BANNER, testDeviceId : '3C7DEA1F8B801F773EC10E36A7909ABF', adUnitId: 'ca-app-pub-3940256099942544/6300978111', });
but the error persist.
Hi @MeteoryWeb!
Could you please add these lines to you application tag inside your android manifest tag on Tiapp.xml
<meta-data android:name="com.google.android.gms.ads.AD_MANAGER_APP" android:value="true"/>
And also download and test this project on your machine.
Hi @MeteoryWeb!
Could you please add these lines to you application tag inside your android manifest tag on Tiapp.xml
<meta-data android:name="com.google.android.gms.ads.AD_MANAGER_APP" android:value="true"/>
And also download and test this project on your machine.
Hi @deckameron , I added this line in my tiapp.xml inside the manifest tag but the info message always appears. I don't have the permissions for download the file you have uploaded.
I am sorry for blocked link. Try this one please.
I am sorry for blocked link. Try this one please.
I installed your test app on my device.
compiling seems good but on launch this runtime error appears:
[ERROR] : TiExceptionHandler: (main) [44,92] Failed resolution of: Lcom/google/android/gms/ads/reward/RewardedVideoAdListener; [ERROR] : TiExceptionHandler: [ERROR] : TiExceptionHandler: dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:134) [ERROR] : TiExceptionHandler: java.lang.ClassLoader.loadClass(ClassLoader.java:379) [ERROR] : TiExceptionHandler: java.lang.ClassLoader.loadClass(ClassLoader.java:312) [ERROR] : TiExceptionHandler: java.lang.Class.newInstance(Native Method) [ERROR] : TiExceptionHandler: org.appcelerator.kroll.KrollProxy.createProxy(KrollProxy.java:136) [ERROR] : TiExceptionHandler: org.appcelerator.kroll.runtime.v8.V8Runtime.nativeRunModule(Native Method) [ERROR] : TiExceptionHandler: org.appcelerator.kroll.runtime.v8.V8Runtime.doRunModule(V8Runtime.java:168) [ERROR] : TiExceptionHandler: org.appcelerator.kroll.KrollRuntime.runModule(KrollRuntime.java:225) [ERROR] : TiExceptionHandler: org.appcelerator.titanium.TiLaunchActivity.loadScript(TiLaunchActivity.java:107) [ERROR] : TiExceptionHandler: org.appcelerator.titanium.TiRootActivity.loadScript(TiRootActivity.java:480) [ERROR] : TiExceptionHandler: org.appcelerator.titanium.TiLaunchActivity.onResume(TiLaunchActivity.java:192) [ERROR] : TiExceptionHandler: org.appcelerator.titanium.TiRootActivity.onResume(TiRootActivity.java:499) [ERROR] : TiExceptionHandler: android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1456) [ERROR] : TiExceptionHandler: android.app.Activity.performResume(Activity.java:7614) [ERROR] : TiExceptionHandler: android.app.ActivityThread.performResumeActivity(ActivityThread.java:4412) [ERROR] : TiExceptionHandler: android.app.ActivityThread.handleResumeActivity(ActivityThread.java:4470) [ERROR] : TiExceptionHandler: android.app.servertransaction.ResumeActivityItem.execute(ResumeActivityItem.java:51) [ERROR] : TiExceptionHandler: android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:145) [ERROR] : TiExceptionHandler: android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:70) [ERROR] : TiExceptionHandler: android.app.ActivityThread$H.handleMessage(ActivityThread.java:2199) [ERROR] : TiExceptionHandler: android.os.Handler.dispatchMessage(Handler.java:112) [ERROR] : TiExceptionHandler: android.os.Looper.loop(Looper.java:216) [ERROR] : TiExceptionHandler: android.app.ActivityThread.main(ActivityThread.java:7625) [ERROR] : TiExceptionHandler: java.lang.reflect.Method.invoke(Native Method) [ERROR] : TiExceptionHandler: com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:524) [ERROR] : TiExceptionHandler: com.android.internal.os.ZygoteInit.main(ZygoteInit.java:987)
Hi @MeteoryWeb,
Try this:
Hi @MeteoryWeb,
Try this:
* Download [PlayServices Ads Lite](https://maven.google.com/com/google/android/gms/play-services-ads-lite/17.2.0/play-services-ads-lite-17.2.0.aar) * Place it in the lib folder of the module along side with the Consent Library OR place it on the lib folder of the 16.1.3 Play Services module.
I have download PlayServices Ads Lite. First I've put it in lib folder of the module. I have try to run the app with these PlayService versions:
With PlayService v16.1.3, the app closes instantly after launch.
With PlayService v16.1.4, the app closes instantly after launch.
With PlayService v16.1.5
[ERROR] : Failed to run dexer: [ERROR] : [ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/internal/ads/zzdag; [ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/internal/ads/zzdah; [ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/internal/ads/zzdai; [ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/internal/ads/zzdaj; [ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/internal/ads/zzdbg; [ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/internal/ads/zzdbh; [ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/internal/ads/zzyk; [ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/internal/ads/zzyl; [ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/internal/ads/zzym; [ERROR] : [ERROR] : UNEXPECTED TOP-LEVEL EXCEPTION: [ERROR] : java.lang.RuntimeException: Translation has been interrupted [ERROR] : at com.android.dx.command.dexer.Main.processAllFiles(Main.java:614) [ERROR] : at com.android.dx.command.dexer.Main.runMultiDex(Main.java:365) [ERROR] : at com.android.dx.command.dexer.Main.runDx(Main.java:286) [ERROR] : at com.android.dx.command.dexer.Main.main(Main.java:244) [ERROR] : at com.android.dx.command.Main.main(Main.java:95) [ERROR] : Caused by: java.lang.InterruptedException: Too many errors [ERROR] : at com.android.dx.command.dexer.Main.processAllFiles(Main.java:606) [ERROR] : ... 4 more [ERROR] Application Installer abnormal process termination. Process exit value was 1
With PlayService v11.0.40
[ERROR] : An error occurred during build after 3s 233ms [ERROR] : Conflicting Android Libraries with package name "com.google.android.gms.ads" detected: [ERROR] : C:\ProgramData\Titanium\modules\android\ti.playservices\11.0.40\lib\play-services-ads-lite-11.0.4.aar (hash: be00a88406e914117cf52f7e4faeb73cca134ac5, origin: Module) [ERROR] : D:\Appcelerator_Studio_Workspace\MyAppName\modules\android\ti.android.admob\5.1.2\lib\play-services-ads-lite-17.2.0.aar (hash: 7be8df41efe425c355a318c08243a9ef16973166, origin: Module) [ERROR] : [ERROR] : Please either select a version of these modules where the conflicting .aar file is the same or you can try removing the .aar file from one module's "lib" folder. [ERROR] Application Installer abnormal process termination. Process exit value was 1
I have also try to put PlayServices Ads Lite in the path described of your screen but the app instantly closes after launch.
I dont know what can be.
With ti.playservice v. 16.0+ my app crashing and appear the error on the attached image.
With ti.playservice v. 11.0.40, my app not crashing but in console as [INFO] appears this:
At the moment I use ti.playservice v. 11.0.40 but I would like use last version and resolving this problem. My device is Huawei Honor View 20.