fatal error: android_runtime/AndroidRuntime.h 10C

最近搞jni各种坑啊~~~~~~~~
想调用

 JNIEnv* env = AndroidRuntime::getJNIEnv();

获取env对象,在Android.mk中添加

 LOCAL_SHARED_LIBRARIES += libcutils libandroid_runtime libnativehelper

并在调用处添加头文件

 #include "android_runtime/AndroidRuntime.h"

就是编译不成功!!
是配置步骤错了?还是啥的?在线等

4个回答

JNI代码的路径与JAVA的代码路径要保持一致。

具体参考:http://www.360doc.com/content/11/0419/15/474846_110780093.shtml

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
百度地图API初始化时BMapManager对象出错
03-27 03:23:58.684: E/Trace(2724): error opening trace file: No such file or directory (2) 03-27 03:23:58.885: W/dalvikvm(2724): Exception Ljava/lang/UnsatisfiedLinkError; thrown while initializing Lcom/baidu/mapapi/BMapManager; 03-27 03:23:58.885: D/AndroidRuntime(2724): Shutting down VM 03-27 03:23:58.915: W/dalvikvm(2724): threadid=1: thread exiting with uncaught exception (group=0x40a71930) 03-27 03:23:58.974: E/AndroidRuntime(2724): FATAL EXCEPTION: main 03-27 03:23:58.974: E/AndroidRuntime(2724): java.lang.ExceptionInInitializerError 03-27 03:23:58.974: E/AndroidRuntime(2724): at com.gps.zhouji.Manager.CacheManager.onCreate(CacheManager.java:191) 03-27 03:23:58.974: E/AndroidRuntime(2724): at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1000) 03-27 03:23:58.974: E/AndroidRuntime(2724): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4391) 03-27 03:23:58.974: E/AndroidRuntime(2724): at android.app.ActivityThread.access$1300(ActivityThread.java:141) 03-27 03:23:58.974: E/AndroidRuntime(2724): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1294) 03-27 03:23:58.974: E/AndroidRuntime(2724): at android.os.Handler.dispatchMessage(Handler.java:99) 03-27 03:23:58.974: E/AndroidRuntime(2724): at android.os.Looper.loop(Looper.java:137) 03-27 03:23:58.974: E/AndroidRuntime(2724): at android.app.ActivityThread.main(ActivityThread.java:5041) 03-27 03:23:58.974: E/AndroidRuntime(2724): at java.lang.reflect.Method.invokeNative(Native Method) 03-27 03:23:58.974: E/AndroidRuntime(2724): at java.lang.reflect.Method.invoke(Method.java:511) 03-27 03:23:58.974: E/AndroidRuntime(2724): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793) 03-27 03:23:58.974: E/AndroidRuntime(2724): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560) 03-27 03:23:58.974: E/AndroidRuntime(2724): at dalvik.system.NativeStart.main(Native Method) 03-27 03:23:58.974: E/AndroidRuntime(2724): Caused by: java.lang.UnsatisfiedLinkError: Couldn't load BaiduMapSDK_v2_2_0 from loader dalvik.system.PathClassLoader[dexPath=/data/app/com.gps.zhouji-1.apk,libraryPath=/data/app-lib/com.gps.zhouji-1]: findLibrary returned null 03-27 03:23:58.974: E/AndroidRuntime(2724): at java.lang.Runtime.loadLibrary(Runtime.java:365) 03-27 03:23:58.974: E/AndroidRuntime(2724): at java.lang.System.loadLibrary(System.java:535) 03-27 03:23:58.974: E/AndroidRuntime(2724): at com.baidu.mapapi.BMapManager.<clinit>(Unknown Source) 03-27 03:23:58.974: E/AndroidRuntime(2724): ... 13 more 03-27 03:28:59.139: I/Process(2724): Sending signal. PID: 2724 SIG: 9
用Xutils3.0加载图片也出现内存溢出。。。?咋解决
12-29 20:38:53.460 1024-1024/? E/AndroidRuntime: FATAL EXCEPTION: main Process: android.ye.fashioncircle, PID: 1024 java.lang.OutOfMemoryError: OutOfMemoryError thrown while trying to throw OutOfMemoryError; no stack trace available 12-29 20:38:53.545 1568-1568/? E/QSEECOMD:: Listener: index = 0, hierarchy = 0 12-29 20:38:53.545 1568-1568/? E/QSEECOMD:: Init dlopen(librpmb.so, RLTD_NOW) is failed.... 12-29 20:38:53.545 1568-1568/? E/QSEECOMD:: ERROR: RPMB_INIT failed, shall not start listener services 12-29 20:38:54.316 21890-21959/? E/anti: anti once 12-29 20:38:54.777 1024-1101/? A/art: art/runtime/runtime.cc:366] Runtime aborting... 12-29 20:38:54.777 1024-1101/? A/art: art/runtime/runtime.cc:366] Aborting thread: 12-29 20:38:54.777 1024-1101/? A/art: art/runtime/runtime.cc:366] "xTID#9" prio=5 tid=35 Native 12-29 20:38:54.777 1024-1101/? A/art: art/runtime/runtime.cc:366] | group="" sCount=1 dsCount=0 obj=0x32c1ed60 self=0xa0d98700 12-29 20:38:54.777 1024-1101/? A/art: art/runtime/runtime.cc:366] | sysTid=1101 nice=0 cgrp=default sched=0/0 handle=0x961fc930 12-29 20:38:54.777 1024-1101/? A/art: art/runtime/runtime.cc:366] | state=R schedstat=( 963313700 614145661 1024 ) utm=84 stm=12 core=1 HZ=100 12-29 20:38:54.777 1024-1101/? A/art: art/runtime/runtime.cc:366] | stack=0x960fa000-0x960fc000 stackSize=1038KB 12-29 20:38:54.777 1024-1101/? A/art: art/runtime/runtime.cc:366] | held mutexes= "abort lock" 12-29 20:38:54.777 1024-1101/? A/art: art/runtime/runtime.cc:366] native: #00 pc 00370e01 /system/lib/libart.so (_ZN3art15DumpNativeStackERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEEiPKcPNS_9ArtMethodEPv+160) 12-29 20:38:54.777 1024-1101/? A/art: art/runtime/runtime.cc:366] native: #01 pc 0035046f /system/lib/libart.so (_ZNK3art6Thread4DumpERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE+150) 12-29 20:38:54.777 1024-1101/? A/art: art/runtime/runtime.cc:366] native: #02 pc 00333827 /system/lib/libart.so (_ZNK3art10AbortState10DumpThreadERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEPNS_6ThreadE+26) 12-29 20:38:54.777 1024-1101/? A/art: art/runtime/runtime.cc:366] native: #03 pc 00333abf /system/lib/libart.so (_ZN3art7Runtime5AbortEv+562) 12-29 20:38:54.777 1024-1101/? A/art: art/runtime/runtime.cc:366] native: #04 pc 000f45fb /system/lib/libart.so (_ZN3art10LogMessageD2Ev+2226) 12-29 20:38:54.777 1024-1101/? A/art: art/runtime/runtime.cc:366] native: #05 pc 0025aa4f /system/lib/libart.so (_ZN3art9JavaVMExt8JniAbortEPKcS2_+1550) 12-29 20:38:54.777 1024-1101/? A/art: art/runtime/runtime.cc:366] native: #06 pc 0025adfd /system/lib/libart.so (_ZN3art9JavaVMExt9JniAbortVEPKcS2_St9__va_list+64) 12-29 20:38:54.777 1024-1101/? A/art: art/runtime/runtime.cc:366] native: #07 pc 000fd1d1 /system/lib/libart.so (_ZN3art11ScopedCheck6AbortFEPKcz+32) 12-29 20:38:54.777 1024-1101/? A/art: art/runtime/runtime.cc:366] native: #08 pc 001022e5 /system/lib/libart.so (_ZN3art11ScopedCheck5CheckERNS_18ScopedObjectAccessEbPKcPNS_12JniValueTypeE.constprop.95+5072) 12-29 20:38:54.777 1024-1101/? A/art: art/runtime/runtime.cc:366] native: #09 pc 00105fbb /system/lib/libart.so (_ZN3art8CheckJNI8ThrowNewEP7_JNIEnvP7_jclassPKc+438) 12-29 20:38:54.777 1024-1101/? A/art: art/runtime/runtime.cc:366] native: #10 pc 000075e3 /data/app/android.ye.fashioncircle-1/lib/arm/libwebpbackport.so (_ZN7_JNIEnv8ThrowNewEP7_jclassPKc+6) 12-29 20:38:54.777 1024-1101/? A/art: art/runtime/runtime.cc:366] native: #11 pc 000079b9 /data/app/android.ye.fashioncircle-1/lib/arm/libwebpbackport.so (Java_android_backport_webp_WebPFactory_nativeDecodeFile+332) 12-29 20:38:54.777 1024-1101/? A/art: art/runtime/runtime.cc:366] native: #12 pc 0000051d /data/app/android.ye.fashioncircle-1/oat/arm/base.odex (android.graphics.Bitmap android.backport.webp.WebPFactory.nativeDecodeFile(java.lang.String, android.graphics.BitmapFactory$Options)+112) 12-29 20:38:54.777 1024-1101/? A/art: art/runtime/runtime.cc:366] native: #13 pc 0000023d /data/app/android.ye.fashioncircle-1/oat/arm/base.odex (android.graphics.Bitmap android.backport.webp.WebPFactory.decodeFile(java.lang.String, android.graphics.BitmapFactory$Options)+80) 12-29 20:38:54.777 1024-1101/? A/art: art/runtime/runtime.cc:366] native: #14 pc 002b0b71 /data/app/android.ye.fashioncircle-1/oat/arm/base.odex (android.graphics.Bitmap org.xutils.image.ImageDecoder.getThumbCache(java.io.File, org.xutils.image.ImageOptions)+820) 12-29 20:38:54.777 1024-1101/? A/art: art/runtime/runtime.cc:366] native: #15 pc 002afe49 /data/app/android.ye.fashioncircle-1/oat/arm/base.odex (android.graphics.drawable.Drawable org.xutils.image.ImageDecoder.decodeFileWithLock(java.io.File, org.xutils.image.ImageOptions, org.xutils.common.Callback$Cancelable)+1404) 12-29 20:38:54.777 1024-1101/? A/art: art/runtime/runtime.cc:366] native: #16 pc 0055a9eb /data/app/android.ye.fashioncircle-1/oat/arm/base.odex (android.graphics.drawable.Drawable org.xutils.image.ImageLoader.prepare(java.io.File)+334) 12-29 20:38:54.777 1024-1101/? A/art: art/runtime/runtime.cc:366] native: #17 pc 0055accd /data/app/android.ye.fashioncircle-1/oat/arm/base.odex (java.lang.Object org.xutils.image.ImageLoader.prepare(java.lang.Object)+104) 12-29 20:38:54.777 1024-1101/? A/art: art/runtime/runtime.cc:366] native: #18 pc 00540181 /data/app/android.ye.fashioncircle-1/oat/arm/base.odex (java.lang.Object org.xutils.http.HttpTask.doBackground()+1572) 12-29 20:38:54.777 1024-1101/? A/art: art/runtime/runtime.cc:366] native: #19 pc 0028487b /data/app/android.ye.fashioncircle-1/oat/arm/base.odex (void org.xutils.common.task.TaskProxy$1.run()+774) 12-29 20:38:54.777 1024-1101/? A/art: art/runtime/runtime.cc:366] native: #20 pc 00283cfb /data/app/android.ye.fashioncircle-1/oat/arm/base.odex (void org.xutils.common.task.PriorityRunnable.run()+62) 12-29 20:38:54.777 1024-1101/? A/art: art/runtime/runtime.cc:366] native: #21 pc 003cebf7 /data/dalvik-cache/arm/system@framework@boot.oat (???) 12-29 20:38:54.777 1024-1101/? A/art: art/runtime/runtime.cc:366] at android.backport.webp.WebPFactory.nativeDecodeFile(Native method) 12-29 20:38:54.777 1024-1101/? A/art: art/runtime/runtime.cc:366] at android.backport.webp.WebPFactory.decodeFile(WebPFactory.java:58) 12-29 20:38:54.777 1024-1101/? A/art: art/runtime/runtime.cc:366] at org.xutils.image.ImageDecoder.getThumbCache(ImageDecoder.java:661) 12-29 20:38:54.777 1024-1101/? A/art: art/runtime/runtime.cc:366] at org.xutils.image.ImageDecoder.decodeFileWithLock(ImageDecoder.java:116) 12-29 20:38:54.777 1024-1101/? A/art: art/runtime/runtime.cc:366] at org.xutils.image.ImageLoader.prepare(ImageLoader.java:375) 12-29 20:38:54.777 1024-1101/? A/art: art/runtime/runtime.cc:366] at org.xutils.image.ImageLoader.prepare(ImageLoader.java:38) 12-29 20:38:54.777 1024-1101/? A/art: art/runtime/runtime.cc:366] at org.xutils.http.HttpTask.doBackground(HttpTask.java:235) 12-29 20:38:54.777 1024-1101/? A/art: art/runtime/runtime.cc:366] at org.xutils.common.task.TaskProxy$1.run(TaskProxy.java:62) 12-29 20:38:54.777 1024-1101/? A/art: art/runtime/runtime.cc:366] at org.xutils.common.task.PriorityRunnable.run(PriorityRunnable.java:21) 12-29 20:38:54.777 1024-1101/? A/art: art/runtime/runtime.cc:366] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113) 12-29 20:38:54.777 1024-1101/? A/art: art/runtime/runtime.cc:366] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588) 12-29 20:38:54.777 1024-1101/? A/art: art/runtime/runtime.cc:366] at java.lang.Thread.run(Thread.java:818)
小白求问为什么应用一进去就闪退了
04-17 22:29:38.316 2512-2512/? I/appproc: denglibo exec app_process! cmdline: /system/bin com.android.commands.pm.Pm install -t -r /data/local/tmp/com.example.hasee.myapplication 04-17 22:29:38.316 2512-2512/? D/AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<< 04-17 22:29:38.317 2512-2512/? D/AndroidRuntime: CheckJNI is OFF 04-17 22:29:38.332 2512-2512/? D/libnativebridge: PreInitializeNativeBridge name=unknown 04-17 22:29:38.359 2512-2512/? E/memtrack: Couldn't load memtrack module (No such file or directory) 04-17 22:29:38.359 2512-2512/? E/android.os.Debug: failed to load memtrack module: -2 04-17 22:29:38.376 2512-2512/? D/AndroidRuntime: Calling main entry com.android.commands.pm.Pm --------- beginning of system 04-17 22:29:38.382 2159-2174/com.android.defcontainer I/NativeHelper: denglibo call findSupportedAbi! abiList=x86 armeabi-v7a armeabi packageName=com.example.hasee.myapplication 04-17 22:29:38.384 2159-2174/com.android.defcontainer D/NativeLibraryHelper: denglibo call LdFindSupportedAbi, param: supportedAbisArray=x86 armeabi-v7a armeabi 04-17 22:29:38.385 2159-2174/com.android.defcontainer D/NativeLibraryHelper: denglibo native LdFindSupportedAbi return! ret=-114 abi=NULL 04-17 22:29:38.388 2159-2173/com.android.defcontainer D/DefContainer: Copying /data/local/tmp/com.example.hasee.myapplication to base.apk 04-17 22:29:38.393 1541-1570/system_process I/NativeHelper: denglibo call findSupportedAbi! abiList=x86 armeabi-v7a armeabi packageName=com.example.hasee.myapplication 04-17 22:29:38.395 1541-1570/system_process D/NativeLibraryHelper: denglibo call LdFindSupportedAbi, param: supportedAbisArray=x86 armeabi-v7a armeabi 04-17 22:29:38.396 1541-1570/system_process D/NativeLibraryHelper: denglibo native LdFindSupportedAbi return! ret=-114 abi=NULL 04-17 22:29:38.409 1541-1570/system_process D/PackageManager: Renaming /data/app/vmdl270166158.tmp to /data/app/com.example.hasee.myapplication-2 04-17 22:29:38.410 1541-1561/system_process I/ActivityManager: Force stopping com.example.hasee.myapplication appid=10031 user=-1: uninstall pkg 04-17 22:29:38.417 1541-1570/system_process I/PackageManager: denglibo-scanPackageDirtyLI oldSeting(packages.xml): com.example.hasee.myapplication orig primaryCpuAbi: null secondaryCpuAbi: null cpuAbiOverride: null myOrigCpuAbi: null 04-17 22:29:38.417 1541-1570/system_process I/PackageManager: Package com.example.hasee.myapplication codePath changed from /data/app/com.example.hasee.myapplication-1 to /data/app/com.example.hasee.myapplication-2; Retaining data and using new 04-17 22:29:38.424 1541-1570/system_process I/NativeHelper: denglibo call findSupportedAbi! abiList=x86 armeabi-v7a armeabi packageName=com.example.hasee.myapplication 04-17 22:29:38.427 1541-1570/system_process D/NativeLibraryHelper: denglibo call LdFindSupportedAbi, param: supportedAbisArray=x86 armeabi-v7a armeabi 04-17 22:29:38.427 1541-1570/system_process D/NativeLibraryHelper: denglibo native LdFindSupportedAbi return! ret=-114 abi=NULL 04-17 22:29:38.428 1541-1570/system_process I/PackageManager: denglibo-copyNativeBinariesForSupportedAbi finish: copyRet = -114 04-17 22:29:38.428 1541-1570/system_process I/PackageManager: Running dexopt on: /data/app/com.example.hasee.myapplication-2/base.apk pkg=com.example.hasee.myapplication isa=x86 vmSafeMode=false 04-17 22:29:38.437 2523-2523/? I/dex2oat: /system/bin/dex2oat --zip-fd=5 --zip-location=/data/app/com.example.hasee.myapplication-2/base.apk --oat-fd=6 --oat-location=/data/dalvik-cache/x86/data@app@com.example.hasee.myapplication-2@base.apk@classes.dex --instruction-set=x86 --instruction-set-features=default --runtime-arg -Xms64m --runtime-arg -Xmx512m --swap-fd=7 04-17 22:29:38.439 2523-2523/? E/libnativebridge: denglibol LoadNativeBridge error! nb_library_filename invalid! 04-17 22:29:38.517 2523-2523/? I/dex2oat: Decided to run without swap. 04-17 22:29:38.539 2523-2523/? W/dex2oat: Before Android 4.1, method int android.support.v7.widget.DropDownListView.lookForSelectablePosition(int, boolean) would have incorrectly overridden the package-private method in android.widget.ListView 04-17 22:29:38.558 2523-2525/? W/dex2oat: Before Android 4.1, method int android.support.v7.widget.MenuPopupWindow$MenuDropDownListView.lookForSelectablePosition(int, boolean) would have incorrectly overridden the package-private method in android.widget.ListView 04-17 22:29:38.560 2523-2525/? W/dex2oat: 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 04-17 22:29:39.453 2523-2523/? I/dex2oat: dex2oat took 1.015s (threads: 2) arena alloc=306KB java alloc=3MB native alloc=6MB free=9MB 04-17 22:29:39.454 1541-1570/system_process W/PackageManager: Code path for pkg : com.example.hasee.myapplication changing from /data/app/com.example.hasee.myapplication-1 to /data/app/com.example.hasee.myapplication-2 04-17 22:29:39.454 1541-1570/system_process W/PackageManager: Resource path for pkg : com.example.hasee.myapplication changing from /data/app/com.example.hasee.myapplication-1 to /data/app/com.example.hasee.myapplication-2 04-17 22:29:39.455 1541-1561/system_process I/ActivityManager: Force stopping com.example.hasee.myapplication appid=10031 user=-1: update pkg 04-17 22:29:39.464 1541-1570/system_process I/ActivityManager: Force stopping com.example.hasee.myapplication appid=10031 user=0: pkg removed 04-17 22:29:39.471 1752-1752/com.android.launcher3 I/art: Explicit concurrent mark sweep GC freed 1842(105KB) AllocSpace objects, 3(108KB) LOS objects, 39% free, 11MB/19MB, paused 137us total 6.681ms 04-17 22:29:39.473 1994-1994/com.android.flysilkworm I/art: Explicit concurrent mark sweep GC freed 165(6KB) AllocSpace objects, 1(36KB) LOS objects, 24% free, 8MB/11MB, paused 126us total 6.168ms 04-17 22:29:39.478 1644-1644/com.android.systemui I/art: Explicit concurrent mark sweep GC freed 17097(644KB) AllocSpace objects, 0(0B) LOS objects, 39% free, 16MB/27MB, paused 156us total 13.779ms 04-17 22:29:39.485 1541-1587/system_process I/InputReader: Reconfiguring input devices. changes=0x00000010 04-17 22:29:39.486 1541-1587/system_process I/InputReader: Reconfiguring input devices. changes=0x00000010 04-17 22:29:39.487 1714-1714/com.android.emu.coreservice I/EmuCoreService: Broadcast action = android.intent.action.PACKAGE_REMOVED 04-17 22:29:39.491 1541-1570/system_process W/Settings: Setting install_non_market_apps has moved from android.provider.Settings.Global to android.provider.Settings.Secure, returning read-only value. 04-17 22:29:39.491 1541-1587/system_process I/InputReader: Reconfiguring input devices. changes=0x00000010 04-17 22:29:39.492 2093-2093/com.android.keychain W/ContextImpl: Calling a method in the system process without a qualified user: android.app.ContextImpl.startService:1692 android.content.ContextWrapper.startService:516 android.content.ContextWrapper.startService:516 com.android.keychain.KeyChainBroadcastReceiver.onReceive:12 android.app.ActivityThread.handleReceiver:2609 04-17 22:29:39.493 1752-1752/com.android.launcher3 W/Launcher: setApplicationContext called twice! old=com.android.launcher3.LauncherApplication@22977308 new=com.android.launcher3.LauncherApplication@22977308 04-17 22:29:39.494 1541-1560/system_process W/Searchables: No global search activity found 04-17 22:29:39.503 1541-1541/system_process I/art: Explicit concurrent mark sweep GC freed 83651(4MB) AllocSpace objects, 29(1129KB) LOS objects, 33% free, 15MB/23MB, paused 1.088ms total 29.050ms 04-17 22:29:39.503 1541-1541/system_process D/JobSchedulerService: Receieved: android.intent.action.PACKAGE_REMOVED 04-17 22:29:39.503 1541-1541/system_process D/BackupManagerService: Received broadcast Intent { act=android.intent.action.PACKAGE_REMOVED dat=package:com.example.hasee.myapplication flg=0x4000010 (has extras) } 04-17 22:29:39.504 1541-1570/system_process I/art: WaitForGcToComplete blocked for 12.932ms for cause Explicit 04-17 22:29:39.512 1994-1994/com.android.flysilkworm I/appstore: app Not Started 04-17 22:29:39.512 1541-1541/system_process D/BackupManagerService: Received broadcast Intent { act=android.intent.action.PACKAGE_ADDED dat=package:com.example.hasee.myapplication flg=0x4000010 (has extras) } 04-17 22:29:39.512 1541-1541/system_process W/BackupManagerService: Removing schedule queue dupe of com.example.hasee.myapplication 04-17 22:29:39.513 1541-1560/system_process W/Searchables: No global search activity found 04-17 22:29:39.515 1541-1560/system_process W/VoiceInteractionManagerService: no available voice recognition services found for user 0 04-17 22:29:39.515 1714-1714/com.android.emu.coreservice I/EmuCoreService: Broadcast action = android.intent.action.PACKAGE_ADDED 04-17 22:29:39.527 1541-1753/system_process W/BackupManagerService: dataChanged but no participant pkg='com.android.launcher3' uid=10020 04-17 22:29:39.536 1994-1994/com.android.flysilkworm I/appstore: app Not Started 04-17 22:29:39.539 1752-1752/com.android.launcher3 W/Launcher: setApplicationContext called twice! old=com.android.launcher3.LauncherApplication@22977308 new=com.android.launcher3.LauncherApplication@22977308 04-17 22:29:39.542 1541-1570/system_process I/art: Explicit concurrent mark sweep GC freed 5719(344KB) AllocSpace objects, 0(0B) LOS objects, 33% free, 15MB/23MB, paused 1.145ms total 38.299ms 04-17 22:29:39.546 2512-2512/? I/art: System.exit called, status: 0 04-17 22:29:39.547 2512-2512/? I/AndroidRuntime: VM exiting with result code 0. 04-17 22:29:39.628 1994-2199/com.android.flysilkworm I/System.out: 200 04-17 22:29:39.655 2536-2536/? I/appproc: denglibo exec app_process! cmdline: /system/bin com.android.commands.am.Am start -n com.example.hasee.myapplication/com.example.hasee.myapplication.MainActivity -a android.intent.action.MAIN -c android.intent.category.LAUNCHER 04-17 22:29:39.655 2536-2536/? D/AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<< 04-17 22:29:39.657 2536-2536/? D/AndroidRuntime: CheckJNI is OFF 04-17 22:29:39.667 2536-2536/? D/libnativebridge: PreInitializeNativeBridge name=unknown 04-17 22:29:39.679 2536-2536/? E/memtrack: Couldn't load memtrack module (No such file or directory) 04-17 22:29:39.679 2536-2536/? E/android.os.Debug: failed to load memtrack module: -2 04-17 22:29:39.694 2536-2536/? D/AndroidRuntime: Calling main entry com.android.commands.am.Am 04-17 22:29:39.718 1541-1555/system_process I/ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=com.example.hasee.myapplication/.MainActivity} from uid 0 on display 0 04-17 22:29:39.719 1541-1555/system_process V/WindowManager: addAppToken: AppWindowToken{362f7eb7 token=Token{2ac5a1b6 ActivityRecord{18688551 u0 com.example.hasee.myapplication/.MainActivity t7}}} to stack=1 task=7 at 0 04-17 22:29:39.720 1541-1566/system_process V/WindowManager: Adding window Window{3c93318e u0 Starting com.example.hasee.myapplication} at 2 of 5 (after Window{fa9636f u0 com.android.launcher3/com.android.launcher3.Launcher}) 04-17 22:29:39.721 2536-2536/? D/AndroidRuntime: Shutting down VM 04-17 22:29:39.721 2536-2536/? D/libnativebridge: call UnloadNativeBridge! state=1 04-17 22:29:39.730 1541-1555/system_process I/ActivityManager: Start proc 2546:com.example.hasee.myapplication/u0a31 for activity com.example.hasee.myapplication/.MainActivity 04-17 22:29:39.731 1714-1714/com.android.emu.coreservice I/EmuCoreService: Broadcast action = android.intent.action.TOP_ACTIVITY_CHANGED 04-17 22:29:39.748 2546-2546/? I/art: Late-enabling -Xcheck:jni 04-17 22:29:39.748 2546-2546/? D/libnativebridge: call UnloadNativeBridge! state=1 04-17 22:29:39.768 2546-2554/? I/art: Debugger is no longer active 04-17 22:29:39.861 2546-2546/? D/AndroidRuntime: Shutting down VM --------- beginning of crash 04-17 22:29:39.861 2546-2546/? E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.hasee.myapplication, PID: 2546 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.hasee.myapplication/com.example.hasee.myapplication.MainActivity}: java.lang.RuntimeException: Your content must have a ListView whose id attribute is 'android.R.id.list' at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2325) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2387) at android.app.ActivityThread.access$800(ActivityThread.java:151) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5254) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:905) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:700) Caused by: java.lang.RuntimeException: Your content must have a ListView whose id attribute is 'android.R.id.list' at android.app.ListActivity.onContentChanged(ListActivity.java:243) at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:382) at android.app.Activity.setContentView(Activity.java:2145) at com.example.hasee.myapplication.MainActivity.onCreate(MainActivity.java:34) at android.app.Activity.performCreate(Activity.java:5990) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2278) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2387)  at android.app.ActivityThread.access$800(ActivityThread.java:151)  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303)  at android.os.Handler.dispatchMessage(Handler.java:102)  at android.os.Looper.loop(Looper.java:135)  at android.app.ActivityThread.main(ActivityThread.java:5254)  at java.lang.reflect.Method.invoke(Native Method)  at java.lang.reflect.Method.invoke(Method.java:372)  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:905)  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:700)  04-17 22:29:39.861 1541-1708/system_process W/ActivityManager: Force finishing activity 1 com.example.hasee.myapplication/.MainActivity 04-17 22:29:39.951 1752-2049/com.android.launcher3 D/EGL_adreno: eglMakeCurrent: 0xaec34760: ver 3 1 (tinfo 0xaec395f0) 04-17 22:29:40.069 1365-1365/? E/EGL_adreno: tid 1365: eglCreateSyncKHR(1987): error 0x3004 (EGL_BAD_ATTRIBUTE) 04-17 22:29:40.074 1541-1541/system_process W/art: Long monitor contention event with owner method=void com.android.server.am.ActivityManagerService.crashApplication(com.android.server.am.ProcessRecord, android.app.ApplicationErrorReport$CrashInfo) from ActivityManagerService.java:12135 waiters=0 for 211ms 04-17 22:29:40.074 1541-1561/system_process W/System.err: java.lang.Exception: denglibo show AlertDialog! title= 04-17 22:29:40.074 1541-1561/system_process W/System.err: at android.app.AlertDialog.show(AlertDialog.java:112) 04-17 22:29:40.074 1541-1561/system_process W/System.err: at com.android.server.am.ActivityManagerService$MainHandler.handleMessage(ActivityManagerService.java:1342) 04-17 22:29:40.074 1541-1561/system_process W/System.err: at android.os.Handler.dispatchMessage(Handler.java:102) 04-17 22:29:40.074 1541-1561/system_process W/System.err: at android.os.Looper.loop(Looper.java:135) 04-17 22:29:40.074 1541-1561/system_process W/System.err: at android.os.HandlerThread.run(HandlerThread.java:61) 04-17 22:29:40.074 1541-1561/system_process W/System.err: at com.android.server.ServiceThread.run(ServiceThread.java:46) 04-17 22:29:40.106 1541-2235/system_process I/OpenGLRenderer: Initialized EGL, version 1.4 04-17 22:29:40.106 1541-2235/system_process I/EGL_adreno: eglCreateContext request GLES major-version=2 04-17 22:29:40.107 1541-2235/system_process D/EGL_adreno: eglCreateContext: 0x9edfe9a0: maj 3 min 1 rcv 4 04-17 22:29:40.111 1541-2235/system_process D/EGL_adreno: eglMakeCurrent: 0x9edfe9a0: ver 3 1 (tinfo 0xa22f8770) 04-17 22:29:40.118 1541-2235/system_process E/EGL_adreno: tid 2235: eglSurfaceAttrib(1266): error 0x3009 (EGL_BAD_MATCH) 04-17 22:29:40.118 1541-2235/system_process W/OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0xaec22700, error=EGL_BAD_MATCH 04-17 22:29:40.119 1541-2235/system_process D/EGL_adreno: eglMakeCurrent: 0x9edfe9a0: ver 3 1 (tinfo 0xa22f8770) 04-17 22:29:40.574 1541-1561/system_process W/ActivityManager: Activity pause timeout for ActivityRecord{18688551 u0 com.example.hasee.myapplication/.MainActivity t7 f} 04-17 22:29:40.577 1714-1714/com.android.emu.coreservice I/EmuCoreService: Broadcast action = android.intent.action.TOP_ACTIVITY_CHANGED 04-17 22:29:40.593 1752-2049/com.android.launcher3 I/OpenGLRenderer: Initialized EGL, version 1.4 04-17 22:29:40.594 1752-2049/com.android.launcher3 I/EGL_adreno: eglCreateContext request GLES major-version=2 04-17 22:29:40.595 1752-2049/com.android.launcher3 D/EGL_adreno: eglCreateContext: 0xaec34760: maj 3 min 1 rcv 4 04-17 22:29:40.602 1752-2049/com.android.launcher3 D/EGL_adreno: eglMakeCurrent: 0xaec34760: ver 3 1 (tinfo 0xaec395f0) 04-17 22:29:40.615 1752-2049/com.android.launcher3 E/EGL_adreno: tid 2049: eglSurfaceAttrib(1266): error 0x3009 (EGL_BAD_MATCH) 04-17 22:29:40.615 1752-2049/com.android.launcher3 W/OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0xaec601a0, error=EGL_BAD_MATCH 04-17 22:29:40.616 1752-2049/com.android.launcher3 D/EGL_adreno: eglMakeCurrent: 0xaec34760: ver 3 1 (tinfo 0xaec395f0) 04-17 22:29:40.662 1752-2049/com.android.launcher3 V/RenderScript: 0xaedacc00 Launching thread(s), CPUs 2 04-17 22:29:40.798 1541-1595/system_process E/WifiStateMachine: WifiStateMachine CMD_START_SCAN source -2 txSuccessRate=0.00 rxSuccessRate=0.00 targetRoamBSSID=00:81:ec:72:db:e9 RSSI=-45 04-17 22:29:41.146 1752-2049/com.android.launcher3 D/EGL_adreno: eglMakeCurrent: 0xaec34760: ver 3 1 (tinfo 0xaec395f0) 04-17 22:29:41.157 1752-2049/com.android.launcher3 D/EGL_adreno: eglMakeCurrent: 0xaec34760: ver 3 1 (tinfo 0xaec395f0) 04-17 22:29:41.160 1752-2049/com.android.launcher3 D/EGL_adreno: eglMakeCurrent: 0xaec34760: ver 3 1 (tinfo 0xaec395f0) 04-17 22:29:41.160 1752-2049/com.android.launcher3 W/OpenGLRenderer: Incorrectly called buildLayer on View: ShortcutAndWidgetContainer, destroying layer... 04-17 22:29:41.161 1752-2049/com.android.launcher3 D/EGL_adreno: eglMakeCurrent: 0xaec34760: ver 3 1 (tinfo 0xaec395f0) 04-17 22:29:41.578 1644-1644/com.android.systemui W/ResourceType: No package identifier when getting value for resource number 0x00000000 04-17 22:29:41.578 1644-1644/com.android.systemui W/PackageManager: Failure retrieving resources for com.example.hasee.myapplication: Resource ID #0x0 04-17 22:29:50.691 1541-1561/system_process W/ActivityManager: Activity destroy timeout for ActivityRecord{18688551 u0 com.example.hasee.myapplication/.MainActivity t7 f} 04-17 22:29:59.192 1365-1515/? E/SurfaceFlinger: warning, detect vsync overflow! 04-17 22:30:00.041 1365-1515/? E/SurfaceFlinger: warning, detect vsync overflow! 04-17 22:30:00.801 1541-1595/system_process E/WifiStateMachine: WifiStateMachine CMD_START_SCAN source -2 txSuccessRate=0.00 rxSuccessRate=0.00 targetRoamBSSID=00:81:ec:72:db:e9 RSSI=-45 04-17 22:30:20.806 1541-1595/system_process E/WifiStateMachine: WifiStateMachine CMD_START_SCAN source -2 txSuccessRate=0.00 rxSuccessRate=0.00 targetRoamBSSID=00:81:ec:72:db:e9 RSSI=-45 04-17 22:30:40.811 1541-1595/system_process E/WifiStateMachine: WifiStateMachine CMD_START_SCAN source -2 txSuccessRate=0.00 rxSuccessRate=0.00 targetRoamBSSID=00:81:ec:72:db:e9 RSSI=-45 04-17 22:31:00.816 1541-1595/system_process E/WifiStateMachine: WifiStateMachine CMD_START_SCAN source -2 txSuccessRate=0.00 rxSuccessRate=0.00 targetRoamBSSID=00:81:ec:72:db:e9 RSSI=-45 04-17 22:31:20.817 1541-1595/system_process E/WifiStateMachine: WifiStateMachine CMD_START_SCAN source -2 txSuccessRate=0.00 rxSuccessRate=0.00 targetRoamBSSID=00:81:ec:72:db:e9 RSSI=-45 04-17 22:31:20.920 1541-1595/system_process E/WifiStateMachine: denglibo mScanResults.size=1 04-17 22:31:20.920 1541-1595/system_process I/LdWifi: ld_get_eth0_ip return 172.16.2.15 04-17 22:31:40.821 1541-1595/system_process E/WifiStateMachine: WifiStateMachine CMD_START_SCAN source -2 txSuccessRate=0.00 rxSuccessRate=0.00 targetRoamBSSID=00:81:ec:72:db:e9 RSSI=-45 04-17 22:32:00.824 1541-1595/system_process E/WifiStateMachine: WifiStateMachine CMD_START_SCAN source -2 txSuccessRate=0.00 rxSuccessRate=0.00 targetRoamBSSID=00:81:ec:72:db:e9 RSSI=-45 04-17 22:32:20.827 1541-1595/system_process E/WifiStateMachine: WifiStateMachine CMD_START_SCAN source -2 txSuccessRate=0.00 rxSuccessRate=0.00 targetRoamBSSID=00:81:ec:72:db:e9 RSSI=-45
Android崩溃日志,求分析
08-31 13:58:16.625 13785-13785/com.hikvision.ivms4520ezviz D/ViewRootImpl: ViewPostImeInputStage processPointer 1 08-31 13:58:16.625 1374-4373/? D/CustomFrequencyManagerService: acquireDVFSLockLocked : type : DVFS_MIN_LIMIT frequency : 806400 uid : 1000 pid : 1374 pkgName : GESTURE_DETECTED@CPU_MIN@47 08-31 13:58:16.625 1374-4373/? D/CustomFrequencyManagerService: releaseDVFSLockLocked : Getting Lock type frm List : DVFS_MIN_LIMIT frequency : 806400 uid : 1000 pid : 1374 tag : GESTURE_DETECTED@CPU_MIN@47 08-31 13:58:16.625 1374-4373/? D/CustomFrequencyManagerService: acquireDVFSLockLocked : type : DVFS_MIN_LIMIT frequency : 806400 uid : 1000 pid : 1374 pkgName : GESTURE_DETECTED@CPU_MIN@47 08-31 13:58:16.795 13785-14002/com.hikvision.ivms4520ezviz W/Adreno-GSL: <sharedmem_gpuobj_alloc:1896>: sharedmem_gpumem_alloc: mmap failed errno 12 Out of memory 08-31 13:58:16.795 13785-14002/com.hikvision.ivms4520ezviz E/Adreno-GSL: <gsl_memory_alloc_pure:2115>: GSL MEM ERROR: kgsl_sharedmem_alloc ioctl failed. 08-31 13:58:16.795 13785-14002/com.hikvision.ivms4520ezviz W/Adreno-GSL: <sharedmem_gpuobj_alloc:1896>: sharedmem_gpumem_alloc: mmap failed errno 12 Out of memory 08-31 13:58:16.795 13785-14002/com.hikvision.ivms4520ezviz E/Adreno-GSL: <gsl_memory_alloc_pure:2115>: GSL MEM ERROR: kgsl_sharedmem_alloc ioctl failed. 08-31 13:58:16.795 13785-14002/com.hikvision.ivms4520ezviz W/Adreno-GSL: <sharedmem_gpuobj_alloc:1896>: sharedmem_gpumem_alloc: mmap failed errno 12 Out of memory 08-31 13:58:16.795 13785-14002/com.hikvision.ivms4520ezviz E/Adreno-GSL: <gsl_memory_alloc_pure:2115>: GSL MEM ERROR: kgsl_sharedmem_alloc ioctl failed. 08-31 13:58:16.795 13785-14002/com.hikvision.ivms4520ezviz W/Adreno-GSL: <sharedmem_gpuobj_alloc:1896>: sharedmem_gpumem_alloc: mmap failed errno 12 Out of memory 08-31 13:58:16.795 13785-14002/com.hikvision.ivms4520ezviz E/Adreno-GSL: <gsl_memory_alloc_pure:2115>: GSL MEM ERROR: kgsl_sharedmem_alloc ioctl failed. 08-31 13:58:16.795 13785-14002/com.hikvision.ivms4520ezviz W/Adreno-GSL: <sharedmem_gpuobj_alloc:1896>: sharedmem_gpumem_alloc: mmap failed errno 12 Out of memory 08-31 13:58:16.795 13785-14002/com.hikvision.ivms4520ezviz E/Adreno-GSL: <gsl_memory_alloc_pure:2115>: GSL MEM ERROR: kgsl_sharedmem_alloc ioctl failed. 08-31 13:58:16.795 13785-14002/com.hikvision.ivms4520ezviz W/Adreno-GSL: <sharedmem_gpuobj_alloc:1896>: sharedmem_gpumem_alloc: mmap failed errno 12 Out of memory 08-31 13:58:16.795 13785-14002/com.hikvision.ivms4520ezviz E/Adreno-GSL: <gsl_memory_alloc_pure:2115>: GSL MEM ERROR: kgsl_sharedmem_alloc ioctl failed. 08-31 13:58:16.795 13785-14002/com.hikvision.ivms4520ezviz A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x0 in tid 14002 (RenderThread) 08-31 13:58:16.915 934-934/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 08-31 13:58:16.915 934-934/? A/DEBUG: Build fingerprint: 'samsung/hero2qltezc/hero2qltechn:6.0.1/MMB29M/G9350ZCU2APH1:user/release-keys' 08-31 13:58:16.915 934-934/? A/DEBUG: Revision: '15' 08-31 13:58:16.915 934-934/? A/DEBUG: ABI: 'arm' 08-31 13:58:16.915 934-934/? A/DEBUG: pid: 13785, tid: 14002, name: RenderThread >>> com.hikvision.ivms4520ezviz <<< 08-31 13:58:16.915 934-934/? A/DEBUG: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0 08-31 13:58:16.935 934-934/? A/DEBUG: r0 00000004 r1 ee0f0c50 r2 00000004 r3 00000000 08-31 13:58:16.935 934-934/? A/DEBUG: r4 ee0f0bc0 r5 dd4a5000 r6 00000004 r7 ee0f0c3c 08-31 13:58:16.935 934-934/? A/DEBUG: r8 00000001 r9 00000004 sl 00000000 fp 48e28201 08-31 13:58:16.935 934-934/? A/DEBUG: ip 00000000 sp dcc81048 lr 00259a00 pc e90bf5d2 cpsr 000f0030 08-31 13:58:16.945 647-2132/? I/SurfaceFlinger: id=750 Removed Uoast (10/10) 08-31 13:58:16.945 647-947/? I/SurfaceFlinger: id=750 Removed Uoast (-2/10) 08-31 13:58:16.945 934-934/? A/DEBUG: backtrace: 08-31 13:58:16.955 934-934/? A/DEBUG: #00 pc 001ef5d2 /system/vendor/lib/egl/libGLESv2_adreno.so (_ZN19A5xHwFragmentShader5WriteEP10A5xContext13EsxCmdBufTypej+241) 08-31 13:58:16.955 934-934/? A/DEBUG: #01 pc 001e9d23 /system/vendor/lib/egl/libGLESv2_adreno.so (_ZN10A5xContext13ValidateStateEPK17EsxDrawDescriptor+1794) 08-31 13:58:16.955 934-934/? A/DEBUG: #02 pc 001ea1c5 /system/vendor/lib/egl/libGLESv2_adreno.so (_ZN10A5xContext18HwValidateGfxStateEPK17EsxDrawDescriptor+4) 08-31 13:58:16.955 934-934/? A/DEBUG: #03 pc 000cee37 /system/vendor/lib/egl/libGLESv2_adreno.so (_ZN10EsxContext16ValidateGfxStateEPK17EsxDrawDescriptor+598) 08-31 13:58:16.955 934-934/? A/DEBUG: #04 pc 000c3bcf /system/vendor/lib/egl/libGLESv2_adreno.so (_ZN10EsxContext19DrawArraysInstancedE11EsxPrimTypeijj+110) 08-31 13:58:16.955 934-934/? A/DEBUG: #05 pc 000add9f /system/vendor/lib/egl/libGLESv2_adreno.so (_ZN10EsxContext12GlDrawArraysEjii+62) 08-31 13:58:16.955 934-934/? A/DEBUG: #06 pc 0001c5d5 /system/lib/libhwui.so 08-31 13:58:16.955 934-934/? A/DEBUG: #07 pc 0004161f /system/lib/libhwui.so 08-31 13:58:16.955 934-934/? A/DEBUG: #08 pc 00042f65 /system/lib/libhwui.so 08-31 13:58:16.955 934-934/? A/DEBUG: #09 pc 00043441 /system/lib/libhwui.so 08-31 13:58:16.955 934-934/? A/DEBUG: #10 pc 0002c00b /system/lib/libhwui.so 08-31 13:58:16.955 934-934/? A/DEBUG: #11 pc 000290d1 /system/lib/libhwui.so 08-31 13:58:16.955 934-934/? A/DEBUG: #12 pc 00029967 /system/lib/libhwui.so 08-31 13:58:16.955 934-934/? A/DEBUG: #13 pc 0003fbcf /system/lib/libhwui.so 08-31 13:58:16.955 934-934/? A/DEBUG: #14 pc 0001cf13 /system/lib/libhwui.so 08-31 13:58:16.955 934-934/? A/DEBUG: #15 pc 0001eaa1 /system/lib/libhwui.so 08-31 13:58:16.955 934-934/? A/DEBUG: #16 pc 00021753 /system/lib/libhwui.so (_ZN7android10uirenderer12renderthread12RenderThread10threadLoopEv+62) 08-31 13:58:16.955 934-934/? A/DEBUG: #17 pc 00010115 /system/lib/libutils.so (_ZN7android6Thread11_threadLoopEPv+112) 08-31 13:58:16.955 934-934/? A/DEBUG: #18 pc 00061677 /system/lib/libandroid_runtime.so (_ZN7android14AndroidRuntime15javaThreadShellEPv+70) 08-31 13:58:16.955 934-934/? A/DEBUG: #19 pc 0003fa3b /system/lib/libc.so (_ZL15__pthread_startPv+30) 08-31 13:58:16.955 934-934/? A/DEBUG: #20 pc 0001a085 /system/lib/libc.so (__start_thread+6) 08-31 13:58:16.955 647-647/? D/libEGL: eglTerminate EGLDisplay = 0x7fe1d46e48 08-31 13:58:17.285 1374-2154/? D/BatteryService: !@BatteryListener : batteryPropertiesChanged! 08-31 13:58:17.285 1374-2154/? D/BatteryService: level:100, scale:100, status:5, health:2, present:true, voltage: 4287, temperature: 339, technology: Li-ion, AC powered:false, USB powered:true, POGO powered:false, Wireless powered:false, icon:17303419, invalid charger:0, maxChargingCurrent:0 08-31 13:58:17.285 1374-2154/? D/BatteryService: online:4, current avg:-252, charge type:1, power sharing:false, high voltage charger:false, capacity:280000, batterySWSelfDischarging:false, current_now:-180 08-31 13:58:17.285 1374-1374/? D/BatteryService: Sending ACTION_BATTERY_CHANGED. 08-31 13:58:17.285 1374-1374/? I/MotionRecognitionService: Plugged 08-31 13:58:17.285 1374-1374/? D/MotionRecognitionService: cableConnection= 1 08-31 13:58:17.285 1374-1374/? D/MotionRecognitionService: setPowerConnected | current backoffstate = 1024 , state =1024 08-31 13:58:17.285 1374-1374/? D/MotionRecognitionService: skip setTransmitPower. 08-31 13:58:17.285 1374-2164/? D/WifiController: ApOrStaEnabledState msg.what= 155652 08-31 13:58:17.285 2270-2270/? D/KeyguardUpdateMonitor: received broadcast android.intent.action.BATTERY_CHANGED 08-31 13:58:17.295 2270-2270/? D/KeyguardUpdateMonitor: handleBatteryUpdate 08-31 13:58:17.295 2270-2270/? D/PowerUI: priorPlugType = 2 mPlugType = 2 08-31 13:58:17.295 2270-2270/? D/BatteryMeterView: ACTION_BATTERY_CHANGED : level:100 status:5 health:2 08-31 13:58:17.305 2270-2270/? D/BatteryMeterView: ACTION_BATTERY_CHANGED : level:100 status:5 health:2 08-31 13:58:17.305 2806-2806/? D/CommonServiceConfiguration: getStringValueSetting 08-31 13:58:17.315 2806-2806/? D/BatteryMonitor: new battery level: 100 08-31 13:58:17.565 1374-2117/? V/AlarmManager: Expired Alarm result :8 08-31 13:58:17.585 20714-20714/? E/Zygote: v2 08-31 13:58:17.585 20714-20714/? I/libpersona: KNOX_SDCARD checking this for 10038 08-31 13:58:17.585 20714-20714/? I/libpersona: KNOX_SDCARD not a persona 08-31 13:58:17.585 1374-2117/? I/ActivityManager: Start proc 20714:com.sec.android.app.shealth:remote/u0a38 for service com.sec.android.app.shealth/com.samsung.android.app.shealth.tracker.pedometer.service.PedometerService 08-31 13:58:17.585 20714-20714/? W/SELinux: Function: selinux_compare_spd_ram, index[1], priority [2], priority version is VE=SEPF_SECMOBILE_6.0.1_0013 08-31 13:58:17.585 20714-20714/? E/Zygote: accessInfo : 0 08-31 13:58:17.585 20714-20714/? W/SELinux: SELinux: seapp_context_lookup: seinfo=release, level=s0:c512,c768, pkgname=com.sec.android.app.shealth:remote 08-31 13:58:17.585 1374-2157/? D/NetworkPolicy: isUidForegroundLocked: 10038, mScreenOn: true, uidstate: -1, mProxSensorScreenOff: false 08-31 13:58:17.585 1374-2157/? V/NetworkPolicy: getFirewallRuleWifi UID:10038 policy:0 08-31 13:58:17.585 934-934/? A/DEBUG: Tombstone written to: /data/tombstones/tombstone_04 08-31 13:58:17.585 934-934/? E/DEBUG: AM write failed: Broken pipe [ 08-31 13:58:17.585 934: 934 E/ ] ro.product_ship = true [ 08-31 13:58:17.585 934: 934 E/ ] ro.debug_level = 0x4f4c [ 08-31 13:58:17.585 934: 934 E/ ] sys.mobilecare.preload = false
Cocos2d hello项目测试 真机闪退
![图片说明](https://img-ask.csdn.net/upload/201507/19/1437298609_284718.png) ``` 07-19 17:36:06.803: E/JavaBinder(955): !!! FAILED BINDER TRANSACTION !!! 07-19 17:36:06.823: E/NewLauncher(1712): LauncherApplication : DEBUG : isShown ==> false 07-19 17:36:07.023: E/NewLauncher(1712): LauncherApplication : DEBUG : isShown ==> false 07-19 17:36:07.063: E/NewLauncher(1712): AnimationController : ### mUnlockAnimationHasInit == false, do not play unlock animation 07-19 17:36:07.123: E/NewLauncher(1712): LauncherApplication : DEBUG : isShown ==> true 07-19 17:36:07.123: E/NewLauncher(1712): AnimationController : ### mUnlockAnimationHasInit == false, do not play unlock animation 07-19 17:36:08.093: E/NewLauncher(1712): DatabaseHandler : DEBUG : handleUpdateApps pindex=14, cindex=1 07-19 17:36:08.803: E/JavaBinder(955): !!! FAILED BINDER TRANSACTION !!! 07-19 17:36:10.813: E/JavaBinder(955): !!! FAILED BINDER TRANSACTION !!! 07-19 17:36:11.823: E/JavaBinder(955): !!! FAILED BINDER TRANSACTION !!! 07-19 17:36:12.823: E/JavaBinder(955): !!! FAILED BINDER TRANSACTION !!! 07-19 17:36:14.833: E/JavaBinder(955): !!! FAILED BINDER TRANSACTION !!! 07-19 17:36:15.843: E/JavaBinder(955): !!! FAILED BINDER TRANSACTION !!! 07-19 17:36:16.573: E/NewLauncher(1712): StartActivity : DEBUG : launchApplication useFlipAnim [false] 07-19 17:36:16.613: E/jdwp(30620): Failed sending reply to debugger: Broken pipe 07-19 17:36:16.733: E/AndroidRuntime(30620): FATAL EXCEPTION: main 07-19 17:36:16.733: E/AndroidRuntime(30620): Process: com.fuck.www, PID: 30620 07-19 17:36:16.733: E/AndroidRuntime(30620): java.lang.UnsatisfiedLinkError: Couldn't load cocos2dcpp from loader dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.fuck.www-2.apk"],nativeLibraryDirectories=[/data/app-lib/com.fuck.www-2, /vendor/lib, /system/lib]]]: findLibrary returned null 07-19 17:36:16.733: E/AndroidRuntime(30620): at java.lang.Runtime.loadLibrary(Runtime.java:375) 07-19 17:36:16.733: E/AndroidRuntime(30620): at java.lang.System.loadLibrary(System.java:526) 07-19 17:36:16.733: E/AndroidRuntime(30620): at org.cocos2dx.lib.Cocos2dxActivity.onLoadNativeLibraries(Cocos2dxActivity.java:207) 07-19 17:36:16.733: E/AndroidRuntime(30620): at org.cocos2dx.lib.Cocos2dxActivity.onCreate(Cocos2dxActivity.java:222) 07-19 17:36:16.733: E/AndroidRuntime(30620): at android.app.Activity.performCreate(Activity.java:5231) 07-19 17:36:16.733: E/AndroidRuntime(30620): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087) 07-19 17:36:16.733: E/AndroidRuntime(30620): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2172) 07-19 17:36:16.733: E/AndroidRuntime(30620): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2268) 07-19 17:36:16.733: E/AndroidRuntime(30620): at android.app.ActivityThread.access$800(ActivityThread.java:145) 07-19 17:36:16.733: E/AndroidRuntime(30620): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1206) 07-19 17:36:16.733: E/AndroidRuntime(30620): at android.os.Handler.dispatchMessage(Handler.java:102) 07-19 17:36:16.733: E/AndroidRuntime(30620): at android.os.Looper.loop(Looper.java:136) 07-19 17:36:16.733: E/AndroidRuntime(30620): at android.app.ActivityThread.main(ActivityThread.java:5086) 07-19 17:36:16.733: E/AndroidRuntime(30620): at java.lang.reflect.Method.invokeNative(Native Method) 07-19 17:36:16.733: E/AndroidRuntime(30620): at java.lang.reflect.Method.invoke(Method.java:515) 07-19 17:36:16.733: E/AndroidRuntime(30620): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:888) 07-19 17:36:16.733: E/AndroidRuntime(30620): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:697) 07-19 17:36:16.733: E/AndroidRuntime(30620): at dalvik.system.NativeStart.main(Native Method) 07-19 17:36:16.853: E/JavaBinder(955): !!! FAILED BINDER TRANSACTION !!! 07-19 17:36:19.093: E/QCALOG(379): [MessageQ] ProcessNewMessage: [LOWI-SERVER] unknown deliver target [OS-Agent] 07-19 17:36:19.883: E/JavaBinder(955): !!! FAILED BINDER TRANSACTION !!! 07-19 17:36:20.903: E/JavaBinder(955): !!! FAILED BINDER TRANSACTION !!! 07-19 17:36:21.923: E/JavaBinder(955): !!! FAILED BINDER TRANSACTION !!! 07-19 17:36:22.943: E/JavaBinder(955): !!! FAILED BINDER TRANSACTION !!! 07-19 17:36:23.073: E/Parcel(290): Reading a NULL string not supported here. 07-19 17:36:23.073: E/Parcel(290): Reading a NULL string not supported here. 07-19 17:36:23.963: E/JavaBinder(955): !!! FAILED BINDER TRANSACTION !!! 07-19 17:36:27.613: E/Parcel(290): Reading a NULL string not supported here. 07-19 17:36:27.613: E/Parcel(290): Reading a NULL string not supported here. 07-19 17:36:29.993: E/JavaBinder(955): !!! FAILED BINDER TRANSACTION !!! 07-19 17:36:31.003: E/JavaBinder(955): !!! FAILED BINDER TRANSACTION !!! 07-19 17:36:35.013: E/JavaBinder(955): !!! FAILED BINDER TRANSACTION !!! 07-19 17:36:36.023: E/JavaBinder(955): !!! FAILED BINDER TRANSACTION !!! 07-19 17:36:37.043: E/JavaBinder(955): !!! FAILED BINDER TRANSACTION !!! 07-19 17:36:38.063: E/JavaBinder(955): !!! FAILED BINDER TRANSACTION !!! 07-19 17:36:39.083: E/JavaBinder(955): !!! FAILED BINDER TRANSACTION !!! 07-19 17:36:40.113: E/JavaBinder(955): !!! FAILED BINDER TRANSACTION !!! 07-19 17:36:41.113: E/JavaBinder(955): !!! FAILED BINDER TRANSACTION !!! 07-19 17:36:42.963: E/cutils-trace(30685): Error opening trace file: No such file or directory (2) 07-19 17:36:43.123: E/JavaBinder(955): !!! FAILED BINDER TRANSACTION !!! 07-19 17:36:46.153: E/JavaBinder(955): !!! FAILED BINDER TRANSACTION !!! 07-19 17:36:47.183: E/JavaBinder(955): !!! FAILED BINDER TRANSACTION !!! 07-19 17:36:48.203: E/JavaBinder(955): !!! FAILED BINDER TRANSACTION !!! 07-19 17:36:49.233: E/JavaBinder(955): !!! FAILED BINDER TRANSACTION !!! 07-19 17:36:50.253: E/JavaBinder(955): !!! FAILED BINDER TRANSACTION !!! 07-19 17:36:51.873: E/Icing(29849): Couldn't handle android.intent.action.DEVICE_STORAGE_OK intent due to initialization failure. 07-19 17:36:53.273: E/JavaBinder(955): !!! FAILED BINDER TRANSACTION !!! 07-19 17:36:54.293: E/JavaBinder(955): !!! FAILED BINDER TRANSACTION !!! 07-19 17:36:59.323: E/JavaBinder(955): !!! FAILED BINDER TRANSACTION !!! 07-19 17:37:00.343: E/JavaBinder(955): !!! FAILED BINDER TRANSACTION !!! 07-19 17:37:04.383: E/JavaBinder(955): !!! FAILED BINDER TRANSACTION !!! 07-19 17:37:06.403: E/JavaBinder(955): !!! FAILED BINDER TRANSACTION !!! 07-19 17:37:08.433: E/JavaBinder(955): !!! FAILED BINDER TRANSACTION !!! 07-19 17:37:09.453: E/JavaBinder(955): !!! FAILED BINDER TRANSACTION !!! 07-19 17:37:10.473: E/JavaBinder(955): !!! FAILED BINDER TRANSACTION !!! 07-19 17:37:11.493: E/JavaBinder(955): !!! FAILED BINDER TRANSACTION !!! ```
android 第一次做自定义控件 java.lang.RuntimeException异常
package com.example.q9722.biancheng; import android.content.Context; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.graphics.Rect; import android.util.AttributeSet; import android.widget.TextView; /** * Created by q9722 on 2018/1/1. */ public class test_text extends TextView { private String mText = "111",mNumber = "222"; private Paint mPaint; private Rect mNumberRect; public test_text(Context context, String mText, String mNumber) { this(context, null, mText, mNumber); } public test_text(Context context, AttributeSet attrs, String mText, String mNumber) { this(context, attrs, 0, mText, mNumber); } public test_text(Context context, AttributeSet attrs, int defStyleAttr, String mText, String mNumber) { super(context, attrs, defStyleAttr); this.mText = mText; this.mNumber = mNumber; init(); } private void init() { mPaint = new Paint(); } @Override protected void onDraw(Canvas canvas) { super.onDraw(canvas); mPaint.setColor(Color.BLACK); mPaint.setStyle(Paint.Style.STROKE); canvas.drawRect(0, 0, getWidth(), getHeight(), mPaint); canvas.drawCircle(getWidth()/6*4, getHeight()/4*3,getHeight()/4,mPaint); mPaint.setTextSize(18); mPaint.getTextBounds(mNumber, 0, mNumber.length(), mNumberRect); canvas.drawText(mText, 2 ,getHeight()/5,mPaint); canvas.drawText(mNumber, (getWidth()/6*4)-(mNumberRect.width()/2), (getHeight()/4*3)-(mNumberRect.hashCode()/2), mPaint); } } 01/01 18:58:49: Launching app $ adb push C:\Users\q9722\AndroidStudioProjects\BianCheng\app\build\outputs\apk\app-debug.apk /data/local/tmp/com.example.q9722.biancheng $ adb shell pm install -r "/data/local/tmp/com.example.q9722.biancheng" Success $ adb shell am start -n "com.example.q9722.biancheng/com.example.q9722.biancheng.SplashActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER Client not ready yet..Waiting for process to come online Connected to process 30129 on device xiaomi-mi_5-43ac216f W/System: ClassLoader referenced unknown path: /data/app/com.example.q9722.biancheng-1/lib/arm64 I/InstantRun: Instant Run Runtime started. Android package is com.example.q9722.biancheng, real application class is null. W/System: ClassLoader referenced unknown path: /data/app/com.example.q9722.biancheng-1/lib/arm64 W/MIUI-BLOCK-MONITOR: The msg { when=-72ms what=110 obj=AppBindData{appInfo=ApplicationInfo{7c1e14a com.example.q9722.biancheng}} target=android.app.ActivityThread$H planTime=1514804333143 dispatchTime=1514804333215 finishTime=0 } took 3826ms and took 3754ms after dispatch. 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/System: ClassLoader referenced unknown path: /system/app/MiuiContentCatcher/lib/arm64 D/AccessibilityManager: current package=com.example.q9722.biancheng, accessibility manager mIsFinalEnabled=false, mOptimizeEnabled=true, mIsUiAutomationEnabled=false, mIsInterestedPackage=false V/BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance@717395 V/BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance@bc3ccaa V/BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance@664d14e D/ActivityThreadInjector: clearCachedDrawables. I/Adreno: QUALCOMM build : 620c068, I09d312ff84 Build Date : 08/07/17 OpenGL ES Shader Compiler Version: XE031.09.00.04 Local Branch : Remote Branch : Remote Branch : Reconstruct Branch : I/Choreographer: Skipped 33 frames! The application may be doing too much work on its main thread. I/OpenGLRenderer: Initialized EGL, version 1.4 D/OpenGLRenderer: Swap behavior 1 V/BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance@c8e9e47 I/Timeline: Timeline: Activity_launch_request time:84494803 V/BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance@cd359d1 V/BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance@4011c36 D/AndroidRuntime: Shutting down VM E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.q9722.biancheng, PID: 30129 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.q9722.biancheng/com.example.q9722.biancheng.MainActivity}: android.view.InflateException: Binary XML file line #15: Binary XML file line #15: Error inflating class com.example.q9722.biancheng.test_text at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2724) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2785) at android.app.ActivityThread.-wrap12(ActivityThread.java) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1532) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:163) at android.app.ActivityThread.main(ActivityThread.java:6321) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:880) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:770) Caused by: android.view.InflateException: Binary XML file line #15: Binary XML file line #15: Error inflating class com.example.q9722.biancheng.test_text Caused by: android.view.InflateException: Binary XML file line #15: Error inflating class com.example.q9722.biancheng.test_text Caused by: java.lang.NoSuchMethodException: <init> [class android.content.Context, interface android.util.AttributeSet] at java.lang.Class.getConstructor0(Class.java:2204) at java.lang.Class.getConstructor(Class.java:1683) at android.view.LayoutInflater.createView(LayoutInflater.java:622) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:812) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:752) at android.view.LayoutInflater.rInflate(LayoutInflater.java:883) at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:846) at android.view.LayoutInflater.inflate(LayoutInflater.java:522) at android.view.LayoutInflater.inflate(LayoutInflater.java:430) at android.view.LayoutInflater.inflate(LayoutInflater.java:377) at android.support.v7.app.AppCompatDelegateImplV9.setContentView(AppCompatDelegateImplV9.java:284) at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:140) at com.example.q9722.biancheng.MainActivity.onCreate(MainActivity.java:17) at android.app.Activity.performCreate(Activity.java:6847) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1119) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2677) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2785) at android.app.ActivityThread.-wrap12(ActivityThread.java) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1532) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:163) at android.app.ActivityThread.main(ActivityThread.java:6321) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:880) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:770) Application terminated.
爬虫福利二 之 妹子图网MM批量下载
爬虫福利一:27报网MM批量下载 点击 看了本文,相信大家对爬虫一定会产生强烈的兴趣,激励自己去学习爬虫,在这里提前祝:大家学有所成! 目标网站:妹子图网 环境:Python3.x 相关第三方模块:requests、beautifulsoup4 Re:各位在测试时只需要将代码里的变量path 指定为你当前系统要保存的路径,使用 python xxx.py 或IDE运行即可。 ...
Java学习的正确打开方式
在博主认为,对于入门级学习java的最佳学习方法莫过于视频+博客+书籍+总结,前三者博主将淋漓尽致地挥毫于这篇博客文章中,至于总结在于个人,实际上越到后面你会发现学习的最好方式就是阅读参考官方文档其次就是国内的书籍,博客次之,这又是一个层次了,这里暂时不提后面再谈。博主将为各位入门java保驾护航,各位只管冲鸭!!!上天是公平的,只要不辜负时间,时间自然不会辜负你。 何谓学习?博主所理解的学习,它是一个过程,是一个不断累积、不断沉淀、不断总结、善于传达自己的个人见解以及乐于分享的过程。
程序员必须掌握的核心算法有哪些?
由于我之前一直强调数据结构以及算法学习的重要性,所以就有一些读者经常问我,数据结构与算法应该要学习到哪个程度呢?,说实话,这个问题我不知道要怎么回答你,主要取决于你想学习到哪些程度,不过针对这个问题,我稍微总结一下我学过的算法知识点,以及我觉得值得学习的算法。这些算法与数据结构的学习大多数是零散的,并没有一本把他们全部覆盖的书籍。下面是我觉得值得学习的一些算法以及数据结构,当然,我也会整理一些看过...
Python——画一棵漂亮的樱花树(不同种樱花+玫瑰+圣诞树喔)
最近翻到一篇知乎,上面有不少用Python(大多是turtle库)绘制的树图,感觉很漂亮,我整理了一下,挑了一些我觉得不错的代码分享给大家(这些我都测试过,确实可以生成) one 樱花树 动态生成樱花 效果图(这个是动态的): 实现代码 import turtle as T import random import time # 画樱花的躯干(60,t) def Tree(branch, ...
大学四年自学走来,这些私藏的实用工具/学习网站我贡献出来了
大学四年,看课本是不可能一直看课本的了,对于学习,特别是自学,善于搜索网上的一些资源来辅助,还是非常有必要的,下面我就把这几年私藏的各种资源,网站贡献出来给你们。主要有:电子书搜索、实用工具、在线视频学习网站、非视频学习网站、软件下载、面试/求职必备网站。 注意:文中提到的所有资源,文末我都给你整理好了,你们只管拿去,如果觉得不错,转发、分享就是最大的支持了。 一、电子书搜索 对于大部分程序员...
计算机专业的书普遍都这么贵,你们都是怎么获取资源的?
介绍几个可以下载编程电子书籍的网站。 1.Github Github上编程书资源很多,你可以根据类型和语言去搜索。推荐几个热门的: free-programming-books-zh_CN:58K 星的GitHub,编程语言、WEB、函数、大数据、操作系统、在线课程、数据库相关书籍应有尽有,共有几百本。 Go语言高级编程:涵盖CGO,Go汇编语言,RPC实现,Protobuf插件实现,Web框架实...
小白学 Python 爬虫(25):爬取股票信息
人生苦短,我用 Python 前文传送门: 小白学 Python 爬虫(1):开篇 小白学 Python 爬虫(2):前置准备(一)基本类库的安装 小白学 Python 爬虫(3):前置准备(二)Linux基础入门 小白学 Python 爬虫(4):前置准备(三)Docker基础入门 小白学 Python 爬虫(5):前置准备(四)数据库基础 小白学 Python 爬虫(6):前置准备(...
卸载 x 雷某度!GitHub 标星 1.5w+,从此我只用这款全能高速下载工具!
作者 | Rocky0429 来源 | Python空间 大家好,我是 Rocky0429,一个喜欢在网上收集各种资源的蒟蒻… 网上资源眼花缭乱,下载的方式也同样千奇百怪,比如 BT 下载,磁力链接,网盘资源等等等等,下个资源可真不容易,不一样的方式要用不同的下载软件,因此某比较有名的 x 雷和某度网盘成了我经常使用的工具。 作为一个没有钱的穷鬼,某度网盘几十 kb 的下载速度让我...
《面试宝典》2019年springmvc面试高频题(java)
前言 2019即将过去,伴随我们即将迎来的又是新的一年,过完春节,马上又要迎来新的金三银四面试季。那么,作为程序猿的你,是否真的有所准备的呢,亦或是安于本职工作,继续做好手头上的事情。 当然,不论选择如何,假如你真的准备在之后的金三银四跳槽的话,那么作为一个Java工程师,就不可不看了。如何在几个月的时间里,快速的为即将到来的面试进行充分的准备呢? 1、什么是Spring MVC ?简单...
一名大专同学的四个问题
【前言】   收到一封来信,赶上各种事情拖了几日,利用今天要放下工作的时机,做个回复。   2020年到了,就以这一封信,作为开年标志吧。 【正文】   您好,我是一名现在有很多困惑的大二学生。有一些问题想要向您请教。   先说一下我的基本情况,高考失利,不想复读,来到广州一所大专读计算机应用技术专业。学校是偏艺术类的,计算机专业没有实验室更不用说工作室了。而且学校的学风也不好。但我很想在计算机领...
复习一周,京东+百度一面,不小心都拿了Offer
京东和百度一面都问了啥,面试官百般刁难,可惜我全会。
轻松搭建基于 SpringBoot + Vue 的 Web 商城应用
首先介绍下在本文出现的几个比较重要的概念: 函数计算(Function Compute): 函数计算是一个事件驱动的服务,通过函数计算,用户无需管理服务器等运行情况,只需编写代码并上传。函数计算准备计算资源,并以弹性伸缩的方式运行用户代码,而用户只需根据实际代码运行所消耗的资源进行付费。Fun: Fun 是一个用于支持 Serverless 应用部署的工具,能帮助您便捷地管理函数计算、API ...
Python+OpenCV实时图像处理
目录 1、导入库文件 2、设计GUI 3、调用摄像头 4、实时图像处理 4.1、阈值二值化 4.2、边缘检测 4.3、轮廓检测 4.4、高斯滤波 4.5、色彩转换 4.6、调节对比度 5、退出系统 初学OpenCV图像处理的小伙伴肯定对什么高斯函数、滤波处理、阈值二值化等特性非常头疼,这里给各位分享一个小项目,可通过摄像头实时动态查看各类图像处理的特点,也可对各位调参、测试...
2020年一线城市程序员工资大调查
人才需求 一线城市共发布岗位38115个,招聘120827人。 其中 beijing 22805 guangzhou 25081 shanghai 39614 shenzhen 33327 工资分布 2020年中国一线城市程序员的平均工资为16285元,工资中位数为14583元,其中95%的人的工资位于5000到20000元之间。 和往年数据比较: yea...
为什么猝死的都是程序员,基本上不见产品经理猝死呢?
相信大家时不时听到程序员猝死的消息,但是基本上听不到产品经理猝死的消息,这是为什么呢? 我们先百度搜一下:程序员猝死,出现将近700多万条搜索结果: 搜索一下:产品经理猝死,只有400万条的搜索结果,从搜索结果数量上来看,程序员猝死的搜索结果就比产品经理猝死的搜索结果高了一倍,而且从下图可以看到,首页里面的五条搜索结果,其实只有两条才是符合条件。 所以程序员猝死的概率真的比产品经理大,并不是错...
害怕面试被问HashMap?这一篇就搞定了!
声明:本文以jdk1.8为主! 搞定HashMap 作为一个Java从业者,面试的时候肯定会被问到过HashMap,因为对于HashMap来说,可以说是Java集合中的精髓了,如果你觉得自己对它掌握的还不够好,我想今天这篇文章会非常适合你,至少,看了今天这篇文章,以后不怕面试被问HashMap了 其实在我学习HashMap的过程中,我个人觉得HashMap还是挺复杂的,如果真的想把它搞得明明白...
毕业5年,我问遍了身边的大佬,总结了他们的学习方法
我问了身边10个大佬,总结了他们的学习方法,原来成功都是有迹可循的。
推荐10个堪称神器的学习网站
每天都会收到很多读者的私信,问我:“二哥,有什么推荐的学习网站吗?最近很浮躁,手头的一些网站都看烦了,想看看二哥这里有什么新鲜货。” 今天一早做了个恶梦,梦到被老板辞退了。虽然说在我们公司,只有我辞退老板的份,没有老板辞退我这一说,但是还是被吓得 4 点多都起来了。(主要是因为我掌握着公司所有的核心源码,哈哈哈) 既然 4 点多起来,就得好好利用起来。于是我就挑选了 10 个堪称神器的学习网站,推...
这些软件太强了,Windows必装!尤其程序员!
Windows可谓是大多数人的生产力工具,集娱乐办公于一体,虽然在程序员这个群体中都说苹果是信仰,但是大部分不都是从Windows过来的,而且现在依然有很多的程序员用Windows。 所以,今天我就把我私藏的Windows必装的软件分享给大家,如果有一个你没有用过甚至没有听过,那你就赚了????,这可都是提升你幸福感的高效率生产力工具哦! 走起!???? NO、1 ScreenToGif 屏幕,摄像头和白板...
(总结)阿里面试问了ArrayList,都问了啥?
我是真的没想到,面试官会这样问我ArrayList。
曾经优秀的人,怎么就突然不优秀了。
职场上有很多辛酸事,很多合伙人出局的故事,很多技术骨干被裁员的故事。说来模板都类似,曾经是名校毕业,曾经是优秀员工,曾经被领导表扬,曾经业绩突出,然而突然有一天,因为种种原因,被裁员了,...
大学四年因为知道了这32个网站,我成了别人眼中的大神!
依稀记得,毕业那天,我们导员发给我毕业证的时候对我说“你可是咱们系的风云人物啊”,哎呀,别提当时多开心啦????,嗯,我们导员是所有导员中最帅的一个,真的???? 不过,导员说的是实话,很多人都叫我大神的,为啥,因为我知道这32个网站啊,你说强不强????,这次是绝对的干货,看好啦,走起来! PS:每个网站都是学计算机混互联网必须知道的,真的牛杯,我就不过多介绍了,大家自行探索,觉得没用的,尽管留言吐槽吧???? 社...
2020年1月中国编程语言排行榜,python是2019增长最快编程语言
编程语言比例 排名 编程语言 最低工资 工资中位数 最低工资 最高工资 人头 人头百分比 1 rust 20713 17500 5042 46250 480 0.14% 2 typescript 18503 22500 6000 30000 1821 0.52% 3 lua 18150 17500 5250 35000 2956 0.84% 4 go 17989 16...
看完这篇HTTP,跟面试官扯皮就没问题了
我是一名程序员,我的主要编程语言是 Java,我更是一名 Web 开发人员,所以我必须要了解 HTTP,所以本篇文章就来带你从 HTTP 入门到进阶,看完让你有一种恍然大悟、醍醐灌顶的感觉。 最初在有网络之前,我们的电脑都是单机的,单机系统是孤立的,我还记得 05 年前那会儿家里有个电脑,想打电脑游戏还得两个人在一个电脑上玩儿,及其不方便。我就想为什么家里人不让上网,我的同学 xxx 家里有网,每...
史上最全的IDEA快捷键总结
现在Idea成了主流开发工具,这篇博客对其使用的快捷键做了总结,希望对大家的开发工作有所帮助。
阿里程序员写了一个新手都写不出的低级bug,被骂惨了。
这种新手都不会范的错,居然被一个工作好几年的小伙子写出来,差点被当场开除了。
谁是华为扫地僧?
是的,华为也有扫地僧!2020年2月11-12日,“养在深闺人不知”的华为2012实验室扫地僧们,将在华为开发者大会2020(Cloud)上,和大家见面。到时,你可以和扫地僧们,吃一个洋...
AI 没让人类失业,搞 AI 的人先失业了
最近和几个 AI 领域的大佬闲聊 根据他们讲的消息和段子 改编出下面这个故事 如有雷同 都是巧合 1. 老王创业失败,被限制高消费 “这里写我跑路的消息实在太夸张了。” 王葱葱哼笑一下,把消息分享给群里。 阿杰也看了消息,笑了笑。在座几位也都笑了。 王葱葱是个有名的人物,21岁那年以全额奖学金进入 KMU 攻读人工智能博士,累计发表论文 40 余篇,个人技术博客更是成为深度学习领域内风向标。 ...
2020年,冯唐49岁:我给20、30岁IT职场年轻人的建议
点击“技术领导力”关注∆每天早上8:30推送 作者|Mr.K 编辑| Emma 来源|技术领导力(ID:jishulingdaoli) 前天的推文《冯唐:职场人35岁以后,方法论比经验重要》,收到了不少读者的反馈,觉得挺受启发。其实,冯唐写了不少关于职场方面的文章,都挺不错的。可惜大家只记住了“春风十里不如你”、“如何避免成为油腻腻的中年人”等不那么正经的文章。 本文整理了冯...
工作十年的数据分析师被炒,没有方向,你根本躲不过中年危机
2020年刚刚开始,就意味着离职潮高峰的到来,我身边就有不少人拿着年终奖离职了,而最让我感到意外的,是一位工作十年的数据分析师也离职了,不同于别人的主动辞职,他是被公司炒掉的。 很多人都说数据分析是个好饭碗,工作不累薪资高、入门简单又好学。然而今年34的他,却真正尝到了中年危机的滋味,平时也有不少人都会私信问我: 数据分析师也有中年危机吗?跟程序员一样是吃青春饭的吗?该怎么保证自己不被公司淘汰...
作为一名大学生,如何在B站上快乐的学习?
B站是个宝,谁用谁知道???? 作为一名大学生,你必须掌握的一项能力就是自学能力,很多看起来很牛X的人,你可以了解下,人家私底下一定是花大量的时间自学的,你可能会说,我也想学习啊,可是嘞,该学习啥嘞,不怕告诉你,互联网时代,最不缺的就是学习资源,最宝贵的是啥? 你可能会说是时间,不,不是时间,而是你的注意力,懂了吧! 那么,你说学习资源多,我咋不知道,那今天我就告诉你一个你必须知道的学习的地方,人称...
那些年,我们信了课本里的那些鬼话
教材永远都是有错误的,从小学到大学,我们不断的学习了很多错误知识。 斑羚飞渡 在我们学习的很多小学课文里,有很多是错误文章,或者说是假课文。像《斑羚飞渡》: 随着镰刀头羊的那声吼叫,整个斑羚群迅速分成两拨,老年斑羚为一拨,年轻斑羚为一拨。 就在这时,我看见,从那拨老斑羚里走出一只公斑羚来。公斑羚朝那拨年轻斑羚示意性地咩了一声,一只半大的斑羚应声走了出来。一老一少走到伤心崖,后退了几步,突...
一个程序在计算机中是如何运行的?超级干货!!!
强烈声明:本文很干,请自备茶水!???? 开门见山,咱不说废话! 你有没有想过,你写的程序,是如何在计算机中运行的吗?比如我们搞Java的,肯定写过这段代码 public class HelloWorld { public static void main(String[] args) { System.out.println("Hello World!"); } ...
【蘑菇街技术部年会】程序员与女神共舞,鼻血再次没止住。(文末内推)
蘑菇街技术部的年会,别开生面,一样全是美女。
那个在阿里养猪的工程师,5年了……
简介: 在阿里,走过1825天,没有趴下,依旧斗志满满,被称为“五年陈”。他们会被授予一枚戒指,过程就叫做“授戒仪式”。今天,咱们听听阿里的那些“五年陈”们的故事。 下一个五年,猪圈见! 我就是那个在养猪场里敲代码的工程师,一年多前我和20位工程师去了四川的猪场,出发前总架构师慷慨激昂的说:同学们,中国的养猪产业将因为我们而改变。但到了猪场,发现根本不是那么回事:要个WIFI,没有;...
为什么程序猿都不愿意去外包?
分享外包的组织架构,盈利模式,亲身经历,以及根据一些外包朋友的反馈,写了这篇文章 ,希望对正在找工作的老铁有所帮助
Java校招入职华为,半年后我跑路了
何来 我,一个双非本科弟弟,有幸在 19 届的秋招中得到前东家华为(以下简称 hw)的赏识,当时秋招签订就业协议,说是入了某 java bg,之后一系列组织架构调整原因等等让人无法理解的神操作,最终毕业前夕,被通知调往其他 bg 做嵌入式开发(纯 C 语言)。 由于已至于校招末尾,之前拿到的其他 offer 又无法再收回,一时感到无力回天,只得默默接受。 毕业后,直接入职开始了嵌入式苦旅,由于从未...
世界上有哪些代码量很少,但很牛逼很经典的算法或项目案例?
点击上方蓝字设为星标下面开始今天的学习~今天分享四个代码量很少,但很牛逼很经典的算法或项目案例。1、no code 项目地址:https://github.com/kelseyhight...
Python全栈 Linux基础之3.Linux常用命令
Linux对文件(包括目录)有很多常用命令,可以加快开发效率:ls是列出当前目录下的文件列表,选项有-a、-l、-h,还可以使用通配符;c功能是跳转目录,可以使用相对路径和绝对路径;mkdir命令创建一个新的目录,有-p选项,rm删除文件或目录,有-f、-r选项;cp用于复制文件,有-i、-r选项,tree命令可以将目录结构显示出来(树状显示),有-d选项,mv用来移动文件/目录,有-i选项;cat查看文件内容,more分屏显示文件内容,grep搜索内容;>、>>将执行结果重定向到一个文件;|用于管道输出。
​两年前不知如何编写代码的我,现在是一名人工智能工程师
全文共3526字,预计学习时长11分钟 图源:Unsplash 经常有小伙伴私信给小芯,我没有编程基础,不会写代码,如何进入AI行业呢?还能赶上AI浪潮吗? 任何时候努力都不算晚。 下面,小芯就给大家讲一个朋友的真实故事,希望能给那些处于迷茫与徘徊中的小伙伴们一丝启发。(下文以第一人称叙述) 图源:Unsplash 正如Elsa所说,职业转换是...
非典逼出了淘宝和京东,新冠病毒能够逼出什么?
loonggg读完需要5分钟速读仅需 2 分钟大家好,我是你们的校长。我知道大家在家里都憋坏了,大家可能相对于封闭在家里“坐月子”,更希望能够早日上班。今天我带着大家换个思路来聊一个问题...
Spring框架|JdbcTemplate介绍
文章目录一、JdbcTemplate 概述二、创建对象的源码分析三、JdbcTemplate操作数据库 一、JdbcTemplate 概述 在之前的web学习中,学习了手动封装JDBCtemplate,其好处是通过(sql语句+参数)模板化了编程。而真正的JDBCtemplete类,是Spring框架为我们写好的。 它是 Spring 框架中提供的一个对象,是对原始 Jdbc API 对象的简单...
为什么说程序员做外包没前途?
之前做过不到3个月的外包,2020的第一天就被释放了,2019年还剩1天,我从外包公司离职了。我就谈谈我个人的看法吧。首先我们定义一下什么是有前途 稳定的工作环境 不错的收入 能够在项目中不断提升自己的技能(ps:非技术上的认知也算) 找下家的时候能找到一份工资更高的工作 如果你目前还年轻,但高不成低不就,只有外包offer,那请往下看。 外包公司你应该...
立即提问