Screen freezes when using Record Espresso - android

I've been trying to use record espresso for a few hours now, but I just can't make it work on the project.
I've added:
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
And I press run Record Espresso Test, and the screen just freezes at the first screen. It doesn't finish the activity, because it is a Splash screen. Even if I set another screen as a first activity it just freezes, it makes a request but doesn't show any results, or changes screen. I have animations turned off.
03/18 08:29:20: Launching TestRecorderapp
$ adb push C:\ProjectsGit\somelink\app\build\outputs\apk\debug\app-debug.apk /data/local/tmp/com.company.someapp.debug
$ adb shell pm install -t -r "/data/local/tmp/com.company.someapp.debug"
Success
APK installed in 1 s 593 ms
$ adb shell pm clear com.company.someapp.debug
$ adb shell am start -n "com.company.someapp.debug/com.company.someapp.views.activities.SplashActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -D
Waiting for application to come online: com.company.someapp.debug | com.company.someapp.debug.test
Waiting for application to come online: com.company.someapp.debug | com.company.someapp.debug.test
Connecting to com.company.someapp.debug
Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page.
I/tcar.someapp.debu: The ClassLoaderContext is a special shared library.
W/ActivityThread: Application com.company.someapp.debug is waiting for the debugger on port 8100...
I/System.out: Sending WAIT chunk
I/System.out: Debugger has connected
waiting for debugger to settle...
Connected to the target VM, address: 'localhost:8602', transport: 'socket'
I/System.out: waiting for debugger to settle...
I/chatty: uid=10222(com.company.someapp.debug) identical 5 lines
I/System.out: waiting for debugger to settle...
I/System.out: debugger has settled (1385)
I/tcar.someapp.debu: The ClassLoaderContext is a special shared library.
I/Perf: Connecting to perf service.
I/MultiDex: VM with version 2.1.0 has multidex support
Installing application
VM has multidex support, MultiDex support library is disabled.
V/FA: Registered activity lifecycle callback
D/FirebaseApp: com.google.firebase.auth.FirebaseAuth is not linked. Skipping initialization.
D/FirebaseApp: com.google.firebase.crash.FirebaseCrash is not linked. Skipping initialization.
I/FirebaseInitProvider: FirebaseApp initialization successful
V/Font: Change font:2
W/zze: Application name is not set. Call Builder#setApplicationName.
V/FA: Collection enabled
V/FA: App package, google app id: com.company.someapp.debug, 1:820332358974:android:deb7661ca6fda492
I/FA: App measurement is starting up, version: 14711
To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
I/FA: To enable faster debug mode event logging run:
adb shell setprop debug.firebase.analytics.app com.company.someapp.debug
D/FA: Debug-level message logging enabled
V/FA: Persisting first open: 1552894248164
I/CrashlyticsCore: Initializing Crashlytics 2.6.7.30
V/FA: Updating deferred analytics collection: false
W/com.company.someapp.debug: type=1400 audit(0.0:5835047): avc: denied { read } for comm=45474C20496E6974 name="u:object_r:vendor_default_prop:s0" dev="tmpfs" ino=23336 scontext=u:r:untrusted_app:s0:c222,c256,c512,c768 tcontext=u:object_r:vendor_default_prop:s0 tclass=file permissive=0
E/libc: Access denied finding property "vendor.debug.egl.profiler"
E/libc: Access denied finding property "vendor.debug.prerotation.disable"
V/FA: Checking service availability
V/FA: onActivityCreated
V/FA: Service available
Setting useService: true
V/FA: Connecting to remote service
V/FA: Connection attempt already in progress
D/NetworkSecurityConfig: No Network Security Config specified, using platform default
W/tcar.someapp.debu: Accessing hidden method Ldalvik/system/CloseGuard;->get()Ldalvik/system/CloseGuard; (light greylist, reflection)
Accessing hidden method Ldalvik/system/CloseGuard;->open(Ljava/lang/String;)V (light greylist, reflection)
Accessing hidden method Ldalvik/system/CloseGuard;->warnIfOpen()V (light greylist, reflection)
W/ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy#6a839d6
V/FA: onActivityCreated
W/tcar.someapp.debu: Accessing hidden field Landroid/view/LayoutInflater;->mConstructorArgs:[Ljava/lang/Object; (light greylist, reflection)
W/tcar.someapp.debu: Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (light greylist, reflection)
W/tcar.someapp.debu: Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (light greylist, reflection)
I/FloatingActionButton: Setting a custom background is not supported.
I/chatty: uid=10222(com.company.someapp.debug) identical 1 line
I/FloatingActionButton: Setting a custom background is not supported.
W/tcar.someapp.debu: Accessing hidden field Lsun/misc/Unsafe;->theUnsafe:Lsun/misc/Unsafe; (light greylist, reflection)
D/OkHttp: --> GET https://api.somelink.com/api/settings
Accept-Language: en
x-client-type: android
x-api-version: 4.1.0
--> END GET
W/tcar.someapp.debu: Accessing hidden method Lcom/android/org/conscrypt/OpenSSLSocketImpl;->setAlpnProtocols([B)V (light greylist, reflection)
D/OkHttp: --> GET https://api.somelink.com/
D/OkHttp: Accept-Language: en
x-client-type: android
x-api-version: 4.1.0
--> END GET
W/MixpanelAPI.RsrcReader: Can't load names for Android view ids from 'com.company.someapp.debug.R$id', ids by name will not be available in the events editor.
W/MixpanelAPI.ConfigurationChecker: You can't have more than one service handling "com.google.firebase.MESSAGING_EVENT" intent filter. Android will only use the first one that is declared on your AndroidManifest.xml. If you have more than one push provider you need to crate your own FirebaseMessagingService class.
I/DpmTcmClient: RegisterTcmMonitor from: com.android.okhttp.TcmIdleTimerMonitor
W/tcar.someapp.debu: Accessing hidden method Lcom/android/org/conscrypt/OpenSSLSocketImpl;->getAlpnSelectedProtocol()[B (light greylist, reflection)
I/FA: Tag Manager is not found and thus will not be used
D/OkHttp: <-- 401 Unauthorized https://api.somelink.com(392ms)
Date: Mon, 18 Mar 2019 07:30:46 GMT
Content-Type: text/plain; charset=UTF-8
Transfer-Encoding: chunked
Connection: keep-alive
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET,POST,PUT,DELETE,PATCH,OPTIONS
D/OkHttp: Access-Control-Allow-Headers: content-type,x-requested-with,authorization, accept, accept-language,x-client-type,x-client-build,x-api-version
Access-Control-Max-Age: 86400
Access-Control-Allow-Credentials: true
Vary: Origin
X-Request-ID: d7775f53-3ec9-4dae-ad96-0789e672ece9
X-Kong-Upstream-Latency: 29
X-Kong-Proxy-Latency: 0
Via: kong/0.9.8
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
D/OkHttp: Unauthorized
D/OkHttp: <-- END HTTP (12-byte body)
D/FA: Logging event (FE): screen_view(_vs), Bundle[{firebase_event_origin(_o)=auto, firebase_screen_class(_sc)=ACCarSharingDrawerActivity, firebase_screen_id(_si)=2030554288779527060}]
E/SensorManager: registerListenerImpl sensorName:lsm6ds3c Accelerometer Non-wakeup,isWakeUpSensor:false,callingApp: com.company.someapp.debug,callingPid:7032,callingUid:10222
D/OkHttp: <-- 200 OK https://LINK.TO.API (545ms)
Date: Mon, 18 Mar 2019 07:30:46 GMT
Content-Type: application/json; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
Access-Control-Allow-Origin: *
D/OkHttp: Access-Control-Allow-Methods: GET,POST,PUT,DELETE,PATCH,OPTIONS
Access-Control-Allow-Headers: content-type,x-requested-with,authorization, accept, accept-language,x-client-type,x-client-build,x-api-version
Access-Control-Max-Age: 86400
Access-Control-Allow-Credentials: true
ETag: "4e4-7xR+HT/mxMa+pp02AdQTyyq5xFM"
Vary: Origin
D/OkHttp: X-Request-ID: ae38af60-0eab-45a0-a63b-0a1ae4a8bc18
X-Kong-Upstream-Latency: 57
X-Kong-Proxy-Latency: 0
Via: kong/0.9.8
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
D/OkHttp: {"Some response"}
<-- END HTTP (1252-byte body)
V/FA: Connection attempt already in progress
V/FA: Connection attempt already in progress
V/FA: Activity resumed, time: 2325227289
D/OkHttp: --> GET https://link.to.api
D/OkHttp: Accept-Language: en
x-client-type: android
x-api-version: 4.1.0
--> END GET
D/OpenGLRenderer: Skia GL Pipeline
I/Choreographer: Skipped 61 frames! The application may be doing too much work on its main thread.
D/OkHttp: <-- 401 Unauthorized https://api.somelink.com/api(143ms)
Date: Mon, 18 Mar 2019 07:30:46 GMT
Content-Type: text/plain; charset=UTF-8
Transfer-Encoding: chunked
Connection: keep-alive
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET,POST,PUT,DELETE,PATCH,OPTIONS
Access-Control-Allow-Headers: content-type,x-requested-with,authorization, accept, accept-language,x-client-type,x-client-build,x-api-version
D/OkHttp: Access-Control-Max-Age: 86400
Access-Control-Allow-Credentials: true
Vary: Origin
X-Request-ID: c0112419-5fde-41b7-b940-c28a002e615a
X-Kong-Upstream-Latency: 77
X-Kong-Proxy-Latency: 0
Via: kong/0.9.8
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
D/OkHttp: Unauthorized
<-- END HTTP (12-byte body)
D/OkHttp: --> GET https://api.somelink.com/api
D/OkHttp: Accept-Language: en
x-client-type: android
x-api-version: 4.1.0
--> END GET
I/zzbz: Making Creator dynamically
D/OkHttp: <-- 200 OK https://api.somelink.com/api/ (138ms)
Date: Mon, 18 Mar 2019 07:30:47 GMT
Content-Type: application/json; charset=utf-8
D/OkHttp: Transfer-Encoding: chunked
Connection: keep-alive
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET,POST,PUT,DELETE,PATCH,OPTIONS
Access-Control-Allow-Headers: content-type,x-requested-with,authorization, accept, accept-language,x-client-type,x-client-build,x-api-version
Access-Control-Max-Age: 86400
Access-Control-Allow-Credentials: true
ETag: "2af9-wj9m57vexbsWcU5m7bfhEuhjvw4"
Vary: Origin
X-Request-ID: 668799cc-788b-43d4-96d7-eb8fd5614fc9
X-Kong-Upstream-Latency: 110
X-Kong-Proxy-Latency: 0
Via: kong/0.9.8
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
D/OkHttp: {CORRECT RESPONSE JSON} <-- END HTTP (11001-byte body)
W/tcar.someapp.debu: Unsupported class loader
W/tcar.someapp.debu: Skipping duplicate class check due to unsupported classloader
I/DynamiteModule: Considering local module com.google.android.gms.maps_dynamite:0 and remote module com.google.android.gms.maps_dynamite:221
Selected remote version of com.google.android.gms.maps_dynamite, version >= 221
V/DynamiteModule: Dynamite loader version >= 2, using loadModule2NoCrashUtils
W/tcar.someapp.debu: Unsupported class loader
W/tcar.someapp.debu: Skipping duplicate class check due to unsupported classloader
I/Google Maps Android API: Google Play services client version: 12451000
I/Google Maps Android API: Google Play services package version: 15090037
W/tcar.someapp.debu: Accessing hidden field Ljava/nio/Buffer;->address:J (light greylist, reflection)
I/Adreno: QUALCOMM build : f909f5a, Ida6448821d
Build Date : 11/12/18
OpenGL ES Shader Compiler Version: EV031.25.03.00
Local Branch :
Remote Branch : refs/tags/AU_LINUX_ANDROID_LA.UM.7.3.R1.08.00.00.423.039
Remote Branch : NONE
Reconstruct Branch : NOTHING
Build Config : S P 6.0.3 AArch64
W/RenderThread: type=1400 audit(0.0:5835049): avc: denied { read } for name="u:object_r:vendor_default_prop:s0" dev="tmpfs" ino=23336 scontext=u:r:untrusted_app:s0:c222,c256,c512,c768 tcontext=u:object_r:vendor_default_prop:s0 tclass=file permissive=0
E/libc: Access denied finding property "vendor.debug.prerotation.disable"
W/RenderThread: type=1400 audit(0.0:5835050): avc: denied { read } for name="u:object_r:vendor_default_prop:s0" dev="tmpfs" ino=23336 scontext=u:r:untrusted_app:s0:c222,c256,c512,c768 tcontext=u:object_r:vendor_default_prop:s0 tclass=file permissive=0
E/libc: Access denied finding property "ro.vendor.graphics.memory"
E/libc: Access denied finding property "vendor.debug.prerotation.disable"
E/libc: Access denied finding property "vendor.debug.prerotation.disable"
W/RenderThread: type=1400 audit(0.0:5835052): avc: denied { search } for name="proc" dev="debugfs" ino=3974 scontext=u:r:untrusted_app:s0:c222,c256,c512,c768 tcontext=u:object_r:qti_debugfs:s0 tclass=dir permissive=0
W/RenderThread: type=1400 audit(0.0:5835053): avc: denied { read } for name="u:object_r:vendor_default_prop:s0" dev="tmpfs" ino=23336 scontext=u:r:untrusted_app:s0:c222,c256,c512,c768 tcontext=u:object_r:vendor_default_prop:s0 tclass=file permissive=0
I/Adreno: PFP: 0x016ee170, ME: 0x00000000
E/libc: Access denied finding property "vendor.debug.prerotation.disable"
I/ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 1
android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
I/OpenGLRenderer: Initialized EGL, version 1.4
D/OpenGLRenderer: Swap behavior 2
E/libc: Access denied finding property "vendor.debug.egl.changepixelformat"
W/RenderThread: type=1400 audit(0.0:5835055): avc: denied { read } for name="u:object_r:vendor_default_prop:s0" dev="tmpfs" ino=23336 scontext=u:r:untrusted_app:s0:c222,c256,c512,c768 tcontext=u:object_r:vendor_default_prop:s0 tclass=file permissive=0
D/FA: Connected to remote service
V/FA: Processing queued up service tasks: 4
I/Choreographer: Skipped 145 frames! The application may be doing too much work on its main thread.
E/libc: Access denied finding property "vendor.debug.egl.changepixelformat"
E/libc: Access denied finding property "vendor.debug.egl.swapinterval"
E/libc: Access denied finding property "vendor.debug.egl.swapinterval"
E/libc: Access denied finding property "vendor.debug.egl.swapinterval"
D/: Successfully load libgui-plugin.so, this=0x76506f70c0
I/OpenGLRenderer: Davey! duration=2828ms; Flags=0, IntendedVsync=910300861918726, Vsync=910303278585296, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=910303285835193, AnimationStart=910303286168422, PerformTraversalsStart=910303290208266, DrawStart=910303309583109, SyncQueued=910303573194464, SyncStart=910303573524516, IssueDrawCommandsStart=910303574379828, SwapBuffers=910303689163213, FrameCompleted=910303691023943, DequeueBufferDuration=3761000, QueueBufferDuration=1051000,
E/SensorManager: unregisterListenerImpl callingApp: com.company.someapp.debug,callingPid:7032,callingUid:10222
V/FA: Recording user engagement, ms: 3449
Disconnected from the target VM, address: 'localhost:8602', transport: 'socket'
This are DEBUG Console logs. I tried it on another project and it was VERY VERY LAGGY. Am I missing something?

I had the same issue on Android Studio 4.1.1 using Pixel 3 API 29.
When the emulator is up, my application becomes stuck in blank screen (before the splashscreen)
Make sure that you had import Espresso dependencies:
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
ps: https://www.thedroidsonroids.com/blog/espresso-test-recording

Related

Why Android Volley library is unable to connect asp.net web api?

I am trying to call asp.net web api from Android Client using Volley library. The .net API is working fine and listening ports are:
http://localhost:5000 and https://localhost:5001 in my local machine.
But,When, I try to run android client keeping the base url as http://10.0.2.2:5000/api/login
I found below error in console->
04/23 23:13:41: Launching 'app' on Nexus 6 API 24.
Install successfully finished in 9 s 435 ms.
$ adb shell am start -n "com.example.tourexpwip/com.example.tourexpwip.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Connected to process 3662 on device 'Nexus_6_API_24 [emulator-5554]'.
Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page.
I/art: Late-enabling -Xcheck:jni
W/art: Unexpected CPU variant for X86 using defaults: x86
W/System: ClassLoader referenced unknown path: /data/app/com.example.tourexpwip-1/lib/x86
W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter androidx.vectordrawable.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
I/System.out: URL: http://10.0.2.2:5000/api/login/
D/NetworkSecurityConfig: No Network Security Config specified, using platform default
D/: HostConnection::get() New Host Connection established 0xa67ec7c0, tid 3662
E/Volley: [210] NetworkUtility.shouldRetryException: Unexpected response code 307 for http://10.0.2.2:5000/api/login/
D/: HostConnection::get() New Host Connection established 0xa67ecac0, tid 3683
I/OpenGLRenderer: Initialized EGL, version 1.4
D/OpenGLRenderer: Swap behavior 1
W/OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without...
D/OpenGLRenderer: Swap behavior 0
D/EGL_emulation: eglCreateContext: 0xb5c05660: maj 2 min 0 rcv 2
D/EGL_emulation: eglMakeCurrent: 0xb5c05660: ver 2 0 (tinfo 0xb5c032b0)
W/System.err: com.android.volley.ServerError
at com.android.volley.toolbox.NetworkUtility.shouldRetryException(NetworkUtility.java:201)
W/System.err: at com.android.volley.toolbox.BasicNetwork.performRequest(BasicNetwork.java:145)
at com.android.volley.NetworkDispatcher.processRequest(NetworkDispatcher.java:132)
W/System.err: at com.android.volley.NetworkDispatcher.processRequest(NetworkDispatcher.java:111)
at com.android.volley.NetworkDispatcher.run(NetworkDispatcher.java:90)
I/Choreographer: Skipped 68 frames! The application may be doing too much work on its main thread.
D/EGL_emulation: eglMakeCurrent: 0xb5c05660: ver 2 0 (tinfo 0xb5c032b0)
I/Choreographer: Skipped 35 frames! The application may be doing too much work on its main thread.
The controller class for login in ASP.NET web api->
namespace TourExpWIP1.Controllers
{
[Route("api/[controller]")]
[ApiController]
public class LoginController : ControllerBase
{
NetCoreAuthenticationContext dbContext = new NetCoreAuthenticationContext();
public string Post([FromBody] TblUser value)
{
if (dbContext.TblUser.Any(user => user.UserName.Equals(value.UserName)))
{
TblUser user = dbContext.TblUser.Where(u => u.UserName.Equals(value.UserName)).First();
var client_post_hash_password = Convert.ToBase64String(
Common.SaltHashPassword(
Encoding.ASCII.GetBytes(value.Password),
Convert.FromBase64String(user.Salt)));
if (client_post_hash_password.Equals(user.Password))
return JsonConvert.SerializeObject(user);
else return JsonConvert.SerializeObject("Wrong Password");
}
else
{
return JsonConvert.SerializeObject("user does not exists in db");
}
}
}
}
Try this
1.In Android Manifiest, in tag application add:
inside tag application add this tag:
<uses-library android:name="org.apache.http.legacy" android:required="false"/>
<application
android:usesCleartextTraffic="true"
android:networkSecurityConfig="#xml/network_security_config"
...
/>
2.With a corresponding network_security_config.xml in app/src/main/res/xml/:
<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
<base-config cleartextTrafficPermitted="true" />
</network-security-config>
More details please find from here- Link

Flutter flutter_native_admob package failing to load add

I'm trying to display my admob ads in my app natively with the flutter_native_admob package but for some reason the test ad never loads.
I get the following errors.
I/ple.XXXXXXXXap( 6263): The ClassLoaderContext is a special shared library.
I/chatty ( 6263): uid=10091(com.example.XXXXXXXXapp) identical 1 line
I/ple.XXXXXXXXap( 6263): The ClassLoaderContext is a special shared library.
I/DynamiteModule( 6263): Considering local module com.google.android.gms.ads.dynamite:0 and remote module com.google.android.gms.ads.dynamite:21400
I/DynamiteModule( 6263): Selected remote version of com.google.android.gms.ads.dynamite, version >= 21400
D/DynamitePackage( 6263): Instantiated singleton DynamitePackage.
D/DynamitePackage( 6263): Instantiating com.google.android.gms.ads.ChimeraAdLoaderBuilderCreatorImpl
D/NetworkSecurityConfig( 6263): No Network Security Config specified, using platform default
I/Ads ( 6263): This request is sent from a test device.
W/ple.XXXXXXXXap( 6263): Accessing hidden field Ljava/nio/Buffer;->address:J (light greylist, reflection)
I/DynamiteModule( 6263): Considering local module com.google.android.gms.ads.dynamite:0 and remote module com.google.android.gms.ads.dynamite:21400
I/DynamiteModule( 6263): Selected remote version of com.google.android.gms.ads.dynamite, version >= 21400
I/ple.XXXXXXXXap( 6263): The ClassLoaderContext is a special shared library.
I/WebViewFactory( 6263): Loading com.android.chrome version 69.0.3497.100 (code 349710067)
I/ple.XXXXXXXXap( 6263): The ClassLoaderContext is a special shared library.
I/ple.XXXXXXXXap( 6263): Background concurrent copying GC freed 32981(5MB) AllocSpace objects, 16(340KB) LOS objects, 49% free, 3MB/6MB, paused 81.243ms total 180.818ms
E/FA ( 6263): GoogleService failed to initialize, status: 10, Missing google app id value from from string resources with name google_app_id.
I/FA ( 6263): App measurement is starting up, version: 18102
I/FA ( 6263): To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
I/FA ( 6263): To enable faster debug mode event logging run:
I/FA ( 6263): adb shell setprop debug.firebase.analytics.app com.example.XXXXXXXXapp
E/FA ( 6263): Missing google_app_id. Firebase Analytics disabled. See https://goo(.)gl/NAOOOI
E/FA ( 6263): Uploading is not possible. App measurement disabled
I/cr_LibraryLoader( 6263): Time to load native libraries: 2 ms (timestamps 6211-6213)
I/chromium( 6263): [INFO:library_loader_hooks.cc(36)] Chromium logging enabled: level = 0, default verbosity = 0
I/cr_LibraryLoader( 6263): Expected native library version number "69.0.3497.100", actual native library version number "69.0.3497.100"
E/cr_VariationsUtils( 6263): Failed reading seed file "/data/user/0/com.example.XXXXXXXXapp/app_webview/variations_seed": /data/user/0/com.example.XXXXXXXXapp/app_webview/variations_seed (No such file or directory)
W/cr_ChildProcLH( 6263): Create a new ChildConnectionAllocator with package name = com.android.chrome, sandboxed = true
I/cr_BrowserStartup( 6263): Initializing chromium process, singleProcess=false
W/ple.XXXXXXXXap( 6263): Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker;-><init>(Landroid/content/Context;I)V (light greylist, reflection)
W/ple.XXXXXXXXap( 6263): Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker;->logEvent(Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;)V (light greylist, reflection)
W/ple.XXXXXXXXap( 6263): Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionStarted(I)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent; (light greylist, reflection)
W/ple.XXXXXXXXap( 6263): Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionModified(II)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent; (light greylist, reflection)
W/ple.XXXXXXXXap( 6263): Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionModified(IILandroid/view/textclassifier/TextClassification;)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent; (light greylist, reflection)
W/ple.XXXXXXXXap( 6263): Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionModified(IILandroid/view/textclassifier/TextSelection;)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent; (light greylist, reflection)
W/ple.XXXXXXXXap( 6263): Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionAction(III)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent; (light greylist, reflection)
W/ple.XXXXXXXXap( 6263): Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionAction(IIILandroid/view/textclassifier/TextClassification;)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent; (light greylist, reflection)
D/ ( 6263): HostConnection::get() New Host Connection established 0x71de949fcf60, tid 6511
W/cr_media( 6263): Requires BLUETOOTH permission
E/chromium( 6263): [ERROR:gl_surface_egl.cc(335)] eglChooseConfig failed with error EGL_SUCCESS
D/EGL_emulation( 6263): eglCreateContext: 0x71de947c2d60: maj 2 min 0 rcv 2
D/EGL_emulation( 6263): eglMakeCurrent: 0x71de947c2d60: ver 2 0 (tinfo 0x71de919c6660)
I/Choreographer( 6263): Skipped 33 frames! The application may be doing too much work on its main thread.
W/VideoCapabilities( 6263): Unrecognized profile 4 for video/hevc
I/VideoCapabilities( 6263): Unsupported profile 4 for video/mp4v-es
W/cr_MediaCodecUtil( 6263): HW encoder for video/avc is not available on this device.
W/cr_CrashFileManager( 6263): /data/user/0/com.example.XXXXXXXXapp/cache/WebView/Crash Reports does not exist or is not a directory
I/System.out( 6263): onAdFailedToLoad errorCode = 0
I/Ads ( 6263): Ad failed to load : 0
E/chromium( 6263): [ERROR:gl_surface_egl.cc(335)] eglChooseConfig failed with error EGL_SUCCESS
D/EGL_emulation( 6263): eglCreateContext: 0x71de9b1ded80: maj 2 min 0 rcv 2
D/EGL_emulation( 6263): eglMakeCurrent: 0x71de9b1ded80: ver 2 0 (tinfo 0x71de919c6660)
I already added the
<meta-data
android:name="com.google.android.gms.ads.APPLICATION_ID"
android:value="ca-app-pub-XXX~YYYY"/>
inside my application tag.
And I made sure to include the classpath 'com.google.gms:google-services:4.3.0' dependency and apply plugin: 'com.google.gms.google-services' in my build.gradle. I'm not quite sure how to resolve this.

Android TV box closes my application in 10 seconds

I am developing an android application which is basically a crossfade media player. The only difference of it from the other mediaplayers is that it has a crossfade functionality which is when the current song is ending it is starting to fade out and the next song is starting fade in.
My problem is when I install my app to the Android TV box (Rockchip MX10 Api 9 RAM: 4GB ROM: 32GB) the device closes my app after nearly 10 seconds.
However my application works on a different Android TV box(Rockchip MX9 Api 7 RAM: 2GB ROM: 16GB)
Additionally the application works on my Samsung Galaxy J8 phone (Api 9)
At first there is a login screen, and the box does not close the app in that screen. But once you log in, and the first song starts, after a few seconds, the box closes my app. So I suspect that is a performance issue.
Following is the logcat. (Not full of it but the rest of it does not contain any error and the time is not changing much, the last line is also written at the same seconds just have a difference as milliseconds)
2019-10-17 11:43:13.910 5323-5323/? I/Zygote: seccomp disabled by setenforce 0
2019-10-17 11:43:13.918 5323-5323/? I/omus.androidap: Late-enabling -Xcheck:jni
2019-10-17 11:43:14.104 5323-5330/? E/omus.androidap: Unable to peek into adb socket due to error. Closing socket.: Connection reset by peer
2019-10-17 11:43:14.183 5323-5323/? I/omus.androidap: The ClassLoaderContext is a special shared library.
2019-10-17 11:43:15.379 5323-5323/com.company.androidapp D/ROCKCHIP: android/app/ResourcesManager.java packageName = com.company.androidapp
2019-10-17 11:43:15.407 5323-5323/com.company.androidapp I/MultiDex: VM with version 2.1.0 has multidex support
2019-10-17 11:43:15.407 5323-5323/com.company.androidapp I/MultiDex: Installing application
2019-10-17 11:43:15.407 5323-5323/com.company.androidapp I/MultiDex: VM has multidex support, MultiDex support library is disabled.
2019-10-17 11:43:15.407 5323-5323/com.company.androidapp I/MultiDex: Installing application
2019-10-17 11:43:15.407 5323-5323/com.company.androidapp I/MultiDex: VM has multidex support, MultiDex support library is disabled.
2019-10-17 11:43:15.433 5323-5323/com.company.androidapp I/CrashlyticsInitProvider: CrashlyticsInitProvider skipping initialization
2019-10-17 11:43:15.605 5323-5323/com.company.androidapp I/CrashlyticsCore: Initializing Crashlytics Core 2.7.0.33
2019-10-17 11:43:15.836 5323-5347/com.company.androidapp W/omus.androidap: Long monitor contention with owner Queue (5341) at io.fabric.sdk.android.services.common.AdvertisingInfoStrategy io.fabric.sdk.android.services.common.AdvertisingInfoProvider.getReflectionStrategy()(AdvertisingInfoProvider.java:103) waiters=0 in io.fabric.sdk.android.services.common.AdvertisingInfo io.fabric.sdk.android.services.common.IdManager.getAdvertisingInfo() for 237ms
2019-10-17 11:43:15.839 5323-5350/com.company.androidapp W/omus.androidap: Long monitor contention with owner Queue (5341) at io.fabric.sdk.android.services.common.AdvertisingInfoStrategy io.fabric.sdk.android.services.common.AdvertisingInfoProvider.getReflectionStrategy()(AdvertisingInfoProvider.java:103) waiters=1 in io.fabric.sdk.android.services.common.AdvertisingInfo io.fabric.sdk.android.services.common.IdManager.getAdvertisingInfo() for 176ms
2019-10-17 11:43:15.903 5323-5341/com.company.androidapp D/skia: --- Failed to create image decoder with message 'unimplemented'
2019-10-17 11:43:15.912 5323-5354/br.com.gomus.androidapp I/stetho: Listening on #stetho_br.com.gomus.androidapp_devtools_remote
2019-10-17 11:43:15.937 5323-5341/br.com.gomus.androidapp D/NetworkSecurityConfig: Using Network Security Config from resource network_security_config debugBuild: true
2019-10-17 11:43:15.445 5323-5323/br.com.gomus.androidapp D/ROCKCHIP: android/app/ResourcesManager.java packageName = br.com.gomus.androidapp
2019-10-17 11:44:46.165 5323-5323/br.com.gomus.androidapp W/ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy#5fa473f
2019-10-17 11:44:46.190 5323-5323/br.com.gomus.androidapp D/ROCKCHIP: android/app/ResourcesManager.java packageName = br.com.gomus.androidapp
2019-10-17 11:44:46.215 5323-5323/br.com.gomus.androidapp D/ROCKCHIP: android/app/ResourcesManager.java packageName = br.com.gomus.androidapp
2019-10-17 11:44:46.505 5323-5323/br.com.gomus.androidapp W/omus.androidap: Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (light greylist, reflection)
2019-10-17 11:44:46.508 5323-5323/br.com.gomus.androidapp W/omus.androidap: Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (light greylist, reflection)
2019-10-17 11:44:46.535 5323-5323/br.com.gomus.androidapp D/PERMISSION: REQUEST LOG PERMISSION
2019-10-17 11:44:46.570 5323-5323/br.com.gomus.androidapp D/OpenGLRenderer: Skia GL Pipeline
2019-10-17 11:44:46.631 5323-5405/br.com.gomus.androidapp I/mali_so: [File] : hardware/rockchip/mali_so_src_of_utgard/./src/base/arch/arch_011_udd/base_arch_main.c; [Line] : 561; [Func] : deal_with_version_affairs_rk_ext;
arm_release_ver of this mali_so is 'r7p0-00rel1', rk_so_ver is '3#0', built at '14:07:59', on 'Dec 4 2018'.
2019-10-17 11:44:46.632 5323-5405/br.com.gomus.androidapp I/mali_so: [File] : hardware/rockchip/mali_so_src_of_utgard/./src/base/arch/arch_011_udd/base_arch_main.c; [Line] : 574; [Func] : deal_with_version_affairs_rk_ext;
mali_ver_property has been set to 'r7p0-00rel1-5-3#0', to return.
2019-10-17 11:44:46.641 5323-5405/br.com.gomus.androidapp I/ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0
2019-10-17 11:44:46.642 5323-5405/br.com.gomus.androidapp I/ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
2019-10-17 11:44:46.642 5323-5405/br.com.gomus.androidapp I/OpenGLRenderer: Initialized EGL, version 1.4
2019-10-17 11:44:46.643 5323-5405/br.com.gomus.androidapp D/OpenGLRenderer: Swap behavior 0
2019-10-17 11:44:46.643 5323-5405/br.com.gomus.androidapp E/MaliEGL: FindAppHintInFile open fail errno=0x2 (No such file or directory)
2019-10-17 11:44:46.643 5323-5405/br.com.gomus.androidapp E/MaliEGL: FindAppHintInFile open fail errno=0x2 (No such file or directory)
2019-10-17 11:44:46.643 5323-5405/br.com.gomus.androidapp E/MaliEGL: ModifyAppHintInFile open fail errno=0x2 (No such file or directory)
2019-10-17 11:44:46.643 5323-5405/br.com.gomus.androidapp E/MaliEGL: ModifyAppHintInFile open fail errno=0x2 (No such file or directory)
2019-10-17 11:44:46.701 5323-5323/br.com.gomus.androidapp I/RenderThread: type=1400 audit(0.0:347): avc: denied { write } for name="property_service" dev="tmpfs" ino=2385 scontext=u:r:untrusted_app_27:s0:c512,c768 tcontext=u:object_r:property_socket:s0 tclass=sock_file permissive=1
2019-10-17 11:44:46.703 5323-5405/br.com.gomus.androidapp D/GRALLOC-ROCKCHIP: RK_GRAPHICS_VER=commit-id:b0c117e
2019-10-17 11:44:48.856 5323-5323/br.com.gomus.androidapp D/splash act: getToken = aGF2YWlhbmFzLmhpbGFsOmhpbGFs
2019-10-17 11:44:48.857 5323-5323/br.com.gomus.androidapp D/splash act: new Random().nextInt() = -2068552007
2019-10-17 11:44:48.874 5323-5323/br.com.gomus.androidapp D/INTENT NAV Splash: Initial Download | value = true
2019-10-17 11:44:48.893 5323-5323/br.com.gomus.androidapp W/ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy#fa84f34
2019-10-17 11:44:48.970 5323-5323/br.com.gomus.androidapp W/before: Logcat save
2019-10-17 11:44:48.974 5323-5323/br.com.gomus.androidapp W/getFilesDir(): /storage/emulated/0/Android/data/br.com.gomus.androidapp/files/TestFolder/Logging.txt
2019-10-17 11:44:49.247 5323-5323/br.com.gomus.androidapp D/LocalDatabaseImpl: br.com.gomus.androidapp.data.local.model.PlaylistSchedulefindRealmObject realmQuery.findAll = []
2019-10-17 11:44:49.290 5323-5421/br.com.gomus.androidapp D/PlaylistMapper: copyFromRealmResults playlist.getName = Havaianas.entrada
2019-10-17 11:44:49.290 5323-5421/br.com.gomus.androidapp D/PlaylistMapper: deepCopy = playlist == NOT null
2019-10-17 11:44:49.571 5323-5323/br.com.gomus.androidapp W/omus.androidap: Accessing hidden method Landroid/graphics/FontFamily;-><init>()V (light greylist, reflection)
2019-10-17 11:44:49.571 5323-5323/br.com.gomus.androidapp W/omus.androidap: Accessing hidden method Landroid/graphics/FontFamily;->addFontFromAssetManager(Landroid/content/res/AssetManager;Ljava/lang/String;IZIII[Landroid/graphics/fonts/FontVariationAxis;)Z (light greylist, reflection)
2019-10-17 11:44:49.571 5323-5323/br.com.gomus.androidapp W/omus.androidap: Accessing hidden method Landroid/graphics/FontFamily;->addFontFromBuffer(Ljava/nio/ByteBuffer;I[Landroid/graphics/fonts/FontVariationAxis;II)Z (light greylist, reflection)
2019-10-17 11:44:49.572 5323-5323/br.com.gomus.androidapp W/omus.androidap: Accessing hidden method Landroid/graphics/FontFamily;->freeze()Z (light greylist, reflection)
2019-10-17 11:44:49.572 5323-5323/br.com.gomus.androidapp W/omus.androidap: Accessing hidden method Landroid/graphics/FontFamily;->abortCreation()V (light greylist, reflection)
2019-10-17 11:44:49.573 5323-5323/br.com.gomus.androidapp W/omus.androidap: Accessing hidden method Landroid/graphics/Typeface;->createFromFamiliesWithDefault([Landroid/graphics/FontFamily;II)Landroid/graphics/Typeface; (light greylist, reflection)
2019-10-17 11:44:49.757 5323-5323/br.com.gomus.androidapp W/omus.androidap: Accessing hidden field Lsun/misc/Unsafe;->theUnsafe:Lsun/misc/Unsafe; (light greylist, reflection)
2019-10-17 11:44:49.762 5323-5323/br.com.gomus.androidapp D/MusicPlayerInteractor: onResume
2019-10-17 11:44:49.763 5323-5323/br.com.gomus.androidapp D/MediaPlaYerRepo: userToken = aGF2YWlhbmFzLmhpbGFsOmhpbGFs
2019-10-17 11:44:49.774 5323-5323/br.com.gomus.androidapp D/LocalDatabaseImpl: br.com.gomus.androidapp.data.local.model.PlaylistSchedulefindRealmObject realmQuery.findAll = []
2019-10-17 11:44:49.775 5323-5323/br.com.gomus.androidapp D/MediaPlayerInteractor: elegiblePlaylists.size() <= 0
2019-10-17 11:44:49.776 5323-5323/br.com.gomus.androidapp D/PlaylistDaoImpl: findFirstAsync =
2019-10-17 11:44:49.796 5323-5423/br.com.gomus.androidapp D/LocalDatabaseImpl: findFirstAsync= Playlist = proxy[{id:20544},{name:Havaianas.entrada},{updateAt:1569951784},{songs:SongsIdResponse},{videos:null},{isVideo:false},{userToken:aGF2YWlhbmFzLmhpbGFsOmhpbGFs},{needShuffle:false}]
2019-10-17 11:44:49.797 5323-5423/br.com.gomus.androidapp D/PlaylistMapper: deepCopy = playlist == NOT null
2019-10-17 11:44:49.799 5323-5423/br.com.gomus.androidapp D/MediaPlayerInteractor: first playlist name = Havaianas.entrada
2019-10-17 11:44:49.811 5323-5423/br.com.gomus.androidapp D/MediaPlayerVM: checkWhatIsFirstScreenByCurrentPlaylist
2019-10-17 11:44:49.834 5323-5323/br.com.gomus.androidapp D/MusicPlayerInteractor: onResume
2019-10-17 11:44:50.072 5323-5323/br.com.gomus.androidapp W/omus.androidap: Accessing hidden method Ldalvik/system/CloseGuard;->get()Ldalvik/system/CloseGuard; (light greylist, reflection)
2019-10-17 11:44:50.072 5323-5323/br.com.gomus.androidapp W/omus.androidap: Accessing hidden method Ldalvik/system/CloseGuard;->open(Ljava/lang/String;)V (light greylist, reflection)
2019-10-17 11:44:50.073 5323-5323/br.com.gomus.androidapp W/omus.androidap: Accessing hidden method Ldalvik/system/CloseGuard;->warnIfOpen()V (light greylist, reflection)
2019-10-17 11:44:50.115 5323-5323/br.com.gomus.androidapp D/PreferencesManagerImpl: saveSongs mPendentDownloadItems2PENDENT_DOWNLOAD_ITEMS
2019-10-17 11:44:50.116 5323-5323/br.com.gomus.androidapp D/DownloadRepositoryImpl: calculateSavedProgress mTotalItems0
2019-10-17 11:44:50.116 5323-5323/br.com.gomus.androidapp D/PreferencesManagerImpl: saveSongs mPendentDownloadItems2DOWNLOADED_ITEMS
2019-10-17 11:44:50.117 5323-5323/br.com.gomus.androidapp D/DownloadRepositoryImpl: calculateSavedProgress mItemsDownloaded0
2019-10-17 11:44:50.118 5323-5323/br.com.gomus.androidapp D/DownloadRepositoryImpl: mItemsDownloaded: 0 mTotalItems0
2019-10-17 11:44:50.118 5323-5323/br.com.gomus.androidapp D/DownloadRepositoryImpl: Current progress : 100 %
2019-10-17 11:44:50.154 5323-5323/br.com.gomus.androidapp D/MusicPlayerInteractor: changeToMusicFragment
2019-10-17 11:44:50.190 5323-5323/br.com.gomus.androidapp D/MusicPlayerInteractor: replaceFragment
2019-10-17 11:44:50.197 5323-5323/br.com.gomus.androidapp D/MediaPlayerInteractor: requestCurrentPlaybackInfo is called
2019-10-17 11:44:50.198 5323-5323/br.com.gomus.androidapp D/MediaPlayerVM: mUpdateFinishedNOT
2019-10-17 11:44:50.407 5323-5425/br.com.gomus.androidapp D/PlaylistScheduleService: Avoiding call interactor in a thread without a loop!
2019-10-17 11:44:50.409 5323-5426/br.com.gomus.androidapp D/1stReportService: Trying to send report
2019-10-17 11:44:50.413 5323-5426/br.com.gomus.androidapp D/REPORT: FIRST REPORT | No gps permission!
2019-10-17 11:44:50.415 5323-5425/br.com.gomus.androidapp D/PlaylistScheduleService: Serviço foi reinicializado com 1 minuto DE DELAY!
2019-10-17 11:44:50.421 5323-5424/br.com.gomus.androidapp D/LocalDatabaseImpl: br.com.gomus.androidapp.data.local.model.ScheduleCompoundfindRealmObject realmQuery.findAll = []
2019-10-17 11:44:50.422 5323-5425/br.com.gomus.androidapp D/2ndReportService: Trying to send report
2019-10-17 11:44:50.423 5323-5424/br.com.gomus.androidapp D/SpotSchedulerRepositoryImpl: getSpotsScheduledList[]
2019-10-17 11:44:50.431 5323-5323/br.com.gomus.androidapp D/MusicPlayerFragment: onCreateViewbr.com.gomus.androidappui.main.MediaPlayerActivity
2019-10-17 11:44:50.438 5323-5424/br.com.gomus.androidapp D/SERVICE - SPOT: ACTUAL Current time and date: 2019-10-17 14:44:50 - HOURS: 14:44 - DAYS: 17 - MONTH: 10 - MONTH LENGTH: 2mSpotScheduleList0
2019-10-17 11:44:50.439 5323-5424/br.com.gomus.androidapp D/SpotSchedulerService: Serviço foi reinicializado com 60 SEGUNDOS DE DELAY!
2019-10-17 11:44:50.440 5323-5426/br.com.gomus.androidapp D/REPORT: GomusApplication.getInstance().isPlaying()= false
2019-10-17 11:44:50.441 5323-5426/br.com.gomus.androidapp D/FIRST-REPORT: FIRST REPORT | Id = 1735875982 | Date = 2019-10-17 14:44:50 | AudioPercentage = 20 | Playing = false | Longitude = 0.0 | Latitude = 0.0
2019-10-17 11:44:50.447 5323-5425/br.com.gomus.androidapp D/REPORT: SECOND REPORT | Realm results are not empty!
2019-10-17 11:44:50.448 5323-5424/br.com.gomus.androidapp D/UpdateService: onHandleWorkstartService
2019-10-17 11:44:50.449 5323-5424/br.com.gomus.androidapp D/UpdateService: !hasPendentUpdate()
2019-10-17 11:44:50.449 5323-5424/br.com.gomus.androidapp D/UpdateService: checkUpdates()
2019-10-17 11:44:50.450 5323-5424/br.com.gomus.androidapp D/UpdateService: sendCheckingUpdateBroadcast
2019-10-17 11:44:50.452 5323-5424/br.com.gomus.androidapp D/UpdateContentInteractorImpl: checkHasUpdates
2019-10-17 11:44:50.452 5323-5424/br.com.gomus.androidapp D/UpdateContentRemoteRepositoryImpl: checkHasUpdates=
2019-10-17 11:44:50.459 5323-5424/br.com.gomus.androidapp D/CheckConnectionTask: success HyperLog
2019-10-17 11:44:50.461 5323-5424/br.com.gomus.androidapp D/CheckConnectionTask: doInBackground
2019-10-17 11:44:50.469 5323-5425/br.com.gomus.androidapp D/REPORT: SECOND REPORT | Realm results are empty!
2019-10-17 11:44:50.472 5323-5425/br.com.gomus.androidapp D/SECOND-REPORT: SECOND REPORT | Id = 1735875982 | AppVersion = 1.41.19 | SO Version = 9 | RAM Size = 3,919MB | Space in Disk = 10,849MB | Date = 2019-10-17 14:44:50 | Songs Downloaded = 1 | Execution Details = 0
2019-10-17 11:44:50.486 5323-5424/br.com.gomus.androidapp D/CheckConnectionTask: doInBackground try
2019-10-17 11:44:50.664 5323-5430/br.com.gomus.androidapp D/OkHttp: --> POST http://echo.gomus.com.br/player/player3_report_executions.json
2019-10-17 11:44:50.664 5323-5429/br.com.gomus.androidapp D/OkHttp: --> POST http://echo.gomus.com.br/player/player3_report_ping.json
2019-10-17 11:44:50.664 5323-5429/br.com.gomus.androidapp D/OkHttp: Content-Type: application/json; charset=UTF-8
2019-10-17 11:44:50.664 5323-5430/br.com.gomus.androidapp D/OkHttp: Content-Type: application/json; charset=UTF-8
2019-10-17 11:44:50.665 5323-5429/br.com.gomus.androidapp D/OkHttp: Content-Length: 116
2019-10-17 11:44:50.665 5323-5430/br.com.gomus.androidapp D/OkHttp: Content-Length: 174
2019-10-17 11:44:50.665 5323-5430/br.com.gomus.androidapp D/OkHttp: Authorization: aGF2YWlhbmFzLmhpbGFsOmhpbGFs
2019-10-17 11:44:50.665 5323-5429/br.com.gomus.androidapp D/OkHttp: Authorization: aGF2YWlhbmFzLmhpbGFsOmhpbGFs
2019-10-17 11:44:50.666 5323-5429/br.com.gomus.androidapp D/OkHttp: {"audioPercentage":20,"date":"2019-10-17 14:44:50","id":1735875982,"isPlaying":false,"latitude":0.0,"longitude":0.0}
2019-10-17 11:44:50.666 5323-5429/br.com.gomus.androidapp D/OkHttp: --> END POST (116-byte body)
2019-10-17 11:44:50.666 5323-5430/br.com.gomus.androidapp D/OkHttp: {"appVersion":"1.41.19","date":"2019-10-17 14:44:50","executionDetails":[],"id":1735875982,"ramMemory":"3,919MB","soVersion":"9","songsDownloaded":1,"spaceInDisk":"10,849MB"}
2019-10-17 11:44:50.667 5323-5430/br.com.gomus.androidapp D/OkHttp: --> END POST (174-byte body)
2019-10-17 11:44:50.711 5323-5323/br.com.gomus.androidapp D/MusicPlayerFragment: onCreateView2
2019-10-17 11:44:50.712 5323-5323/br.com.gomus.androidapp D/MusicPlayerViewModel: loadCurrentPlaylist
2019-10-17 11:44:50.713 5323-5323/br.com.gomus.androidapp D/MusicPlayerViewModel: !mInteractor.isStarted()
2019-10-17 11:44:50.713 5323-5323/br.com.gomus.androidapp D/MusicPlayerViewModel: loadPlaylist()
2019-10-17 11:44:50.714 5323-5323/br.com.gomus.androidapp D/MusicPlayerInteractor: startCurrentPlaylist Havaianas.entrada
2019-10-17 11:44:50.714 5323-5323/br.com.gomus.androidapp D/MusicPlayerInteractor: inside checkIfCallbackAttached()
2019-10-17 11:44:50.715 5323-5323/br.com.gomus.androidapp D/MusicPlayerInteractor: 00mMediaPlayerInterface == null || !mMediaPlayerInterface.isPlaybackCallbackDetached()
2019-10-17 11:44:50.715 5323-5323/br.com.gomus.androidapp D/MusicPlayerInteractor: startCurrentPlaylist mCurrentPlaylists Havaianas.entrada
2019-10-17 11:44:50.750 5323-5323/br.com.gomus.androidapp D/MusicPlayerFragment: onResume
2019-10-17 11:44:50.760 5323-5323/br.com.gomus.androidapp I/Choreographer: Skipped 31 frames! The application may be doing too much work on its main thread.
I suspect from these lines:
2019-10-17 11:44:46.643 5323-5405/br.com.gomus.androidapp E/MaliEGL: FindAppHintInFile open fail errno=0x2 (No such file or directory)
2019-10-17 11:44:46.643 5323-5405/br.com.gomus.androidapp E/MaliEGL: FindAppHintInFile open fail errno=0x2 (No such file or directory)
2019-10-17 11:44:46.643 5323-5405/br.com.gomus.androidapp E/MaliEGL: ModifyAppHintInFile open fail errno=0x2 (No such file or directory)
2019-10-17 11:44:46.643 5323-5405/br.com.gomus.androidapp E/MaliEGL: ModifyAppHintInFile open fail errno=0x2 (No such file or directory)
And unfortunately there are no enough information about these in internet.
UPDATE
To improve the topic I wanted to add the results of the ./adb shell dumpsys gfxinfo command. As you can see Janky frames: 2 (100.00%). I do not understand, this janky frame is lower in my samsung galaxy j8 device.
Applications Graphics Acceleration Info:
Uptime: 24088494 Realtime: 24088494
** Graphics info for pid 20341 [br.com.gomus.androidapp] **
Stats since: 24075749808985ns
Total frames rendered: 2
Janky frames: 2 (100.00%)
50th percentile: 1000ms
90th percentile: 1000ms
95th percentile: 1000ms
99th percentile: 1000ms
Number Missed Vsync: 2
Number High input latency: 0
Number Slow UI thread: 2
Number Slow bitmap uploads: 0
Number Slow issue draw commands: 2
Number Frame deadline missed: 2
HISTOGRAM: 5ms=0 6ms=0 7ms=0 8ms=0 9ms=0 10ms=0 11ms=0 12ms=0 13ms=0 14ms=0 15ms=0 16ms=0 17ms=0 18ms=0 19ms=0 20ms=0 21ms=0 22ms=0 23ms=0 24ms=0 25ms=0 26ms=0 27ms=0 28ms=0 29ms=0 30ms=0 31ms=0 32ms=0 34ms=0 36ms=0 38ms=0 40ms=0 42ms=0 44ms=0 46ms=0 48ms=0 53ms=0 57ms=0 61ms=0 65ms=0 69ms=0 73ms=0 77ms=0 81ms=0 85ms=0 89ms=0 93ms=0 97ms=0 101ms=0 105ms=0 109ms=0 113ms=0 117ms=0 121ms=0 125ms=0 129ms=0 133ms=0 150ms=0 200ms=0 250ms=0 300ms=0 350ms=0 400ms=0 450ms=1 500ms=0 550ms=0 600ms=0 650ms=0 700ms=0 750ms=0 800ms=0 850ms=0 900ms=0 950ms=0 1000ms=1 1050ms=0 1100ms=0 1150ms=0 1200ms=0 1250ms=0 1300ms=0 1350ms=0 1400ms=0 1450ms=0 1500ms=0 1550ms=0 1600ms=0 1650ms=0 1700ms=0 1750ms=0 1800ms=0 1850ms=0 1900ms=0 1950ms=0 2000ms=0 2050ms=0 2100ms=0 2150ms=0 2200ms=0 2250ms=0 2300ms=0 2350ms=0 2400ms=0 2450ms=0 2500ms=0 2550ms=0 2600ms=0 2650ms=0 2700ms=0 2750ms=0 2800ms=0 2850ms=0 2900ms=0 2950ms=0 3000ms=0 3050ms=0 3100ms=0 3150ms=0 3200ms=0 3250ms=0 3300ms=0 3350ms=0 3400ms=0 3450ms=0 3500ms=0 3550ms=0 3600ms=0 3650ms=0 3700ms=0 3750ms=0 3800ms=0 3850ms=0 3900ms=0 3950ms=0 4000ms=0 4050ms=0 4100ms=0 4150ms=0 4200ms=0 4250ms=0 4300ms=0 4350ms=0 4400ms=0 4450ms=0 4500ms=0 4550ms=0 4600ms=0 4650ms=0 4700ms=0 4750ms=0 4800ms=0 4850ms=0 4900ms=0 4950ms=0
Font Cache (CPU):
Size: 4.84 kB
Glyph Count: 9
CPU Caches:
GPU Caches:
Other:
Buffer Object: 63.00 KB (2 entries)
Image:
Texture: 6.23 KB (1 entry)
Scratch:
Buffer Object: 64.00 KB (2 entries)
RenderTarget: 78.09 KB (7 entries)
Texture: 1.00 MB (1 entry)
Other Caches:
Current / Maximum
VectorDrawableAtlas 0.00 kB / 0.00 KB (entries = 0)
Layers Total 0.00 KB (numLayers = 0)
Total GPU memory usage:
1264959 bytes, 1.21 MB (133.23 KB is purgeable)
Pipeline=Skia (OpenGL)
Layout Cache Info:
Usage: 3/5000 entries
Hit ratio: 6/9 (0.666667)
Profile data in ms:
br.com.gomus.androidapp/br.com.gomus.androidapp.ui.main.MediaPlayerActivity/android.view.ViewRootImpl#a9729ce (visibility=0)
View hierarchy:
br.com.gomus.androidapp/br.com.gomus.androidapp.ui.main.MediaPlayerActivity/android.view.ViewRootImpl#a9729ce
40 views, 45,61 kB of display lists
Total ViewRootImpl: 1
Total Views: 40
Total DisplayList: 45,61 kB
UPDATE:
This is the network section of the Android Studio Profiler. The recent network connections took 734 ms. I do not know if it is good or bad. I was thinking maybe that was the problem. That is the last connection and after that, the app is closed by the device immediately.
I am waiting your ideas. Thanks in advance.
As I understand this is a restriction by the device because my application does not have a google play certification. The only way is rooting the device and let run those apps that does not have that certification too. However rooting this device is also impossible. The device is not root-able. Do not try to pay some services that saying we can root any device. Well they could not had made.
As a result, we left to use that device. This is the end that I have reached.=)

Emulators can't load "libGLES_emulation" driver

I am in the process of setting up FirebaseUI using Google's guide but I suddenly got an error I can't seem to find a solution for. I'm pretty sure it has to do with my gradle, because I've tried commenting changes in my Java files, using my phone instead of an AVD, and other emulators to no avail. I've included what I got in the Run console, Manifest, and gradles. If you need more information, please let me know. Thanks!
EDIT: For those with the same issue, I think I fixed it by updating Google Play services on the API Q emulator (you have to sign in to Google Play first), then I added the following to the app-level gradle:
android {
...
compileOptions {
...
sourceCompatibility = 1.8
targetCompatibility = 1.8
...
}
...
}
I don't know how it worked, but I hope it does for you too.
Run (conflicts only)
...
W/DynamiteModule: Local module descriptor class for com.google.firebase.auth not found.
...
W/libc: Unable to set property "qemu.gles" to "1": connection failed; errno=13 (Permission denied)
E/vndksupport: Could not load /vendor/lib/egl/libGLES_emulation.so from sphal namespace: dlopen failed: library "/vendor/lib/egl/libGLES_emulation.so" not found.
E/libEGL: load_driver(/vendor/lib/egl/libGLES_emulation.so): unknown
W/RenderThread: type=1400 audit(0.0:4480): avc: denied { write } for name="property_service" dev="tmpfs" ino=8377 scontext=u:r:untrusted_app_27:s0:c119,c256,c512,c768 tcontext=u:object_r:property_socket:s0 tclass=sock_file permissive=0
...
W/xample.litloca: Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (greylist, reflection)
Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (greylist, reflection)
...
W/OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without...
...
W/Gralloc3: mapper 3.x is not supported
Run (full)
09/07 19:52:53: Launching 'app' on Pixel 2 API Q.
$ adb shell am start -n "com.example.litlocal/com.example.litlocal.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Waiting for process to come online...
Connected to process 14608 on device 'Pixel_2_API_Q [emulator-5554]'.
Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page.
I/xample.litloca: The ClassLoaderContext is a special shared library.
I/xample.litloca: The ClassLoaderContext is a special shared library.
W/DynamiteModule: Local module descriptor class for com.google.firebase.auth not found.
W/DynamiteModule: Local module descriptor class for com.google.firebase.auth not found.
I/FirebaseAuth: [FirebaseAuth:] Preparing to create service connection to gms implementation
V/FA: Registered activity lifecycle callback
I/FirebaseInitProvider: FirebaseApp initialization successful
D/OpenGLRenderer: Skia GL Pipeline
D/libEGL: Emulator has host GPU support, qemu.gles is set to 1.
W/libc: Unable to set property "qemu.gles" to "1": connection failed; errno=13 (Permission denied)
E/vndksupport: Could not load /vendor/lib/egl/libGLES_emulation.so from sphal namespace: dlopen failed: library "/vendor/lib/egl/libGLES_emulation.so" not found.
E/libEGL: load_driver(/vendor/lib/egl/libGLES_emulation.so): unknown
D/libEGL: loaded /vendor/lib/egl/libEGL_emulation.so
D/libEGL: loaded /vendor/lib/egl/libGLESv1_CM_emulation.so
W/RenderThread: type=1400 audit(0.0:4449): avc: denied { write } for name="property_service" dev="tmpfs" ino=8377 scontext=u:r:untrusted_app_27:s0:c119,c256,c512,c768 tcontext=u:object_r:property_socket:s0 tclass=sock_file permissive=0
D/libEGL: loaded /vendor/lib/egl/libGLESv2_emulation.so
V/FA: onActivityCreated
W/xample.litloca: Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (greylist, reflection)
W/xample.litloca: Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (greylist, reflection)
D/: HostConnection::get() New Host Connection established 0xdc721500, tid 14666
D/: HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_native_sync_v2 ANDROID_EMU_native_sync_v3 ANDROID_EMU_dma_v1 ANDROID_EMU_host_composition_v1 GL_OES_EGL_image_external_essl3 GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_gles_max_version_3_0
D/OpenGLRenderer: Swap behavior 1
W/OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without...
D/OpenGLRenderer: Swap behavior 0
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 0 0
D/EGL_emulation: eglCreateContext: 0xdc7124e0: maj 3 min 0 rcv 3
D/EGL_emulation: eglMakeCurrent: 0xdc7124e0: ver 3 0 (tinfo 0xdc708f60)
V/FA: Collection enabled
V/FA: App package, google app id: com.example.litlocal, 1:175514927228:android:47ec351c4609ff5c6609f9
W/Gralloc3: mapper 3.x is not supported
I/FA: App measurement is starting up, version: 18202
To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
To enable faster debug mode event logging run:
adb shell setprop debug.firebase.analytics.app com.example.litlocal
D/FA: Debug-level message logging enabled
D/: createUnique: call
D/: HostConnection::get() New Host Connection established 0xdc721640, tid 14666
D/: HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_native_sync_v2 ANDROID_EMU_native_sync_v3 ANDROID_EMU_dma_v1 ANDROID_EMU_host_composition_v1 GL_OES_EGL_image_external_essl3 GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_gles_max_version_3_0
D/EGL_emulation: eglMakeCurrent: 0xdc7124e0: ver 3 0 (tinfo 0xdc708f60)
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 1 0
I/xample.litloca: Background young concurrent copying GC freed 16987(4410KB) AllocSpace objects, 8(224KB) LOS objects, 78% free, 1696KB/7840KB, paused 6.401ms total 59.038ms
V/FA: Connecting to remote service
V/FA: Detected application was in foreground
V/FA: Session started, time: 27900964
D/FA: Setting user property (FE): _sid, 1567911177
V/FA: Connection attempt already in progress
I/FA: Tag Manager is not found and thus will not be used
D/FA: Logging event (FE): session_start(_s), Bundle[{ga_event_origin(_o)=auto, ga_session_id(_sid)=1567911177}]
V/FA: Connection attempt already in progress
V/FA: Connection attempt already in progress
V/FA: Activity resumed, time: 27900309
D/FA: Logging event (FE): screen_view(_vs), Bundle[{ga_event_origin(_o)=auto, ga_screen_class(_sc)=MainActivity, ga_screen_id(_si)=8377598752693967695}]
V/FA: Connection attempt already in progress
Connection attempt already in progress
D/FA: Connected to remote service
V/FA: Processing queued up service tasks: 6
V/FA: Inactivity, disconnecting from the service
Manifest
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.litlocal">
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.INTERNET" />
<application
android:name=".MyApplication"
android:allowBackup="true"
android:icon="#mipmap/ic_launcher"
android:label="#string/app_name"
android:roundIcon="#mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="#style/AppTheme">
<activity
android:name=".MainActivity"
android:label="LitLocal">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".CreateEventActivity"
android:label="#string/create_event_activity_name"/>
<activity
android:name=".SetEventLocationActivity"
android:label="#string/set_event_location_activity_name"/>
<activity
android:name=".LoginActivity"
android:label="#string/login_activity_name"/>
</application>
</manifest>
Gradle (Project)
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.0'
classpath 'com.google.gms:google-services:4.3.2'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
mavenCentral()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
Grade (app)
apply plugin: 'com.android.application'
android {
compileSdkVersion 28
defaultConfig {
applicationId "com.example.litlocal"
minSdkVersion 22
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
resConfigs "en"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
/*sourceCompatibility = 1.8
targetCompatibility = 1.8*/
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.0.2'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'com.mapbox.mapboxsdk:mapbox-android-sdk:8.2.1'
implementation 'com.mapbox.mapboxsdk:mapbox-android-plugin-places-v8:0.9.0'
implementation 'com.google.firebase:firebase-analytics:17.2.0'
implementation 'com.google.firebase:firebase-auth:19.0.0'
implementation 'com.firebaseui:firebase-ui-auth:4.1.0'
implementation 'com.google.firebase:firebase-firestore:21.0.0'
//implementation 'com.firebaseui:firebase-ui-database:5.1.0'
implementation 'com.google.android.gms:play-services-auth:17.0.0'
// Tentative for login
//implementation 'com.squareup.picasso:picasso:2.71828'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.2.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
}
apply plugin: 'com.google.gms.google-services'
This worked for me:
android {
...
compileOptions {
...
sourceCompatibility = 1.8
targetCompatibility = 1.8
...
}
...
}

Facebook Audience Network not displaying test Ads. Already added TestDevice

I created a new sample project for displaying the Facebook audience network Banner ad at bottom of my activity.
My app is running in device but not displaying anything at bottom. I already added the hash for test device.
MainActivity.java
package liveradio.radioz.com.facebookads;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import com.facebook.ads.*;
import android.widget.LinearLayout;
public class MainActivity extends AppCompatActivity {
private AdView adView;
#Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
adView = new AdView(this, "PLACEMENT-ID", AdSize.BANNER_HEIGHT_50);
// Find the Ad Container
LinearLayout adContainer = (LinearLayout) findViewById(R.id.banner_container);
// Add the ad view to your activity layout
adContainer.addView(adView);
AdSettings.addTestDevice("DEVICE-ID");
// Request an ad
adView.loadAd();
}
#Override
protected void onDestroy() {
if (adView != null) {
adView.destroy();
}
super.onDestroy();
}
}
activity_main.xml
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="liveradio.radioz.com.facebookads.MainActivity">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Hello World!"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<LinearLayout
android:id="#+id/banner_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:orientation="vertical"
/>
</android.support.constraint.ConstraintLayout>
AndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="liveradio.radioz.com.facebookads">
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<application
android:allowBackup="true"
android:icon="#mipmap/ic_launcher"
android:label="#string/app_name"
android:roundIcon="#mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="#style/AppTheme">
<activity android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
Log :
01/12 12:13:01: Launching app
$ adb shell am start -n "liveradio.radioz.com.facebookads/liveradio.radioz.com.facebookads.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -D
Waiting for application to come online: liveradio.radioz.com.facebookads.test | liveradio.radioz.com.facebookads
Waiting for application to come online: liveradio.radioz.com.facebookads.test | liveradio.radioz.com.facebookads
Waiting for application to come online: liveradio.radioz.com.facebookads.test | liveradio.radioz.com.facebookads
Connecting to liveradio.radioz.com.facebookads
Waiting for application to start debug server
Waiting for application to come online: liveradio.radioz.com.facebookads.test | liveradio.radioz.com.facebookads
Connecting to liveradio.radioz.com.facebookads
Connected to the target VM, address: 'localhost:8645', transport: 'socket'
Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page.
I/zygote: Not late-enabling -Xcheck:jni (already on)
W/zygote: Suspending all threads took: 83.944ms
W/zygote: Unexpected CPU variant for X86 using defaults: x86
I/zygote: Background concurrent copying GC freed 9752(4MB) AllocSpace objects, 0(0B) LOS objects, 61% free, 973KB/2MB, paused 48.188ms total 236.235ms
W/ActivityThread: Application liveradio.radioz.com.facebookads is waiting for the debugger on port 8100...
I/System.out: Sending WAIT chunk
I/zygote: Debugger is active
I/System.out: Debugger has connected
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: waiting for debugger to settle...
I/System.out: debugger has settled (1486)
I/InstantRun: starting instant run server: is main process
I/WebViewFactory: Loading com.android.chrome version 61.0.3163.98 (code 316409812)
I/zygote: The ClassLoaderContext is a special shared library.
I/cr_LibraryLoader: Time to load native libraries: 3 ms (timestamps 6510-6513)
I/chromium: [INFO:library_loader_hooks.cc(136)] Chromium logging enabled: level = 0, default verbosity = 0
I/cr_LibraryLoader: Expected native library version number "61.0.3163.98", actual native library version number "61.0.3163.98"
E/FBAudienceNetwork: You don't call AudienceNetworkAds.initialize(). Some functionality may not work properly.
D/IS_UNITY: false
D/AdInternalSettings: Test mode device hash: 877dd37b-fff7-4fa1-b83d-776592220359
D/AdInternalSettings: When testing your app with Facebook's ad units you must specify the device hashed ID to ensure the delivery of test ads, add the following code before loading an ad: AdSettings.addTestDevice("877dd37b-fff7-4fa1-b83d-776592220359");
D/IS_UNITY: false
E/ActivityThread: Failed to find provider info for com.facebook.katana.provider.AttributionIdProvider
D/OpenGLRenderer: HWUI GL Pipeline
V/StudioProfiler: StudioProfilers agent attached.
V/StudioProfiler: Acquiring Application for Events
V/StudioProfiler: Transformed class: java/net/URL
W/zygote: Current dex file has more than one class in it. Calling RetransformClasses on this class might fail if no transformations are applied to it!
V/StudioProfiler: Memory control stream started.
[ 01-12 12:13:06.606 20774:20877 D/ ]
HostConnection::get() New Host Connection established 0xd1835a80, tid 20877
I/zygote: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0
I/OpenGLRenderer: Initialized EGL, version 1.4
D/OpenGLRenderer: Swap behavior 1
W/OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without...
D/OpenGLRenderer: Swap behavior 0
D/EGL_emulation: eglCreateContext: 0xe4b85540: maj 3 min 0 rcv 3
D/EGL_emulation: eglMakeCurrent: 0xe4b85540: ver 3 0 (tinfo 0xe4b83360)
D/EGL_emulation: eglMakeCurrent: 0xe4b85540: ver 3 0 (tinfo 0xe4b83360)
W/cr_ChildProcLH: Create a new ChildConnectionAllocator with package name = com.android.chrome, sandboxed = true
I/cr_BrowserStartup: Initializing chromium process, singleProcess=false
[ 01-12 12:13:07.026 20774:20774 D/ ]
HostConnection::get() New Host Connection established 0xd1583c00, tid 20774
D/EGL_emulation: eglCreateContext: 0xcecec360: maj 3 min 0 rcv 3
D/EGL_emulation: eglMakeCurrent: 0xcecec360: ver 3 0 (tinfo 0xe21fff60)
D/NetworkSecurityConfig: No Network Security Config specified, using platform default
W/cr_CrashFileManager: /data/user/0/liveradio.radioz.com.facebookads/cache/WebView/Crash Reports does not exist or is not a directory
W/com.facebookads: type=1400 audit(0.0:22): avc: denied { read } for name="vmstat" dev="proc" ino=4026532039 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:proc:s0 tclass=file permissive=0
D/IS_UNITY: false
I/zygote: Background concurrent copying GC freed 7886(1025KB) AllocSpace objects, 5(100KB) LOS objects, 50% free, 1746KB/3MB, paused 680us total 122.639ms
I/zygote: Do partial code cache collection, code=30KB, data=25KB
I/zygote: After code cache collection, code=30KB, data=25KB
I/zygote: Increasing code cache capacity to 128KB
V/StudioProfiler: Live memory tracking disabled.
V/StudioProfiler: Live memory tracking enabled.
V/StudioProfiler: JNIEnv not attached
V/StudioProfiler: Loaded classes: 6311
V/StudioProfiler: Tracking initialization took: 648527000ns
I/zygote: Do partial code cache collection, code=60KB, data=44KB
I/zygote: After code cache collection, code=56KB, data=43KB
I/zygote: Increasing code cache capacity to 256KB
Disconnected from the target VM, address: 'localhost:8645', transport: 'socket'
I'm getting the build successful and installed in my device. When I open the app I can't see any ads or test ads at bottom of my main activity.
If you've added Audience network libraries, you can add the code below to show test ads without worrying about adding a test device.
if (BuildConfig.DEBUG) {
AdSettings.setTestMode(true);
}
Add this code, preferably in your Application class.
First Implement this library:
implementation 'com.facebook.android:audience-network-sdk:4.99.1'
than use below code:
com.facebook.ads.AdView adView;
adView = new com.facebook.ads.AdView(this, "PLACEMENT-ID",
com.facebook.ads.AdSize.BANNER_HEIGHT_50);
((LinearLayout) adContainer).addView(adView);
adView.loadAd();
first, add this library to your grade file
implementation 'com.facebook.android:audience-network-sdk:6.12.0'
then paste this code in your xml file
<LinearLayout
android:id="#+id/banner_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:orientation="vertical"
/>
In your Java code paste this code and also replace IMG_16_9_APP_INSTALL#YOUR_PLACEMENT_ID with your banner ad ID
adView = new AdView(this, "IMG_16_9_APP_INSTALL#YOUR_PLACEMENT_ID", AdSize.BANNER_HEIGHT_50);
LinearLayout adContainer = (LinearLayout) findViewById(R.id.banner_container);
adContainer.addView(adView);
adView.loadAd();
for more information you can follow official link of meta
https://developers.facebook.com/docs/audience-network/setting-up/ad-setup/android/banner

Categories

Resources