Flutter flutter_native_admob package failing to load add - android

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.

Related

Exception: Bad state: field does not exist within the DocumentSnapshotPlatform Flutter Firebase

when I try to launch my app it throws the error, I am using cloud firestore for my database.
I have created a custom class object in which it should return the database stored in my firestore database.
The string : 'coffee'
The document Id : 'id'
Collection : name
"new crew member"
srength
100
sugars
"0"
Exception:
Bad state: field does not exist within the DocumentSnapshotPlatform in debug console snippet :
Launching lib\main.dart on AOSP on IA Emulator in debug mode...
√ Built build\app\outputs\flutter-apk\app-debug.apk.
D/EGL_emulation(10524): eglMakeCurrent: 0xe3b05780: ver 2 0 (tinfo 0xcbb977f0)
I/OpenGLRenderer(10524): Davey! duration=1640ms; Flags=1, IntendedVsync=21923234495143, Vsync=21924734495083, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=21924742691640, AnimationStart=21924742737640, PerformTraversalsStart=21924743916740, DrawStart=21924756908640, SyncQueued=21924762235840, SyncStart=21924765266540, IssueDrawCommandsStart=21924765562940, SwapBuffers=21924776192940, FrameCompleted=21924877730440, DequeueBufferDuration=27493000, QueueBufferDuration=464000,
Connecting to VM Service at ws://127.0.0.1:51346/EM9iZekSWt8=/ws
D/EGL_emulation(10524): eglMakeCurrent: 0xe0eb0140: ver 2 0 (tinfo 0xcbb97100)
D/eglCodecCommon(10524): setVertexArrayObject: set vao to 0 (0) 1 0
W/DynamiteModule(10524): Local module descriptor class for providerinstaller not found.
I/DynamiteModule(10524): Considering local module providerinstaller:0 and remote module providerinstaller:0
W/ProviderInstaller(10524): Failed to load providerinstaller module: No acceptable module found. Local version is 0 and remote version is 0.
W/sloo.coffee_da(10524): Unknown chunk type '200'.
I/sloo.coffee_da(10524): The ClassLoaderContext is a special shared library.
I/sloo.coffee_da(10524): The ClassLoaderContext is a special shared library.
I/sloo.coffee_da(10524): The ClassLoaderContext is a special shared library.
W/sloo.coffee_da(10524): Accessing hidden field Ljava/nio/Buffer;->address:J (light greylist, reflection)
V/NativeCrypto(10524): Registering com/google/android/gms/org/conscrypt/NativeCrypto's 294 native methods...
W/sloo.coffee_da(10524): Accessing hidden method Ljava/security/spec/ECParameterSpec;->getCurveName()Ljava/lang/String; (light greylist, reflection)
I/ProviderInstaller(10524): Installed default security provider GmsCore_OpenSSL
════════ Exception caught by provider ══════════════════════════════════════════
The following assertion was thrown:
An exception was throw by _MapStream<QuerySnapshot<Map<String, dynamic>>, List<Coffee>> listened by
StreamProvider<List<Coffee>?>, but no `catchError` was provided.
Exception:
Bad state: field does not exist within the DocumentSnapshotPlatform
════════════════════════════════════════════════════════════════════════════════
W/sloo.coffee_da(10524): Accessing hidden field Ljava/net/Socket;->impl:Ljava/net/SocketImpl; (light greylist, reflection)
W/sloo.coffee_da(10524): Accessing hidden method Ldalvik/system/CloseGuard;->get()Ldalvik/system/CloseGuard; (light greylist, linking)
W/sloo.coffee_da(10524): Accessing hidden method Ldalvik/system/CloseGuard;->open(Ljava/lang/String;)V (light greylist, linking)
W/sloo.coffee_da(10524): Accessing hidden field Ljava/io/FileDescriptor;->descriptor:I (light greylist, JNI)
W/sloo.coffee_da(10524): Accessing hidden method Ljava/security/spec/ECParameterSpec;->setCurveName(Ljava/lang/String;)V (light greylist, reflection)
W/sloo.coffee_da(10524): Accessing hidden method Ldalvik/system/BlockGuard;->getThreadPolicy()Ldalvik/system/BlockGuard$Policy; (light greylist, linking)
W/sloo.coffee_da(10524): Accessing hidden method Ldalvik/system/BlockGuard$Policy;->onNetwork()V (light greylist, linking)
database.dart file looks like this :
class DatabaseService {
final String uid;
DatabaseService({required this.uid});
final CollectionReference<Map<String, dynamic>> coffeeCollection =
FirebaseFirestore.instance.collection('coffee');
Future updateUserData(String sugars, String name, int strength) async {
return await coffeeCollection.doc(uid).set({
'sugars': sugars,
'name': name,
'srength': strength,
});
}
List<Coffee> _coffeeListFromSnapshot(
QuerySnapshot<Map<String, dynamic>> snapshot) {
return snapshot.docs.map((doc) {
return Coffee(
name: doc.get('name') ?? '',
strength: doc.get('strength') ?? 0,
sugars: doc.get('sugars') ?? '0');
}).toList();
}
Stream<List<Coffee>> get coffee {
return coffeeCollection.snapshots().map(_coffeeListFromSnapshot);
}
}

