I insert data to firebase and now want to get that data from firebase but project terminated at some point. i debug the code and get these ..
I am trying to get this data from firebase database.
rcsfirebaseproject
-test2
-L03KXCTlprnkQ3-Fsfl
pubid:
"-L03KXCTlprnkQ3-Fsfl"
publisher:
"test"
reseracher:
"test2"
tile:
"test3"
i insert this data using code
FirebaseDatabase database = FirebaseDatabase.getInstance();
DatabaseReference myRef = database.getReference("test2");
String paperid=myRef.push().getKey();
publishedpaperitemdemi pubpaper=new
publishedpaperitemdemi(paperid,"test","test2","test3");
myRef.child(paperid).setValue(pubpaper);
this works fine
i want to retrive this data using
// Read from the database
myRef.addValueEventListener(new ValueEventListener() {
#Override
public void onDataChange(DataSnapshot dataSnapshot) {
for (DataSnapshot papershapshot: dataSnapshot.getChildren()){
publishedpaperitemdemi
pubda=papershapshot.getValue(publishedpaperitemdemi.class);
long abc=papershapshot.getChildrenCount();
}
}
#Override
public void onCancelled(DatabaseError error) {
// Failed to read value
// Log.w(TAG, "Failed to read value.", error.toException());
}
});
when code reached
publishedpaperitemdemi
pubda=papershapshot.getValue(publishedpaperitemdemi.class);
terminated
i debuged code as in screenshot below
why project terminated at this point any help, please
logcat details of t
12-11 12:48:53.497 1588-1639/system_process E/InputDispatcher: channel '7fe09e7 com.example.ahmadkhan.rcs/com.example.ahmadkhan.rcs.testfirebasedbActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
12-11 12:48:53.497 1588-1639/system_process E/InputDispatcher: channel 'f311c3d Toast (server)' ~ Channel is unrecoverably broken and will be disposed!
12-11 12:48:53.791 7214-7214/? E/memtrack: Couldn't load memtrack module (No such file or directory)
12-11 12:48:53.791 7214-7214/? E/android.os.Debug: failed to load memtrack module: -2
12-11 12:48:54.360 7227-7227/? E/memtrack: Couldn't load memtrack module (No such file or directory)
12-11 12:48:54.360 7227-7227/? E/android.os.Debug: failed to load memtrack module: -2
12-11 12:48:55.664 7242-7242/? E/memtrack: Couldn't load memtrack module (No such file or directory)
12-11 12:48:55.664 7242-7242/? E/android.os.Debug: failed to load memtrack module: -2
12-11 12:49:18.440 7254-7254/? E/memtrack: Couldn't load memtrack module (No such file or directory)
12-11 12:49:18.440 7254-7254/? E/android.os.Debug: failed to load memtrack module: -2
12-11 12:49:18.462 7254-7268/? E/art: Thread attaching while runtime is shutting down: Binder_1
12-11 12:49:18.462 7256-7256/? E/memtrack: Couldn't load memtrack module (No such file or directory)
12-11 12:49:18.464 7256-7256/? E/android.os.Debug: failed to load memtrack module: -2
12-11 12:49:18.917 7272-7272/? E/memtrack: Couldn't load memtrack module (No such file or directory)
12-11 12:49:18.917 7272-7272/? E/android.os.Debug: failed to load memtrack module: -2
12-11 12:49:19.245 7283-7283/? E/memtrack: Couldn't load memtrack module (No such file or directory)
12-11 12:49:19.245 7283-7283/? E/android.os.Debug: failed to load memtrack module: -2
12-11 12:49:19.633 7294-7294/? E/memtrack: Couldn't load memtrack module (No such file or directory)
12-11 12:49:19.633 7294-7294/? E/android.os.Debug: failed to load memtrack module: -2
12-11 12:49:20.405 1311-1311/? E/installd: Couldn't opendir /data/app/vmdl475084502.tmp: No such file or directory
12-11 12:49:20.663 1922-5855/com.google.android.gms.persistent E/NetworkScheduler: Unrecognised action provided: android.intent.action.PACKAGE_REMOVED
12-11 12:49:21.461 7330-7330/? E/memtrack: Couldn't load memtrack module (No such file or directory)
12-11 12:49:21.461 7330-7330/? E/android.os.Debug: failed to load memtrack module: -2
12-11 12:49:21.704 1941-2129/com.android.launcher3 E/Surface: getSlotFromBufferLocked: unknown buffer: 0xaab0a3c0
12-11 12:49:24.408 1588-3667/system_process E/Surface: getSlotFromBufferLocked: unknown buffer: 0x9c2f58c0
12-11 12:49:24.430 7357-7357/? E/dex2oat: Failed to create oat file: /data/dalvik-cache/x86/data#app#com.example.ahmadkhan.rcs-1#split_lib_dependencies_apk.apk#classes.dex: Permission denied
12-11 12:49:24.571 7359-7359/? E/dex2oat: Failed to create oat file: /data/dalvik-cache/x86/data#app#com.example.ahmadkhan.rcs-1#split_lib_slice_0_apk.apk#classes.dex: Permission denied
12-11 12:49:24.607 7361-7361/? E/dex2oat: Failed to create oat file: /data/dalvik-cache/x86/data#app#com.example.ahmadkhan.rcs-1#split_lib_slice_1_apk.apk#classes.dex: Permission denied
12-11 12:49:24.653 7363-7363/? E/dex2oat: Failed to create oat file: /data/dalvik-cache/x86/data#app#com.example.ahmadkhan.rcs-1#split_lib_slice_2_apk.apk#classes.dex: Permission denied
12-11 12:49:24.679 7365-7365/? E/dex2oat: Failed to create oat file: /data/dalvik-cache/x86/data#app#com.example.ahmadkhan.rcs-1#split_lib_slice_3_apk.apk#classes.dex: Permission denied
12-11 12:49:24.691 7367-7367/? E/dex2oat: Failed to create oat file: /data/dalvik-cache/x86/data#app#com.example.ahmadkhan.rcs-1#split_lib_slice_4_apk.apk#classes.dex: Permission denied
12-11 12:49:24.702 7369-7369/? E/dex2oat: Failed to create oat file: /data/dalvik-cache/x86/data#app#com.example.ahmadkhan.rcs-1#split_lib_slice_5_apk.apk#classes.dex: Permission denied
12-11 12:49:24.717 7371-7371/? E/dex2oat: Failed to create oat file: /data/dalvik-cache/x86/data#app#com.example.ahmadkhan.rcs-1#split_lib_slice_6_apk.apk#classes.dex: Permission denied
12-11 12:49:24.736 7373-7373/? E/dex2oat: Failed to create oat file: /data/dalvik-cache/x86/data#app#com.example.ahmadkhan.rcs-1#split_lib_slice_7_apk.apk#classes.dex: Permission denied
12-11 12:49:24.751 7375-7375/? E/dex2oat: Failed to create oat file: /data/dalvik-cache/x86/data#app#com.example.ahmadkhan.rcs-1#split_lib_slice_8_apk.apk#classes.dex: Permission denied
12-11 12:49:24.769 7377-7377/? E/dex2oat: Failed to create oat file: /data/dalvik-cache/x86/data#app#com.example.ahmadkhan.rcs-1#split_lib_slice_9_apk.apk#classes.dex: Permission denied
12-11 12:49:25.398 1216-1276/? E/SurfaceFlinger: ro.sf.lcd_density must be defined as a build property
12-11 12:49:28.874 7344-7384/com.example.ahmadkhan.rcs E/Surface: getSlotFromBufferLocked: unknown buffer: 0xae5828c0
12-11 12:50:11.906 7405-7405/? E/memtrack: Couldn't load memtrack module (No such file or directory)
12-11 12:50:11.906 7405-7405/? E/android.os.Debug: failed to load memtrack module: -2
12-11 12:50:12.273 7420-7420/? E/memtrack: Couldn't load memtrack module (No such file or directory)
12-11 12:50:12.273 7420-7420/? E/android.os.Debug: failed to load memtrack module: -2
12-11 12:50:21.745 7430-7430/? E/memtrack: Couldn't load memtrack module (No such file or directory)
12-11 12:50:21.745 7430-7430/? E/android.os.Debug: failed to load memtrack module: -2
12-11 12:50:21.748 7432-7432/? E/memtrack: Couldn't load memtrack module (No such file or directory)
12-11 12:50:21.748 7432-7432/? E/android.os.Debug: failed to load memtrack module: -2
12-11 12:50:21.765 7432-7446/? E/art: Thread attaching while runtime is shutting down: Binder_2
12-11 12:50:21.766 7430-7444/? E/art: Thread attaching while runtime is shutting down: Binder_1
12-11 12:50:23.806 7454-7454/? E/memtrack: Couldn't load memtrack module (No such file or directory)
12-11 12:50:23.806 7454-7454/? E/android.os.Debug: failed to load memtrack module: -2
12-11 12:50:24.189 1941-2129/com.android.launcher3 E/Surface: getSlotFromBufferLocked: unknown buffer: 0xaab0a820
12-11 12:50:26.829 1588-3667/system_process E/Surface: getSlotFromBufferLocked: unknown buffer: 0x9c2f5f00
12-11 12:50:26.849 7475-7475/? E/dex2oat: Failed to create oat file: /data/dalvik-cache/x86/data#app#com.example.ahmadkhan.rcs-1#split_lib_dependencies_apk.apk#classes.dex: Permission denied
12-11 12:50:27.146 7477-7477/? E/dex2oat: Failed to create oat file: /data/dalvik-cache/x86/data#app#com.example.ahmadkhan.rcs-1#split_lib_slice_0_apk.apk#classes.dex: Permission denied
12-11 12:50:27.172 7480-7480/? E/dex2oat: Failed to create oat file: /data/dalvik-cache/x86/data#app#com.example.ahmadkhan.rcs-1#split_lib_slice_1_apk.apk#classes.dex: Permission denied
12-11 12:50:27.189 7482-7482/? E/dex2oat: Failed to create oat file: /data/dalvik-cache/x86/data#app#com.example.ahmadkhan.rcs-1#split_lib_slice_2_apk.apk#classes.dex: Permission denied
12-11 12:50:27.209 7484-7484/? E/dex2oat: Failed to create oat file: /data/dalvik-cache/x86/data#app#com.example.ahmadkhan.rcs-1#split_lib_slice_3_apk.apk#classes.dex: Permission denied
12-11 12:50:27.229 7486-7486/? E/dex2oat: Failed to create oat file: /data/dalvik-cache/x86/data#app#com.example.ahmadkhan.rcs-1#split_lib_slice_4_apk.apk#classes.dex: Permission denied
12-11 12:50:27.248 7488-7488/? E/dex2oat: Failed to create oat file: /data/dalvik-cache/x86/data#app#com.example.ahmadkhan.rcs-1#split_lib_slice_5_apk.apk#classes.dex: Permission denied
12-11 12:50:27.261 7490-7490/? E/dex2oat: Failed to create oat file: /data/dalvik-cache/x86/data#app#com.example.ahmadkhan.rcs-1#split_lib_slice_6_apk.apk#classes.dex: Permission denied
12-11 12:50:27.280 7492-7492/? E/dex2oat: Failed to create oat file: /data/dalvik-cache/x86/data#app#com.example.ahmadkhan.rcs-1#split_lib_slice_7_apk.apk#classes.dex: Permission denied
12-11 12:50:27.301 7494-7494/? E/dex2oat: Failed to create oat file: /data/dalvik-cache/x86/data#app#com.example.ahmadkhan.rcs-1#split_lib_slice_8_apk.apk#classes.dex: Permission denied
12-11 12:50:27.319 7496-7496/? E/dex2oat: Failed to create oat file: /data/dalvik-cache/x86/data#app#com.example.ahmadkhan.rcs-1#split_lib_slice_9_apk.apk#classes.dex: Permission denied
12-11 12:50:28.180 1216-1271/? E/SurfaceFlinger: ro.sf.lcd_density must be defined as a build property
12-11 12:50:31.628 7462-7503/com.example.ahmadkhan.rcs E/Surface: getSlotFromBufferLocked: unknown buffer: 0xaab0a960
12-11 12:50:48.150 1588-1639/system_process E/InputDispatcher: channel 'd063fc9 com.example.ahmadkhan.rcs/com.example.ahmadkhan.rcs.testfirebasedbActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
One of the most common reasons I see that error, Channel is unrecoverably broken and will be disposed! is when you are trying to display an alert dialog or progress dialog in an activity that is not in the foreground.
Regarding your screenshot, that data is what papershapshot object contains. I cannot see something wrong there.
I develop an android app in phonegap
but when I open the app in succession then app opens and shows a blank white page?!
I do the follwoing: open, close(with backbutton),open,close then app open with blank page?!
logcat :
07-03 15:10:23.894: D/Config(11923): Unlimited access to network resources
07-03 15:10:23.904: I/CordovaLog(11923): Found start page location: index.html
07-03 15:10:23.904: I/CordovaLog(11923): Changing log level to DEBUG(3)
07-03 15:10:23.904: D/CordovaActivity(11923): CordovaActivity.onCreate()
07-03 15:10:23.914: D/CordovaWebView(11923): CordovaWebView is running on device made by: samsung
07-03 15:10:23.914: D/JsMessageQueue(11923): Set native->JS mode to 2
07-03 15:10:23.914: D/CordovaActivity(11923): CordovaActivity.init()
07-03 15:10:23.924: D/CordovaWebView(11923): >>> loadUrl(file:///android_asset/www/index.html)
07-03 15:10:23.924: D/PluginManager(11923): init()
07-03 15:10:23.924: D/CordovaWebView(11923): >>> loadUrlNow()
07-03 15:10:23.934: D/Config(11923): Unlimited access to network resources
07-03 15:10:23.934: I/CordovaLog(11923): Found start page location: index.html
07-03 15:10:23.934: I/CordovaLog(11923): Changing log level to DEBUG(3)
07-03 15:10:23.934: D/CordovaActivity(11923): Resuming the App
07-03 15:10:23.934: D/CordovaActivity(11923): CB-3064: The errorUrl is null
07-03 15:10:23.934: D/SecWifiDisplayUtil(11923): Metadata value : SecSettings2
07-03 15:10:23.934: D/ViewRootImpl(11923): #1 mView = com.android.internal.policy.PhoneWindow$DecorView{5319767 I.E...... R.....ID 0,0-0,0}
07-03 15:10:23.964: D/SoftKeyboardDetect(11923): Ignore this event
07-03 15:10:24.004: D/ViewRootImpl(11923): MSG_RESIZED_REPORT: ci=Rect(0, 63 - 0, 0) vi=Rect(0, 63 - 0, 0) or=1
07-03 15:10:24.004: D/CordovaActivity(11923): onMessage(onPageStarted,file:///android_asset/www/index.html)
07-03 15:10:24.014: D/SoftKeyboardDetect(11923): Ignore this event
07-03 15:10:24.014: I/Timeline(11923): Timeline: Activity_idle id: android.os.BinderProxy#1404550 time:256529963
07-03 15:10:24.014: W/cr_BindingManager(11923): Cannot call determinedVisibility() - never saw a connection for the pid: 11923
07-03 15:10:24.184: E/AndroidProtocolHandler(11923): Unable to open asset URL: file:///android_asset/www/cordova_plugins.js
07-03 15:10:24.184: D/CordovaLog(11923): file:///android_asset/www/js/custom.js: Line 77 : Uncaught TypeError: Cannot read property 'connection' of undefined
07-03 15:10:24.184: I/chromium(11923): [INFO:CONSOLE(77)] "Uncaught TypeError: Cannot read property 'connection' of undefined", source: file:///android_asset/www/js/custom.js (77)
07-03 15:10:24.254: D/CordovaNetworkManager(11923): Connection Type: none
07-03 15:10:24.254: D/CordovaNetworkManager(11923): Connection Type: none
07-03 15:10:24.254: D/CordovaActivity(11923): onMessage(networkconnection,none)
07-03 15:10:24.254: D/CordovaActivity(11923): onMessage(spinner,stop)
07-03 15:10:24.334: D/CordovaWebViewClient(11923): onPageFinished(file:///android_asset/www/index.html)
07-03 15:10:24.334: D/CordovaActivity(11923): onMessage(onPageFinished,file:///android_asset/www/index.html)
07-03 15:10:39.174: D/CordovaActivity(11923): Paused the application!
07-03 15:10:39.174: D/CordovaWebView(11923): Handle the pause
07-03 15:10:39.194: V/ActivityThread(11923): updateVisibility : ActivityRecord{6130f7b token=android.os.BinderProxy#1404550 {da.com.ir/da.com.ir.Main}} show : true
I'm currently running into a problem where the code
googleApiClient = new GoogleApiClient.Builder(activity, this,this)
.addApi(Games.API).addScope(Games.SCOPE_GAMES)
.build();
works just fine, but
googleApiClient = new GoogleApiClient.Builder(activity, this,this)
.addApi(Drive.API)
.build();
doesn't want to connect, only returning
ConnectionResult{statusCode=INTERNAL_ERROR, resolution=null, message=null}
There seems to be a lot of questions on this, but most of them only adress a specific scenario. So far it seems like my scenario would be unique, and therefore off-topic on this site. My product name is set in the developer console, the package matches and the signature is correct. The required apis are enabled, and no suggestion given in any topic seems to help out. It seems like only time, trial and error will solve this problem in my case.
Now the question arises however, how does one debug this problem? It seems to be such a common problem without a common resolution, so what steps would one take to find out how to resolve the problem?
Edit:
To get a bit more specific on this scenario, it seems like the problem lies somewhere with the com.google.android.gms service. That one crashes every time. Below this is the logcat of the following code:
new AsyncTask<Void,Void,Void>() {
#Override
protected Void doInBackground(Void... voids) {
Log.d("Snapshot", "3");
googleApiClient.blockingConnect();
Log.d("Snapshot", "4");
return null;
}
}.execute();
The errors in this logcat are consistent and occur every time, Of course with varying timestamps and process ID's, and some of this is probably unrelated to the issue, but to me it's near impossible to filter this out.
07-03 16:05:52.025 23176-24251/nl.dvandenberg.energymonitor D/Snapshot: 3
--------- beginning of system
07-03 16:05:52.026 891-6829/? W/AppOps: Bad call: specified package com.google.android.gms under uid 10252 but it is really 10010
07-03 16:05:52.043 335-1227/? D/AudioPolicyManager: startOutput()--
07-03 16:05:52.043 335-1227/? I/AudioFlinger: vl# new track,stream:1,masterVolume:1.000000,typeVolume:0.501188,vlf:0.501160,vrf:0.501160
07-03 16:05:52.046 335-987/? D/audio_hw_primary: start_output_stream: enter: stream(0xb59a3640)usecase(1: low-latency-playback) devices(0x2)
07-03 16:05:52.046 335-987/? D/audio_hw_primary: select_devices: out_snd_device(2: speaker) in_snd_device(0: )
07-03 16:05:52.046 335-987/? D/hardware_info: hw_info_append_hw_type : device_name = speaker
07-03 16:05:52.046 335-987/? D/ACDB-LOADER: ACDB -> send_audio_cal, acdb_id = 15, path = 0
07-03 16:05:52.051 335-987/? E/msm8974_platform: wdd add mixer_path low-latency-playback i2s prop_value 15055
07-03 16:05:52.052 335-987/? D/audio_hw_primary: select_devices: done
07-03 16:05:52.175 891-1864/? D/ConnectivityService: listenForNetwork for NetworkRequest [ id=3904, legacyType=-1, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VPN] ]
07-03 16:05:52.175 891-1245/? D/ConnectivityService: handleRegisterNetworkRequest checking NetworkAgentInfo [WIFI () - 382]
07-03 16:05:52.175 891-1245/? D/ConnectivityService: apparently satisfied. currentScore=60
07-03 16:05:52.176 891-1245/? D/ConnectivityService: sending notification AVAILABLE for NetworkRequest [ id=3904, legacyType=-1, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VPN] ]
07-03 16:05:52.177 26026-26135/? D/ConnectivityManager.CallbackHandler: CM callback handler got msg 524290
07-03 16:05:52.311 26026-26136/? W/DriveInitializer: Background init thread started
07-03 16:05:52.331 26141-26141/? D/StatusBar.MSimNetworkController: refreshViews phoneId =0mMSimDataConnected =false
07-03 16:05:52.331 26141-26141/? D/StatusBar.MSimNetworkController: refreshViews mMSimDataActivity =0
07-03 16:05:52.334 26141-26141/? D/StatusBar.MSimNetworkController: refreshViews: Data not connected!! Set no data type icon / Roaming for phoneId: 0
07-03 16:05:52.335 335-985/? D/AudioPolicyManager: stopOutput() output 4, stream 1, session 785
07-03 16:05:52.335 335-985/? D/AudioPolicyManager: stopOutput()--
07-03 16:05:52.360 26026-26137/? I/DynamiteModule: Considering local module com.google.android.gms.googlecertificates:1 and remote module com.google.android.gms.googlecertificates:1
07-03 16:05:52.360 26026-26137/? I/DynamiteModule: Selected remote version of com.google.android.gms.googlecertificates, version >= 1
07-03 16:05:52.391 26026-26137/? D/ChimeraFileApk: Primary ABI of requesting process is armeabi-v7a
07-03 16:05:52.393 26026-26137/? D/ChimeraFileApk: Classloading successful. Optimized code found.
07-03 16:05:52.393 26026-26137/? I/asset: Success to oxygen resources /system/framework/oxygen-framework-res.apk
07-03 16:05:52.398 26026-26137/? D/GoogleCertificates: com.google.android.gms.googlecertificates module is loaded
07-03 16:05:52.455 26026-26139/? I/GCore-Chimera-Crash: Cg0KB3ZJbmZyYTQQor84Gl8KHWNvbS5nb29nbGUuYW5kcm9pZC
5wbGF5LmdhbWVzEhQzLjcuMjMgKDI4Njc2MzctMDM4KRjWq-AR
IiMKHGNvbS5nb29nbGUuYW5kcm9pZC5nbXMuZ2FtZXMQsKvgEQ
==
GCore-Chimera-Crash
--------- beginning of crash
07-03 16:05:52.458 26026-26139/? E/AndroidRuntime: FATAL EXCEPTION: highpool[0]
Process: com.google.android.gms, PID: 26026
java.lang.NullPointerException: Attempt to read from field 'kau jwg.a' on a null object reference
at jzf.a(:com.google.android.gms:336)
at kip.a(:com.google.android.gms:11149)
at kip.b(:com.google.android.gms:415)
at kiq.run(:com.google.android.gms:1054)
at loq.run(:com.google.android.gms:53)
at itt.run(:com.google.android.gms:453)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at iyg.run(:com.google.android.gms:17)
at java.lang.Thread.run(Thread.java:818)
07-03 16:05:52.460 26026-26139/? E/AndroidRuntime: Error reporting crash
java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare()
at android.os.Handler.<init>(Handler.java:200)
at android.os.Handler.<init>(Handler.java:114)
at android.content.AsyncQueryHandler.<init>(AsyncQueryHandler.java:125)
at net.oneplus.odm.insight.tracker.AbstractTracker$TrackerAsyncQueryHandler.<init>(AbstractTracker.java:110)
at net.oneplus.odm.insight.tracker.AbstractTracker.<init>(AbstractTracker.java:60)
at net.oneplus.odm.insight.tracker.AppTracker.<init>(AppTracker.java:24)
at com.android.internal.os.RuntimeInit$UncaughtHandler.uncaughtException(RuntimeInit.java:99)
at icd.uncaughtException(:com.google.android.gms:54)
at ibx.uncaughtException(:com.google.android.gms:62)
at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:693)
at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:690)
07-03 16:05:52.463 26026-26139/? I/Process: Sending signal. PID: 26026 SIG: 9
07-03 16:05:52.489 891-3957/? I/ActivityManager: Process com.google.android.gms (pid 26026) has died
07-03 16:05:52.489 891-5403/? E/WifiService: Multicaster binderDied
07-03 16:05:52.489 891-1250/? D/ConnectivityService: ConnectivityService NetworkRequestInfo binderDied(NetworkRequest [ id=3904, legacyType=-1, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VPN] ], android.os.BinderProxy#d4be6da)
07-03 16:05:52.490 891-1245/? D/ConnectivityService: releasing NetworkRequest NetworkRequest [ id=3904, legacyType=-1, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VPN] ]
07-03 16:05:52.490 891-1245/? D/ConnectivityService: sending notification RELEASED for NetworkRequest [ id=3904, legacyType=-1, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VPN] ]
07-03 16:05:52.491 891-1245/? E/ConnectivityService: RemoteException caught trying to send a callback msg for NetworkRequest [ id=3904, legacyType=-1, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VPN] ]
07-03 16:05:52.492 19485-19485/? V/GAV3: Thread[main,5,main]: service disconnected: ComponentInfo{com.google.android.gms/com.google.android.gms.analytics.service.AnalyticsService}
07-03 16:05:52.492 19485-19485/? V/GAV3: Thread[main,5,main]: Unexpected disconnect.
07-03 16:05:52.493 19485-19485/? V/GAV3: Thread[main,5,main]: service disconnected: ComponentInfo{com.google.android.gms/com.google.android.gms.analytics.service.AnalyticsService}
07-03 16:05:52.493 19485-19485/? V/GAV3: Thread[main,5,main]: Unexpected disconnect.
07-03 16:05:52.496 891-3957/? W/ActivityManager: Scheduling restart of crashed service com.google.android.gms/com.google.android.location.places.service.GeoDataService in 1000ms
07-03 16:05:52.496 891-3957/? W/ActivityManager: Scheduling restart of crashed service com.google.android.gms/.drive.api.ApiService in 11000ms
07-03 16:05:52.496 891-3957/? W/ActivityManager: Scheduling restart of crashed service com.google.android.gms/.analytics.service.AnalyticsService in 21000ms
07-03 16:05:52.497 891-3957/? W/ActivityManager: Scheduling restart of crashed service com.google.android.gms/.signin.service.SignInAsyncService in 31000ms
07-03 16:05:52.497 891-3957/? W/ActivityManager: Scheduling restart of crashed service com.google.android.gms/.measurement.service.MeasurementBrokerService in 31000ms
07-03 16:05:52.497 891-3957/? W/ActivityManager: Scheduling restart of crashed service com.google.android.gms/.signin.service.SignInBrokerService in 41000ms
07-03 16:05:52.497 891-3957/? W/ActivityManager: Scheduling restart of crashed service com.google.android.gms/.cast.media.CastMediaRouteProviderService in 51000ms
07-03 16:05:52.508 23176-23176/nl.dvandenberg.energymonitor D/Snapshot: Connection failed: ConnectionResult{statusCode=INTERNAL_ERROR, resolution=null, message=null}
07-03 16:05:52.513 23176-23176/nl.dvandenberg.energymonitor I/AppCompatDelegate: The Activity's LayoutInflater already has a Factory installed so we can not install AppCompat's
07-03 16:05:52.529 891-5403/? V/WindowManager: not Base app: Adding window Window{3ad0e9e8 u0 nl.dvandenberg.energymonitor/nl.dvandenberg.energymonitor.SplashActivity} at 23 of 29
07-03 16:05:52.540 23176-24251/nl.dvandenberg.energymonitor D/Snapshot: 4
Edit 2:
I have managed to solve my own problem, by adding .addApi(Plus.API).addScope(Plus.SCOPE_PLUS_LOGIN) to the builder. I've got no idea as to why this works or is needed, but as long as it works I'll take it.
I'm not posting this as an answer, as in this question I'd like to focus on how to find the source of this issue, not on making a list of possible solutions.
I've created an AVD (version 2.2) using preferences set as default.
However everytime I start it I got error messages list below:
12-26 16:19:07.566: ERROR/Zygote(33): setreuid() failed. errno: 2
12-26 16:19:15.707: ERROR/Zygote(33): setreuid() failed. errno: 17
12-26 16:19:17.635: ERROR/BatteryService(87): usbOnlinePath not found
12-26 16:19:17.635: ERROR/BatteryService(87): batteryVoltagePath not found
12-26 16:19:17.645: ERROR/BatteryService(87): batteryTemperaturePath not found
12-26 16:19:17.695: ERROR/SurfaceFlinger(87): Couldn't open /sys/power/wait_for_fb_sleep or /sys/power/wait_for_fb_wake
12-26 16:19:48.305: ERROR/EventHub(87): could not get driver version for /dev/input/mouse0, Not a typewriter
12-26 16:19:48.305: ERROR/EventHub(87): could not get driver version for /dev/input/mice, Not a typewriter
12-26 16:19:48.495: ERROR/System(87): Failure starting core service
12-26 16:19:48.495: ERROR/System(87): java.lang.SecurityException
12-26 16:19:48.495: ERROR/System(87): at android.os.BinderProxy.transact(Native Method)
12-26 16:19:48.495: ERROR/System(87): at android.os.ServiceManagerProxy.addService(ServiceManagerNative.java:146)
12-26 16:19:48.495: ERROR/System(87): at android.os.ServiceManager.addService(ServiceManager.java:72)
12-26 16:19:48.495: ERROR/System(87): at com.android.server.ServerThread.run(SystemServer.java:184)
12-26 16:19:49.675: ERROR/SoundPool(87): error loading /system/media/audio/ui/Effect_Tick.ogg
12-26 16:19:49.685: ERROR/SoundPool(87): error loading /system/media/audio/ui/KeypressStandard.ogg
12-26 16:19:49.705: ERROR/SoundPool(87): error loading /system/media/audio/ui/KeypressSpacebar.ogg
12-26 16:19:49.716: ERROR/SoundPool(87): error loading /system/media/audio/ui/KeypressDelete.ogg
12-26 16:19:49.725: ERROR/SoundPool(87): error loading /system/media/audio/ui/KeypressReturn.ogg
12-26 16:19:54.736: ERROR/ThrottleService(87): Could not open GPS configuration file /etc/gps.conf
12-26 16:19:54.836: ERROR/ThrottleService(87): Error reading data file
12-26 16:19:55.816: ERROR/logwrapper(186): executing /system/bin/tc failed: No such file or directory
12-26 16:19:55.916: ERROR/logwrapper(188): executing /system/bin/tc failed: No such file or directory
12-26 16:19:55.995: ERROR/logwrapper(190): executing /system/bin/tc failed: No such file or directory
12-26 16:20:02.135: ERROR/logwrapper(202): executing /system/bin/tc failed: No such file or directory
12-26 16:20:02.245: ERROR/logwrapper(203): executing /system/bin/tc failed: No such file or directory
12-26 16:20:02.295: ERROR/logwrapper(204): executing /system/bin/tc failed: No such file or directory
12-27 00:20:16.924: ERROR/HierarchicalStateMachine(87): TetherMaster - unhandledMessage: msg.what=3
12-27 00:20:17.174: ERROR/HierarchicalStateMachine(87): TetherMaster - unhandledMessage: msg.what=3
12-27 00:20:21.224: ERROR/HierarchicalStateMachine(87): TetherMaster - unhandledMessage: msg.what=3
12-27 00:20:47.534: ERROR/MetadataRetrieverClient(34): failed to extract an album art
12-27 00:21:24.814: ERROR/ThrottleService(87): Error reading data file
Please let me know how can I fix these errors. Thanks a lot!
Unless you are experiencing actual problems, you can ignore error messages that occur during the startup of your emulator.
07-03 23:59:01.067: ERROR/vold(26): Error opening switch name path '/sys/class/switch/test' (No such file or directory)
07-03 23:59:01.067: ERROR/vold(26): Error bootstrapping switch '/sys/class/switch/test' (No such file or directory)
07-03 23:59:01.067: ERROR/vold(26): Error opening switch name path '/sys/class/switch/test2' (No such file or directory)
07-03 23:59:01.067: ERROR/vold(26): Error bootstrapping switch '/sys/class/switch/test2' (No such file or directory)
07-03 23:59:28.297: ERROR/BatteryService(60): usbOnlinePath not found
07-03 23:59:28.307: ERROR/BatteryService(60): batteryVoltagePath not found
07-03 23:59:28.307: ERROR/BatteryService(60): batteryTemperaturePath not found
07-03 23:59:28.407: ERROR/SurfaceFlinger(60): Couldn't open /sys/power/wait_for_fb_sleep or /sys/power/wait_for_fb_wake
07-03 23:59:39.097: ERROR/EventHub(60): could not get driver version for /dev/input/mouse0, Not a typewriter
07-03 23:59:39.137: ERROR/EventHub(60): could not get driver version for /dev/input/mice, Not a typewriter
07-03 23:59:39.777: ERROR/System(60): Failure starting core service
07-03 23:59:39.777: ERROR/System(60): java.lang.SecurityException
07-03 23:59:39.777: ERROR/System(60): at android.os.BinderProxy.transact(Native Method)
07-03 23:59:39.777: ERROR/System(60): at android.os.ServiceManagerProxy.addService(ServiceManagerNative.java:146)
07-03 23:59:39.777: ERROR/System(60): at android.os.ServiceManager.addService(ServiceManager.java:72)
07-03 23:59:39.777: ERROR/System(60): at com.android.server.ServerThread.run(SystemServer.java:176)
07-03 23:59:39.837: ERROR/AndroidRuntime(60): Crash logging skipped, no checkin service
07-04 00:00:00.400: ERROR/vold(26): Cannot start volume '/sdcard' (volume is not bound)
07-04 00:00:01.147: ERROR/MediaPlayerService(30): Couldn't open fd for content://settings/system/notification_sound
07-04 00:00:01.227: ERROR/MediaPlayer(60): Unable to to create media player
07-04 00:00:06.315: ERROR/ActivityThread(104): Failed to find provider info for android.server.checkin
07-04 00:00:11.615: ERROR/ActivityThread(104): Failed to find provider info for android.server.checkin
07-04 00:00:12.124: ERROR/ActivityThread(104): Failed to find provider info for android.server.checkin
07-04 00:00:35.335: ERROR/AndroidRuntime(126): ERROR: thread attach failed
07-04 00:00:42.835: ERROR/AndroidRuntime(211): ERROR: thread attach failed
I'm assuming that you're working on Android, and that you're also referring to the exception in the middle of the log.
The SecurityException means you probably forgot to give the application the necessary permissions - you should change the Manifest XML file, as explained here.