DownloadManager - Download Fails Even with Proper Permissions

Running Android 9 (28) in an emulator, and can't seem to get my application to download anything. I've made sure the correct permissions are assigned, but it still says "Download unsuccessful."
package com.example.download_test;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.app.ActivityCompat;
import androidx.core.content.ContextCompat;
import android.Manifest;
import android.app.DownloadManager;
import android.content.Context;
import android.content.pm.PackageManager;
import android.net.Uri;
import android.os.Bundle;
import android.os.Environment;
import android.util.Log;
public class MainActivity extends AppCompatActivity {
#Override
protected void onCreate(Bundle savedInstanceState) {
Log.d("dm","We in bois");
super.onCreate(savedInstanceState);
// setContentView(R.layout.activity_main);
getZipFile();
Log.d("dm","it should have worked yikes");
}
private int REQUEST_WRITE_EXTERNAL_STORAGE = 1;
private String extension;
public void getZipFile() {
int permissionCheck = ContextCompat.checkSelfPermission(this, Manifest.permission.WRITE_EXTERNAL_STORAGE);
if (permissionCheck != PackageManager.PERMISSION_GRANTED) {
ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE}, REQUEST_WRITE_EXTERNAL_STORAGE);
Log.e("dm","Permissions no worky");
} else {
//TODO
if (checkSelfPermission(android.Manifest.permission.WRITE_EXTERNAL_STORAGE) == PackageManager.PERMISSION_GRANTED) {
Log.v("dm","Permission is granted");
//File write logic here
extension =".zip";
Uri uri = Uri.parse("http://ipv4.download.thinkbroadband.com/5MB.zip");
Log.d("dm","URI Parsed");
DownloadManager downloadmanager = (DownloadManager) getSystemService(Context.DOWNLOAD_SERVICE);
DownloadManager.Request request = new DownloadManager.Request(uri);
request.setTitle("5MB.zip");
request.allowScanningByMediaScanner();
request.setDestinationInExternalPublicDir(Environment.DIRECTORY_DOWNLOADS, "5MB" + extension);
request.setMimeType("application/zip");
request.setNotificationVisibility(1);
downloadmanager.enqueue(request);
Log.i("dm", "Download requested");
}
}
}
}
Here's the error:
My apologies if this is trivial, I'm just trying to learn about Android.
Edit: I should have mentioned this originally, but Android Studio doesn't output an error when compiling.
Edit 2: I tried with a small txt file (https://www.w3.org/TR/PNG/iso_8859-1.txt) and it worked! I also found that trying to download a small txt over regular HTTP does not work. A ZIP file over HTTPS still doesn't work either, though.
Logcat output with 5MB ZIP file over HTTP:
2020-10-12 10:26:01.427 3955-3955/? I/e.download_tes: Not late-enabling -Xcheck:jni (already on)
2020-10-12 10:26:01.444 3955-3955/? W/e.download_tes: Unexpected CPU variant for X86 using defaults: x86_64
2020-10-12 10:26:01.752 3955-3955/com.example.download_test D/dm: We in bois
2020-10-12 10:26:01.762 3955-3955/com.example.download_test W/e.download_tes: Accessing hidden method Landroid/graphics/drawable/Drawable;->getOpticalInsets()Landroid/graphics/Insets; (light greylist, linking)
2020-10-12 10:26:01.762 3955-3955/com.example.download_test W/e.download_tes: Accessing hidden field Landroid/graphics/Insets;->left:I (light greylist, linking)
2020-10-12 10:26:01.762 3955-3955/com.example.download_test W/e.download_tes: Accessing hidden field Landroid/graphics/Insets;->right:I (light greylist, linking)
2020-10-12 10:26:01.762 3955-3955/com.example.download_test W/e.download_tes: Accessing hidden field Landroid/graphics/Insets;->top:I (light greylist, linking)
2020-10-12 10:26:01.762 3955-3955/com.example.download_test W/e.download_tes: Accessing hidden field Landroid/graphics/Insets;->bottom:I (light greylist, linking)
2020-10-12 10:26:01.773 3955-3955/com.example.download_test V/dm: Permission is granted
2020-10-12 10:26:01.773 3955-3955/com.example.download_test D/dm: URI Parsed
2020-10-12 10:26:01.807 3955-3955/com.example.download_test I/dm: Download requested
2020-10-12 10:26:01.807 3955-3955/com.example.download_test D/dm: it should have worked yikes
2020-10-12 10:26:01.931 3955-3955/com.example.download_test W/e.download_tes: Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (light greylist, reflection)
2020-10-12 10:26:01.932 3955-3955/com.example.download_test W/e.download_tes: Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (light greylist, reflection)
2020-10-12 10:26:01.946 3955-3955/com.example.download_test W/e.download_tes: Accessing hidden method Landroid/widget/TextView;->getTextDirectionHeuristic()Landroid/text/TextDirectionHeuristic; (light greylist, linking)
2020-10-12 10:26:01.970 3955-3955/com.example.download_test D/OpenGLRenderer: HWUI GL Pipeline
2020-10-12 10:26:02.025 3955-3984/com.example.download_test I/ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0
2020-10-12 10:26:02.025 3955-3984/com.example.download_test I/ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
2020-10-12 10:26:02.025 3955-3984/com.example.download_test I/OpenGLRenderer: Initialized EGL, version 1.4
2020-10-12 10:26:02.025 3955-3984/com.example.download_test D/OpenGLRenderer: Swap behavior 1
2020-10-12 10:26:02.026 3955-3984/com.example.download_test W/OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without...
2020-10-12 10:26:02.026 3955-3984/com.example.download_test D/OpenGLRenderer: Swap behavior 0
2020-10-12 10:26:02.061 3955-3984/com.example.download_test D/EGL_emulation: eglCreateContext: 0x715ffe6444a0: maj 2 min 0 rcv 2
2020-10-12 10:26:02.088 3955-3984/com.example.download_test D/EGL_emulation: eglMakeCurrent: 0x715ffe6444a0: ver 2 0 (tinfo 0x715ffe60dc20)
2020-10-12 10:26:02.168 3955-3984/com.example.download_test D/EGL_emulation: eglMakeCurrent: 0x715ffe6444a0: ver 2 0 (tinfo 0x715ffe60dc20)
2020-10-12 10:26:17.002 3955-3984/com.example.download_test D/EGL_emulation: eglMakeCurrent: 0x715ffe6444a0: ver 2 0 (tinfo 0x715ffe60dc20)
and Manifest Permissions:
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.INTERNET"/>
Edit 3: Looks like I can download any size file (zip or txt) over HTTPS, but not over HTTP. Not sure if this is just standard behavior for DownloadManager.

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.=)

App crashes in the android studio emulator in maps activity

I have created a google map activity in android studio. I have also generated an api key from the link given and placed it in the appropriate place. But when I run the app it crashes without displaying anything. Here is the logcat
2018-12-19 16:13:00.080 17295-17295/? I/ik7.locationap: Not late-enabling -Xcheck:jni (already on)
2018-12-19 16:13:00.312 17295-17295/? W/ik7.locationap: Unexpected CPU variant for X86 using defaults: x86
2018-12-19 16:13:00.667 17295-17295/com.example.nik7.locationapp W/ik7.locationap: JIT profile information will not be recorded: profile file does not exits.
2018-12-19 16:13:00.669 17295-17295/com.example.nik7.locationapp I/chatty: uid=10087(com.example.nik7.locationapp) identical 10 lines
2018-12-19 16:13:00.670 17295-17295/com.example.nik7.locationapp W/ik7.locationap: JIT profile information will not be recorded: profile file does not exits.
2018-12-19 16:13:00.733 17295-17295/com.example.nik7.locationapp I/InstantRun: starting instant run server: is main process
2018-12-19 16:13:01.001 17295-17295/com.example.nik7.locationapp I/zzbz: Making Creator dynamically
2018-12-19 16:13:01.022 17295-17295/com.example.nik7.locationapp W/ik7.locationap: Unsupported class loader
2018-12-19 16:13:01.023 17295-17295/com.example.nik7.locationapp W/ik7.locationap: Skipping duplicate class check due to unsupported classloader
2018-12-19 16:13:01.033 17295-17295/com.example.nik7.locationapp I/DynamiteModule: Considering local module com.google.android.gms.maps_dynamite:0 and remote module com.google.android.gms.maps_dynamite:221
2018-12-19 16:13:01.033 17295-17295/com.example.nik7.locationapp I/DynamiteModule: Selected remote version of com.google.android.gms.maps_dynamite, version >= 221
2018-12-19 16:13:01.033 17295-17295/com.example.nik7.locationapp V/DynamiteModule: Dynamite loader version >= 2, using loadModule2NoCrashUtils
2018-12-19 16:13:01.113 17295-17295/com.example.nik7.locationapp W/ik7.locationap: Unsupported class loader
2018-12-19 16:13:01.131 17295-17295/com.example.nik7.locationapp W/ik7.locationap: Skipping duplicate class check due to unsupported classloader
2018-12-19 16:13:01.180 17295-17295/com.example.nik7.locationapp I/Google Maps Android API: Google Play services client version: 12451000
2018-12-19 16:13:01.192 17295-17295/com.example.nik7.locationapp I/Google Maps Android API: Google Play services package version: 14799040
2018-12-19 16:13:01.319 17295-17295/com.example.nik7.locationapp W/ik7.locationap: Accessing hidden field Ljava/nio/Buffer;->address:J (light greylist, reflection)
2018-12-19 16:13:01.712 17295-17295/com.example.nik7.locationapp D/OpenGLRenderer: HWUI GL Pipeline
2018-12-19 16:13:01.877 17295-17341/com.example.nik7.locationapp I/ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0
2018-12-19 16:13:01.878 17295-17341/com.example.nik7.locationapp I/ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
2018-12-19 16:13:01.878 17295-17341/com.example.nik7.locationapp I/OpenGLRenderer: Initialized EGL, version 1.4
2018-12-19 16:13:01.878 17295-17341/com.example.nik7.locationapp D/OpenGLRenderer: Swap behavior 1
2018-12-19 16:13:01.883 17295-17341/com.example.nik7.locationapp W/OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without...
2018-12-19 16:13:01.883 17295-17341/com.example.nik7.locationapp D/OpenGLRenderer: Swap behavior 0
2018-12-19 16:13:01.907 17295-17341/com.example.nik7.locationapp D/EGL_emulation: eglCreateContext: 0xe8310280: maj 2 min 0 rcv 2
2018-12-19 16:13:01.913 17295-17341/com.example.nik7.locationapp D/EGL_emulation: eglMakeCurrent: 0xe8310280: ver 2 0 (tinfo 0xe7093fa0)
2018-12-19 16:13:02.025 17295-17341/com.example.nik7.locationapp D/EGL_emulation: eglMakeCurrent: 0xe8310280: ver 2 0 (tinfo 0xe7093fa0)
2018-12-19 16:13:02.034 17295-17338/com.example.nik7.locationapp D/EGL_emulation: eglCreateContext: 0xe9d05f00: maj 1 min 0 rcv 1
2018-12-19 16:13:02.229 17295-17338/com.example.nik7.locationapp D/EGL_emulation: eglMakeCurrent: 0xe9d05f00: ver 1 0 (tinfo 0xe9d03470)
2018-12-19 16:13:02.564 17295-17319/com.example.nik7.locationapp D/NetworkSecurityConfig: No Network Security Config specified, using platform default
2018-12-19 16:13:03.305 17295-17319/com.example.nik7.locationapp E/AndroidRuntime: FATAL EXCEPTION: Thread-6
Process: com.example.nik7.locationapp, PID: 17295
java.lang.NoClassDefFoundError: Failed resolution of: Lorg/apache/http/ProtocolVersion;
at ez.b(:com.google.android.gms.dynamite_mapsdynamite#14799084#14.7.99 (100700-223214910):3)
at ey.a(:com.google.android.gms.dynamite_mapsdynamite#14799084#14.7.99 (100700-223214910):3)
at fa.a(:com.google.android.gms.dynamite_mapsdynamite#14799084#14.7.99 (100700-223214910):15)
at com.google.maps.api.android.lib6.drd.al.a(:com.google.android.gms.dynamite_mapsdynamite#14799084#14.7.99 (100700-223214910):6)
at ed.a(:com.google.android.gms.dynamite_mapsdynamite#14799084#14.7.99 (100700-223214910):21)
at ed.run(:com.google.android.gms.dynamite_mapsdynamite#14799084#14.7.99 (100700-223214910):8)
Caused by: java.lang.ClassNotFoundException: Didn't find class "org.apache.http.ProtocolVersion" on path: DexPathList[[zip file "/data/user_de/0/com.google.android.gms/app_chimera/m/00000015/MapsDynamite.apk"],nativeLibraryDirectories=[/data/user_de/0/com.google.android.gms/app_chimera/m/00000015/MapsDynamite.apk!/lib/x86, /system/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:134)
at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
at ad.loadClass(:com.google.android.gms.dynamite_dynamiteloader#14799084#14.7.99 (100700-223214910):4)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
at ez.b(:com.google.android.gms.dynamite_mapsdynamite#14799084#14.7.99 (100700-223214910):3) 
at ey.a(:com.google.android.gms.dynamite_mapsdynamite#14799084#14.7.99 (100700-223214910):3) 
at fa.a(:com.google.android.gms.dynamite_mapsdynamite#14799084#14.7.99 (100700-223214910):15) 
at com.google.maps.api.android.lib6.drd.al.a(:com.google.android.gms.dynamite_mapsdynamite#14799084#14.7.99 (100700-223214910):6) 
at ed.a(:com.google.android.gms.dynamite_mapsdynamite#14799084#14.7.99 (100700-223214910):21) 
at ed.run(:com.google.android.gms.dynamite_mapsdynamite#14799084#14.7.99 (100700-223214910):8) 
2018-12-19 16:13:03.338 17295-17295/com.example.nik7.locationapp E/SchedPolicy: set_timerslack_ns write failed: Operation not permitted
2018-12-19 16:13:03.379 17295-17319/com.example.nik7.locationapp I/Process: Sending signal. PID: 17295 SIG: 9
This is the compelte log.I have even tried by removing the restrictions but that didn't work. Whats the issue here. I have also seledted api 23 marshmallow. I have done nothing except entering the api key in its place
EDIT: I also included the key in the manifest but still the app is crashing
<meta-data
android:name="com.google.android.geo.API_KEY"
android:value="YOUR_API_KEY"/>
EDIT:
Seems to be an issue in API 28
To fix it add this code under application in your manifest file:
<uses-library android:name="org.apache.http.legacy" android:required="false"/>
Its probably because you dont have google play services installed. If you ran the app on your actual phone it would work just fine.
To fix it, you either add this line of code inside the in the manifest
<uses-library android:name="org.apache.http.legacy" android:required="false"/>
Or
to upgrade your play-services-maps in build.gradle to
implementation 'com.google.android.gms:play-services-maps:16.1.0'
That worked for me

'Unfortunately, app has stopped' is shown twice on the device and 'Application terminated' in android studio with no error being shown

I am developing an app using Android Studio.
The problem is that app gets crashed twice within few minutes of running it and besides Application terminated. and normal logs no error is shown in the logcat.
Here's complete logcat:
02/12 22:31:34: Launching app
Cold swapped changes.
$ adb shell am start -n "com.abc.xxx/com.abc.xxx.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Connected to process 13399 on device micromax-micromax_aq4502-2864004C04884I2
I/art: Late-enabling -Xcheck:jni
W/System: ClassLoader referenced unknown path: /data/app/com.abc.xxx-2/lib/arm
I/InstantRun: Instant Run Runtime started. Android package is com.abc.xxx, real application class is null.
W/System: ClassLoader referenced unknown path: /data/app/com.abc.xxx-2/lib/arm
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/art: Background sticky concurrent mark sweep GC freed 11281(1218KB) AllocSpace objects, 22(696KB) LOS objects, 15% free, 5MB/6MB, paused 13.077ms total 70.659ms
I/DynamiteModule: Considering local module com.google.android.gms.flags:2 and remote module com.google.android.gms.flags:0
I/DynamiteModule: Selected local version of com.google.android.gms.flags
W/DynamiteModule: Local module descriptor class for com.google.android.gms.crash not found.
I/DynamiteModule: Considering local module com.google.android.gms.crash:0 and remote module com.google.android.gms.crash:4
I/DynamiteModule: Selected remote version of com.google.android.gms.crash, version >= 4
W/System: ClassLoader referenced unknown path: /data/user/0/com.google.android.gms/app_chimera/m/00000012/n/armeabi-v7a
W/System: ClassLoader referenced unknown path: /data/user/0/com.google.android.gms/app_chimera/m/00000012/n/armeabi
I/FirebaseCrashApiImpl: FirebaseCrashApiImpl created by ClassLoader p[DexPathList[[zip file "/data/data/com.google.android.gms/app_chimera/m/00000012/DynamiteModulesC_GmsCore_prodmnc_hdpi_release.apk"],nativeLibraryDirectories=[/data/user/0/com.google.android.gms/app_chimera/m/00000012/n/armeabi-v7a, /data/user/0/com.google.android.gms/app_chimera/m/00000012/n/armeabi, /vendor/lib, /system/lib]]]
I/DynamiteModule: Considering local module com.google.android.gms.flags:2 and remote module com.google.android.gms.flags:0
I/DynamiteModule: Selected local version of com.google.android.gms.flags
W/DynamiteModule: Local module descriptor class for com.google.android.gms.crash not found.
I/FA: App measurement is starting up, version: 10084
I/FA: To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
D/FA: Debug-level message logging enabled
D/FA: AppMeasurement singleton hash: 198168520
V/FA: Collection enabled
V/FA: App package, google app id: com.abc.xxx, 1:987905869088:android:e7f50263e7b8aa58
I/FA: To enable faster debug mode event logging run:
adb shell setprop debug.firebase.analytics.app com.getsportalapp.sportal
V/FA: Registered activity lifecycle callback
I/FirebaseCrash: FirebaseCrash reporting initialized com.google.android.gms.internal.zzbks#e551d72
I/FirebaseInitProvider: FirebaseApp initialization successful
V/FA: Using measurement service
V/FA: Connecting to remote service
W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.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
W/com.facebook.appevents.AppEventsLogger: activateApp events are being logged automatically. There's no need to call activateApp explicitly, this is safe to remove.
I/GAC: Building GoogleApiClient
I/CrashlyticsCore: Initializing Crashlytics 2.3.15.167
V/FA: Connection attempt already in progress
V/FA: Activity resumed, time: 824779068
D/OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: false
D/signedIn: onAuthStateChanged:signed_in:ShXMXdc5kHUQZWG3lGudJtt2
I/DynamiteModule: Considering local module com.google.android.gms.firebase_database:4 and remote module com.google.android.gms.firebase_database:5
I/DynamiteModule: Selected remote version of com.google.android.gms.firebase_database, version >= 5
I/OpenGLRenderer: Initialized EGL, version 1.4
I/MaliEGL: [Mali]window_type=1, is_framebuffer=0, errnum = 0
I/MaliEGL: [Mali]surface->num_buffers=4, surface->num_frames=3, win_min_undequeued=1
I/MaliEGL: [Mali]max_allowed_dequeued_buffers=3
E/RecyclerView: No adapter attached; skipping layout
D/FA: Connected to remote service
V/FA: Processing queued up service tasks: 2
E/RecyclerView: No adapter attached; skipping layout
D/getInvitation: getInvitation: no deep link found.
D/called: again
D/cLat: 2.8418744
D/cLng: 8.7791019
I/MaliEGL: [Mali]window_type=1, is_framebuffer=0, errnum = 0
I/MaliEGL: [Mali]surface->num_buffers=4, surface->num_frames=3, win_min_undequeued=1
I/MaliEGL: [Mali]max_allowed_dequeued_buffers=3
W/PersistentConnection: pc_0 - Using an unspecified index. Consider adding '".indexOn": "g"' at geofire to your security and Firebase Database rules for better performance
W/PersistentConnection: pc_0 - Using an unspecified index. Consider adding '".indexOn": "g"' at geofire to your security and Firebase Database rules for better performance
W/PersistentConnection: pc_0 - Using an unspecified index. Consider adding '".indexOn": "g"' at geofire to your security and Firebase Database rules for better performance
W/PersistentConnection: pc_0 - Using an unspecified index. Consider adding '".indexOn": "g"' at geofire to your security and Firebase Database rules for better performance
W/Settings: Setting airplane_mode_on has moved from android.provider.Settings.System to android.provider.Settings.Global, returning read-only value.
W/System: ClassLoader referenced unknown path: /data/user/0/com.google.android.gms/app_chimera/m/00000010/n/armeabi
D/DynamitePackage: Instantiated singleton DynamitePackage.
D/DynamitePackage: Instantiating com.google.android.gms.ads.ChimeraAdManagerCreatorImpl
I/DynamiteModule: Considering local module com.google.android.gms.piccard.dynamite:0 and remote module com.google.android.gms.piccard.dynamite:12
I/DynamiteModule: Selected remote version of com.google.android.gms.piccard.dynamite, version >= 12
W/System: ClassLoader referenced unknown path: /data/user/0/com.google.android.gms/app_chimera/m/00000010/n/armeabi
W/VideoCapabilities: Unrecognized profile/level 32768/2 for video/mp4v-es
I/VideoCapabilities: Unsupported profile 8 for video/mp4v-es
I/VideoCapabilities: Unsupported profile 8 for video/mp4v-es
I/VideoCapabilities: Unsupported profile 8 for video/mp4v-es
I/VideoCapabilities: Unsupported profile 8 for video/mp4v-es
I/VideoCapabilities: Unsupported profile 8 for video/mp4v-es
I/VideoCapabilities: Unsupported profile 8 for video/mp4v-es
I/VideoCapabilities: Unsupported profile 4 for video/mp4v-es
I/Ads: Starting ad request.
I/WebViewFactory: Loading com.google.android.webview version 53.0.2785.124 (code 278512400)
D/diffAnother: -6283000
I/art: Rejecting re-init on previously-failed class java.lang.Class<com.android.webview.chromium.ServiceWorkerControllerAdapter>
I/art: Rejecting re-init on previously-failed class java.lang.Class<com.android.webview.chromium.ServiceWorkerControllerAdapter>
I/art: Rejecting re-init on previously-failed class java.lang.Class<com.android.webview.chromium.TokenBindingManagerAdapter>
I/art: Rejecting re-init on previously-failed class java.lang.Class<com.android.webview.chromium.TokenBindingManagerAdapter>
I/cr_LibraryLoader: Time to load native libraries: 6 ms (timestamps 5738-5744)
I/cr_LibraryLoader: Expected native library version number "53.0.2785.124", actual native library version number "53.0.2785.124"
V/WebViewChromiumFactoryProvider: Binding Chromium to main looper Looper (main, tid 1) {611ead6}
I/cr_LibraryLoader: Expected native library version number "53.0.2785.124", actual native library version number "53.0.2785.124"
I/chromium: [INFO:library_loader_hooks.cc(151)] Chromium logging enabled: level = 0, default verbosity = 0
I/cr_BrowserStartup: Initializing chromium process, singleProcess=true
W/cr_media: Requires BLUETOOTH permission
W/cr_AwContents: onDetachedFromWindow called when already detached. Ignoring
I/cr_Ime: ImeThread is not enabled.
E/libEGL: validate_display:255 error 3008 (EGL_BAD_DISPLAY)
W/cr_BindingManager: Cannot call determinedVisibility() - never saw a connection for the pid: 13399
I/DynamiteModule: Considering local module com.google.android.gms.tagmanager:8 and remote module com.google.android.gms.tagmanager:9
I/DynamiteModule: Selected remote version of com.google.android.gms.tagmanager, version >= 9
W/DynamiteModule: Local module descriptor class for com.google.firebase.auth not found.
W/GoogleTagManager: No container asset found in /assets/containers. Checking top level /assets directory for container assets.
W/GoogleTagManager: Tag Manager's event handler WILL NOT be installed (no container loaded)
I/GoogleTagManager: Tag Manager initilization took 213ms
V/FA: Using measurement service
V/FA: Connecting to remote service
D/FA: Connected to remote service
V/FA: Processing queued up service tasks: 1
I/Ads: Scheduling ad refresh 45000 milliseconds from now.
W/cr_AwContents: onDetachedFromWindow called when already detached. Ignoring
I/cr_Ime: ImeThread is not enabled.
I/Ads: Ad finished loading.
W/cr_BindingManager: Cannot call determinedVisibility() - never saw a connection for the pid: 13399
I/chromium: [INFO:CONSOLE(0)] "Document was loaded from Application Cache with manifest https://googleads.g.doubleclick.net/mads/static/mad/sdk/native/sdk-core-v40-loader.appcache", source: https://googleads.g.doubleclick.net/mads/static/mad/sdk/native/sdk-core-v40-loader.html (0)
I/chromium: [INFO:CONSOLE(0)] "Application Cache Checking event", source: https://googleads.g.doubleclick.net/mads/static/mad/sdk/native/sdk-core-v40-loader.html (0)
I/chromium: [INFO:CONSOLE(0)] "Application Cache NoUpdate event", source: https://googleads.g.doubleclick.net/mads/static/mad/sdk/native/sdk-core-v40-loader.html (0)
D/diffAnother: 1129000
D/DynamitePackage: Instantiating com.google.android.gms.ads.ChimeraAdManagerCreatorImpl
I/Ads: Starting ad request.
D/diffAnother: -6300000
W/cr_AwContents: onDetachedFromWindow called when already detached. Ignoring
I/cr_Ime: ImeThread is not enabled.
W/cr_BindingManager: Cannot call determinedVisibility() - never saw a connection for the pid: 13399
I/Ads: Scheduling ad refresh 45000 milliseconds from now.
I/Ads: Ad finished loading.
V/FA: Using measurement service
V/FA: Connecting to remote service
D/FA: Logging event (FE): _e, Bundle[{_o=auto, _et=29568, _sc=MainActivity, _si=-6311178554893906199}]
V/FA: Using measurement service
V/FA: Connection attempt already in progress
V/FA: Activity paused, time: 824808635
D/FA: Connected to remote service
V/FA: Processing queued up service tasks: 2
W/com.facebook.appevents.AppEventsLogger: activateApp events are being logged automatically. There's no need to call activateApp explicitly, this is safe to remove.
I/MaliEGL: [Mali]window_type=1, is_framebuffer=0, errnum = 0
I/MaliEGL: [Mali]surface->num_buffers=4, surface->num_frames=3, win_min_undequeued=1
I/MaliEGL: [Mali]max_allowed_dequeued_buffers=3
D/call1: called
D/call2: called
D/call1: called
D/call2: called
D/error1: ERROR1
D/error1: ERROR1
I/MaliEGL: [Mali]window_type=1, is_framebuffer=0, errnum = 0
I/MaliEGL: [Mali]surface->num_buffers=4, surface->num_frames=3, win_min_undequeued=1
I/MaliEGL: [Mali]max_allowed_dequeued_buffers=3
V/RenderScript: 0xb8457a88 Launching thread(s), CPUs 4
I/MaliEGL: [Mali]window_type=1, is_framebuffer=0, errnum = 0
I/MaliEGL: [Mali]surface->num_buffers=4, surface->num_frames=3, win_min_undequeued=1
I/MaliEGL: [Mali]max_allowed_dequeued_buffers=3
V/FA: Inactivity, disconnecting from the service
I/MaliEGL: [Mali]window_type=1, is_framebuffer=0, errnum = 0
I/MaliEGL: [Mali]surface->num_buffers=4, surface->num_frames=3, win_min_undequeued=1
I/MaliEGL: [Mali]max_allowed_dequeued_buffers=3
I/MaliEGL: [Mali]window_type=1, is_framebuffer=0, errnum = 0
I/MaliEGL: [Mali]surface->num_buffers=4, surface->num_frames=3, win_min_undequeued=1
I/MaliEGL: [Mali]max_allowed_dequeued_buffers=3
I/Ads: Ad is not visible. Not refreshing ad.
I/Ads: Scheduling ad refresh 60000 milliseconds from now.
I/Ads: Ad is not visible. Not refreshing ad.
I/Ads: Scheduling ad refresh 60000 milliseconds from now.
Application terminated.
I tried integrating crashlytics but even it doesn't show any error when the app crashes in this manner.
The question is how will I be able to fix the error if I don't even know what the error is?
Please help me with this.
I think the issue is related to your ad view.
In last line it is showing that ad is not visible.

Categories

Resources