android中data/data/cache目录

android中data/data/cache目录是做什么用的?
android4.4之后还可以向这个目录中写入内容么?

5个回答

系统缓存存放在"/cache"下。

主要放各种缓存文件.

cache : 存放缓存数据

swbsun说的对,系统缓存会放在/cache下。
之前我不清楚什么情况,目前android4.4.4是没有/data/data/cache这个目录的。
每个应用的缓存会放到app自己的目录下,比如京东的目录结构如下:
/data/data/com.jingdong.app.mall # ls
app_webview
cache
code_cache
databases
files
lib
而它的cache内容是下面这样:
/data/data/com.jingdong.app.mall # ls cache/

jd-images
jd_volley
jingdong

存放你的应用的缓存数据

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
安卓内部存储空间具体有多大?
提问原因:所有文章都说应该使用外部存储空间(因为比较大)。 提问:内部存储空间具体有多小? 设备:小米8SE, 机身内存64G。 已知条件: 内部存储路径:理论上是根目录/data/data/包名/。 用AndroidStudio的设备文件管理器查看确实是根目录/data/data/包名/。 用getCacheDir().getAbsolutePath()打印出的路径是/data/user/0/包名/cache。 这里我就挺奇怪的(data变成了user/0),希望能顺便帮我解答一下。 外部存储路径:理论上是根目录/storage/sdcard/Android/data/包名。 用AndroidStudio的设备文件管理器查看是根目录/sdcard/Android/data/包名(跟理论上的不太一样)。 用getExternalCacheDir().getAbsolutePath()打印出的路径是/storage/emulated/0/Android/data/包名/cache。 反正都不太一样,但也差不多,可能不同手机厂家都有差异。 动手实践: 实践1:已经写代码尝试确实可以在内部存储目录下 新建文件夹 和 文件(图片,视频)。 实践2:StatFs可以计算出内存相关的数据,我的数据是block大小:4096,block数目:12882803,总大小:49GB。 这里也挺奇怪,手机参数写着64G,用这个算出来是49G。 可用的block数目::1781435,剩余空间:6GB 疑问:谁能给个具体的数据,内部存储目录下放多少文件APP就不能运行了(内部空间具体有多小)。 个人理解:linux我不知道,但是Windows是CDE盘在最开始就确定了,比如C盘100GB,D盘500GB。 我觉得安卓不像Windos一样分盘,而是只有一个盘,大家(内部和外部存储)一起用,只是大家路径不一样,比如我现在手机还剩6G空间,我往内部存储里放5个G文件也是可以正常使用的(这是猜测,没有实践, 很可能是错的)。 求大佬讲一下正确的姿势(顺便吐槽一下好多文章都没有刨根问底的态度呢)。
关于腾讯TBS预览功能。有大神来指导一下!
第一条loge:2020-01-17 16:51:50.152 12408-12408/com.chenxi.bimquanziguankong E/WorkSpacePreviewFileActivity: onGetFilePath: /storage/emulated/0/Android/data/com.chenxi.bimquanziguankong/cache/支付说明.docx 第二条loge:2020-01-17 16:52:36.279 12408-12408/com.chenxi.bimquanziguankong E/WorkSpacePreviewFileActivity: onGetFilePath: /storage/emulated/0/Android/data/com.chenxi.bimquanziguankong/cache/供电设计合同(第1期).docx 我用TBS做预览的功能然后打开同一个路径下的不同文件如上日志然后一第一个可以不可以打开预览,然而第二个却可以这是什么原因呢??
android 使用webview缓存闪退
用webview打开网页出现NDK闪退下面的闪退异常,在线急等 ``` 60600000-60608fff rw- 36864 605ee000-605fffff rw- 73728 605ce000-605edfff rw- 131072 605af000-605cdfff rw- 126976 605ae000-605aefff rw- 4096 605ac000-605adfff rw- 8192 /data/data/com.flk.test/cache/webviewCacheChromium/data_3 605aa000-605abfff rw- 8192 /data/data/com.flk.test/cache/webviewCacheChromium/data_2 60569000-605a9fff rw- 266240 /data/data/com.flk.test/cache/webviewCacheChromium/index 60500000-60568fff rw- 430080 604ff000-604fffff rw- 4096 604fd000-604fefff rw- 8192 /data/data/com.flk.test/cache/webviewCacheChromium/data_1 604fb000-604fcfff rw- 8192 /data/data/com.flk.test/cache/webviewCacheChromium/data_0 604b8000-604fafff rw- 274432 ```
android 插件化开发 IncompatibleClassChangeError 错误
在安卓插件化开发是 ,使用代理模式加载插件类的时候报这个错误 05-17 16:01:18.531 29088-29088/? E/AndroidRuntime: FATAL EXCEPTION: main Process: plugin.android.philips.host, PID: 29088 java.lang.IncompatibleClassChangeError: Structural change of plugin.android.philips.sdk.PhilipsBaseActivity is hazardous (/data/user/0/plugin.android.philips.host/app_dexs/plugin1.dex at compile time, /data/user/0/plugin.android.philips.host/cache/slice-slice_5-classes.dex at runtime): Direct method count off: 1 vs 3 Lplugin/android/philips/sdk/PhilipsBaseActivity; (Compile time): Static fields: Instance fields: Z isProxyMode Landroid/app/Activity; proxyActivity Direct methods: <init>()V Virtual methods:
Unable to get provider on path
java.lang.RuntimeException: Unable to get provider com.facebook.internal.FacebookInitProvider: java.lang.ClassNotFoundException: Didn't find class "com.facebook.internal.FacebookInitProvider" on path: DexPathList[[zip file "/data/app/自从更新到android studio3.0后,之前能用android4.4的测试机打开的跑起来的项目,现在就一直报这个错,各种方法都尝试过的,就是解决不了,但是正式打包后能运行,求大神支招,跪谢com.xc.hdscreen-2.apk", zip file "/data/data/com.xc.hdscreen/code_cache/secondary-dexes/com.xc.hdscreen-2.apk.classes2.zip"],nativeLibraryDirectories=[/data/app-lib/com.xc.hdscreen-2, /vendor/lib, /system/lib]]
Android file is encrypted or is not a database
数据库没有进行密码加密,而且是在表和db文件创建成功后。插入数据,到第四条数据或者更晚就会数据库崩溃。 06-03 17:17:49.127 1047-1047/com.oceanx.light E/SQLiteLog: (26) file is encrypted or is not a database 06-03 17:17:49.127 1047-1047/com.oceanx.light E/DefaultDatabaseErrorHandler: Corruption reported by sqlite on database: /data/data/com.oceanx.light/databases/freelight.db 06-03 17:17:49.127 1047-1047/com.oceanx.light E/DefaultDatabaseErrorHandler: deleting the database file: /data/data/com.oceanx.light/databases/freelight.db 06-03 17:17:49.522 1047-1104/com.oceanx.light E/ libEGL: cache file failed CRC check
有没有人遇到这个问题啊,系统相册图都删了,缩略图还能看到
> String path =Environment.getExternalStorageState()+"/DCIM/Camera/IMG_23001456215624.jpg"; > File fl = new File(path); > if(fl.exists()){ > fl.delete(); > System.out.println("删除成功!"); > } //IMG_23001456215624.jpg这个图片是刚照的 //运行后再去看也确实删掉了 但运行系统"相册",还是能显示这个图,怎么办 如何在我的代码中清除掉这个缩略图,有经历过的求指教,谢谢 //我做了如下尝试,结果毫无影响 //将DCIM下的.thumbnail文件夹删除 //将Android/data/gallery3d/cache删除 //还删除了一个DCIM下的隐藏文件夹,结果同样是对相册内的图片无影响 //必须重启或卸载卡,怎么回事哦
有人尝试过在Android的Application里创建文件吗?
比如在MyApplication的onCreate()里: ``` @Override public void onCreate() { super.onCreate(); String path = "/data/data/com.example.songzeceng.studyofretrofit/cache/my-cache"; File file = new File(path); while (!file.exists()) { file.mkdirs(); } } ``` 权限已经在清单中申请,而因为这是Application,所以不考虑动态申请权限 而且在Acitvity里mkdirs就可以成功,那为何在Application里就不行? mkdirs()最终调用LibCore.os.mkdir(),这个点不进源码。。
安卓小米终极闪退问题
08-17 18:55:31.962 27525-27525/cn.art.app A/libc: Fatal signal 6 (SIGABRT), code -6 in tid 27525 (cn.art.app) 08-17 18:55:32.071 289-289/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 08-17 18:55:32.072 289-289/? A/DEBUG: Build fingerprint: 'Xiaomi/cancro_wc_lte/cancro:6.0.1/MMB29M/V7.5.6.0.MXDCNDE:user/release-keys' 08-17 18:55:32.073 289-289/? A/DEBUG: Revision: '0' 08-17 18:55:32.073 289-289/? A/DEBUG: ABI: 'arm' 08-17 18:55:32.074 289-289/? A/DEBUG: pid: 27525, tid: 27525, name: cn.art.app >>> cn.art.app <<< 08-17 18:55:32.075 289-289/? A/DEBUG: signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr -------- 08-17 18:55:32.138 289-289/? A/DEBUG: r0 00000000 r1 00006b85 r2 00000006 r3 b6fefb7c 08-17 18:55:32.138 289-289/? A/DEBUG: r4 b6fefb84 r5 b6fefb34 r6 0000000b r7 0000010c 08-17 18:55:32.138 289-289/? A/DEBUG: r8 12c78280 r9 b4d76500 sl 12c05a40 fp 00000000 08-17 18:55:32.138 289-289/? A/DEBUG: ip 00000006 sp bec9d820 lr b6d54c51 pc b6d57040 cpsr 40070010 08-17 18:55:32.260 289-289/? A/DEBUG: backtrace: 08-17 18:55:32.261 289-289/? A/DEBUG: #00 pc 00042040 /system/lib/libc.so (tgkill+12) 08-17 18:55:32.262 289-289/? A/DEBUG: #01 pc 0003fc4d /system/lib/libc.so (pthread_kill+32) 08-17 18:55:32.262 289-289/? A/DEBUG: #02 pc 0001c3fb /system/lib/libc.so (raise+10) 08-17 18:55:32.263 289-289/? A/DEBUG: #03 pc 000195ad /system/lib/libc.so (__libc_android_abort+34) 08-17 18:55:32.263 289-289/? A/DEBUG: #04 pc 00017500 /system/lib/libc.so (abort+4) 08-17 18:55:32.264 289-289/? A/DEBUG: #05 pc 0071bb2d /data/app/cn.art.app-2/lib/arm/libSeeScoreLib.so 08-17 18:55:32.264 289-289/? A/DEBUG: #06 pc 0071bbef /data/app/cn.art.app-2/lib/arm/libSeeScoreLib.so 08-17 18:55:32.265 289-289/? A/DEBUG: #07 pc 007112cd /data/app/cn.art.app-2/lib/arm/libSeeScoreLib.so 08-17 18:55:32.266 289-289/? A/DEBUG: #08 pc 007109cb /data/app/cn.art.app-2/lib/arm/libSeeScoreLib.so (__cxa_throw+190) 08-17 18:55:32.266 289-289/? A/DEBUG: #09 pc 0042b125 /data/app/cn.art.app-2/lib/arm/libSeeScoreLib.so 08-17 18:55:32.267 289-289/? A/DEBUG: #10 pc 00437269 /data/app/cn.art.app-2/lib/arm/libSeeScoreLib.so (_ZNK15sscore_playdata7getnoteERK27sscore_pd_barnotes_iterator+136) 08-17 18:55:32.267 289-289/? A/DEBUG: #11 pc 004371d1 /data/app/cn.art.app-2/lib/arm/libSeeScoreLib.so (sscore_pd_bni_getnote+14) 08-17 18:55:32.268 289-289/? A/DEBUG: #12 pc 004279f7 /data/app/cn.art.app-2/lib/arm/libSeeScoreLib.so (Java_uk_co_dolphin_1com_sscore_playdata_NoteIterator_next+94) 08-17 18:55:32.268 289-289/? A/DEBUG: #13 pc 030da7a1 /data/app/cn.art.app-2/oat/arm/base.odex (offset 0x1423000) (uk.co.dolphin_com.sscore.playdata.Note uk.co.dolphin_com.sscore.playdata.NoteIterator.next()+76) 08-17 18:55:32.269 289-289/? A/DEBUG: #14 pc 030da725 /data/app/cn.art.app-2/oat/arm/base.odex (offset 0x1423000) (java.lang.Object uk.co.dolphin_com.sscore.playdata.NoteIterator.next()+48) 08-17 18:55:32.269 289-289/? A/DEBUG: #15 pc 02638899 /data/app/cn.art.app-2/oat/arm/base.odex (offset 0x1423000) (java.util.List uk.co.dolphin_com.seescoreandroid.Dispatcher.allNotesInBar(uk.co.dolphin_com.sscore.playdata.Bar)+260) 08-17 18:55:32.270 289-289/? A/DEBUG: #16 pc 0263959f /data/app/cn.art.app-2/oat/arm/base.odex (offset 0x1423000) (void uk.co.dolphin_com.seescoreandroid.Dispatcher.scheduleNotesForBar(uk.co.dolphin_com.sscore.playdata.Bar, java.util.Date)+122) 08-17 18:55:32.270 289-289/? A/DEBUG: #17 pc 02638be1 /data/app/cn.art.app-2/oat/arm/base.odex (offset 0x1423000) (void uk.co.dolphin_com.seescoreandroid.Dispatcher.scheduleBarEvents(uk.co.dolphin_com.sscore.playdata.Bar, java.util.Date)+140) 08-17 18:55:32.271 289-289/? A/DEBUG: #18 pc 02639efb /data/app/cn.art.app-2/oat/arm/base.odex (offset 0x1423000) (void uk.co.dolphin_com.seescoreandroid.Dispatcher.startAt(java.util.Date, int, boolean)+590) 08-17 18:55:32.271 289-289/? A/DEBUG: #19 pc 0263d46b /data/app/cn.art.app-2/oat/arm/base.odex (offset 0x1423000) (void uk.co.dolphin_com.seescoreandroid.Player.startAt(int, boolean)+1014) 08-17 18:55:32.272 289-289/? A/DEBUG: #20 pc 0168c8b3 /data/app/cn.art.app-2/oat/arm/base.odex (offset 0x1423000) (void cn.art.app.activities.common.SeeScoreActivity.play_pause()+1142) 08-17 18:55:32.273 289-289/? A/DEBUG: #21 pc 016cb405 /data/app/cn.art.app-2/oat/arm/base.odex (offset 0x1423000) (void cn.art.app.activities.student.StudentOpernPlayActivity.onToggleStartPauseScore(android.view.View)+184) 08-17 18:55:32.273 289-289/? A/DEBUG: #22 pc 02896483 /data/app/cn.art.app-2/oat/arm/base.odex (offset 0x1423000) (void cn.art.app.activities.student.StudentOpernPlayActivity$$ViewBinder$1.doClick(android.view.View)+62) 08-17 18:55:32.274 289-289/? A/DEBUG: #23 pc 0161378d /data/app/cn.art.app-2/oat/arm/base.odex (offset 0x1423000) (void butterknife.internal.DebouncingOnClickListener.onClick(android.view.View)+136) 08-17 18:55:32.275 289-289/? A/DEBUG: #24 pc 733e662d /data/dalvik-cache/arm/system@framework@boot.oat (offset 0x23c0000) 08-17 18:55:34.266 1729-2834/? E/NativeCrashListener: Exception dealing with report android.system.ErrnoException: read failed: EAGAIN (Try again) at libcore.io.Posix.readBytes(Native Method) at libcore.io.Posix.read(Posix.java:169) at libcore.io.BlockGuardOs.read(BlockGuardOs.java:230) at android.system.Os.read(Os.java:367) at com.android.server.am.NativeCrashListener.consumeNativeCrashData(NativeCrashListener.java:240) at com.android.server.am.NativeCrashListener.run(NativeCrashListener.java:138)
程序运行就闪退,log日志如下,求大神支招
05-24 18:40:25.210 950-950/? E/HwSystemManager﹕ :ACTION_BATTERY_CHANGED pluged =2 05-24 18:40:25.220 843-843/? E/TemperatureMonitor2﹕ BatteryTemp=300 05-24 18:40:28.040 1079-1079/? E/memtrack﹕ Couldn't load memtrack module (No such file or directory) 05-24 18:40:28.040 1079-1079/? E/android.os.Debug﹕ failed to load memtrack module: -2 05-24 18:40:28.090 1079-1079/? I/android_hardware_fm.cpp﹕ ----Inside int register_android_hardware_fm_fmradio(JNIEnv*)---- 05-24 18:40:28.090 1079-1079/? I/android_hardware_fm.cpp﹕ register_android_hardware_fm_fmradio, ret is 0 05-24 18:40:28.350 1094-1094/com.example.administrator.myapplication W/dalvikvm﹕ threadid=1: thread exiting with uncaught exception (group=0x415ebc38) 05-24 18:40:28.360 137-177/? E/logserver﹕ Object Path:/data/system/dropbox/, mask=0x00000080 05-24 18:40:28.360 137-177/? E/logserver﹕ event->len=48, name=data_app_crash@1464086428362.txt 05-24 18:40:28.360 137-177/? E/logserver﹕ find_first_match: find match, plogs(type=1, pfile=/data/system/dropbox/, match=app_crash) 05-24 18:40:28.360 137-177/? E/logserver﹕ move_dir:src_path=/data/log/dbox/appdbg/logcache 05-24 18:40:28.360 137-177/? E/logserver﹕ move_dir:dst_path=/data/log/logcache/27563624/ 05-24 18:40:28.360 137-177/? E/logserver﹕ is_all_ready, any file is ready in non-keyfile exception. 05-24 18:40:28.360 137-177/? E/logserver﹕ extract_appname, forward search, appname=com.example.administrator.myapplication 05-24 18:40:28.360 137-177/? E/logserver﹕ archive_and_send, pos=0, type=crash, output=20160524184028_crash 05-24 18:40:28.360 137-177/? E/logserver﹕ ---copy_match_files enter!!-- 05-24 18:40:28.360 137-177/? E/logserver﹕ [copy_match_files,758]: copy [/data/system/dropbox/data_app_crash@1464086428362.txt] to [/data/log/logcache/27563624/data_app_crash@1464086428362.txt] 05-24 18:40:28.360 137-177/? E/logserver﹕ internal_archive, argc=7 05-24 18:40:28.360 137-177/? E/logserver﹕ get_fault_appname, appname=com.example.administrator.myapplication 05-24 18:40:28.360 137-177/? E/logserver﹕ handle_archive_exception, argc=7 05-24 18:40:28.360 137-177/? E/logserver﹕ get alarm time = 247377 (sec.)! 05-24 18:40:28.360 137-177/? E/logserver﹕ log_apr_add_record open file:/data/log/apr/P6-C00_V100R001C92B507SP01_A00000434B9E53_20140915101146_statistics 05-24 18:40:28.360 137-177/? E/logserver﹕ move_input_files, create dir [/data/log/unzip/P6-C00_V100R001C92B507SP01_A00000434B9E53_20160524184028_crash] 05-24 18:40:28.360 137-177/? E/logserver﹕ copy_file_to_dir, /data/log/logcache/27563624/data_app_crash@1464086428362.txt -> /data/log/unzip/P6-C00_V100R001C92B507SP01_A00000434B9E53_20160524184028_crash 05-24 18:40:28.360 137-177/? E/logserver﹕ copy_file_to_dir, /data/log/logcache/27563624/finger.txt -> /data/log/unzip/P6-C00_V100R001C92B507SP01_A00000434B9E53_20160524184028_crash 05-24 18:40:28.360 137-177/? E/logserver﹕ Process 177 opening FIFO for O_WRONLY 05-24 18:40:28.360 137-177/? E/logserver﹕ Process 177 opened fifo(19) 05-24 18:40:28.360 137-177/? E/logserver﹕ notify_logcontrol, 177 sent /data/log/unzip/P6-C00_V100R001C92B507SP01_A00000434B9E53_20160524184028_crash 05-24 18:40:28.360 137-176/? E/logserver﹕ thread_logcontrol, select ret = 1 05-24 18:40:28.360 137-176/? E/logserver﹕ handle_notify_event, read res = 324, client pid = 177, data=/data/log/unzip/P6-C00_V100R001C92B507SP01_A00000434B9E53_20160524184028_crash 05-24 18:40:28.360 137-176/? E/logserver﹕ handle_notify_event, send msg [submit:trigger=0,bugtype=2,modulename=com.example.administrator.myapplication,level=1,testtype=NORMAL,path=/data/log/unzip/P6-C00_V100R001C92B507SP01_A00000434B9E53_20160524184028_crash;] 05-24 18:40:28.360 137-176/? E/logserver﹕ send_to_client, send to (18) res = 186 05-24 18:40:28.360 137-150/? E/logserver﹕ File record is changed, record a exception! 05-24 18:40:28.360 137-150/? E/logserver﹕ send_files, commercial version, send by other, return! 05-24 18:40:28.360 137-177/? E/logserver﹕ check_dir_size, dir[/data/log/coredump/] doesn't exist 05-24 18:40:28.360 137-177/? E/logserver﹕ clean_cur_cache:891, system(rm -r /data/log/logcache/27563624/* > /dev/null 2>&1) 05-24 18:40:28.370 1733-1774/? E/SubmitMessage﹕ Submit string: submit:trigger=0,bugtype=2,modulename=com.example.administrator.myapplication,level=1,testtype=NORMAL,path=/data/log/unzip/P6-C00_V100R001C92B507SP01_A00000434B9E53_20160524184028_crash 05-24 18:40:28.380 137-177/? E/logserver﹕ Object Path:/data/log/apr/, mask=0x00000008 05-24 18:40:28.380 137-177/? E/logserver﹕ event->len=80, name=P6-C00_V100R001C92B507SP01_A00000434B9E53_20140915101146_statistics 05-24 18:40:28.380 137-177/? E/logserver﹕ process_one_event, can not find this event(P6-C00_V100R001C92B507SP01_A00000434B9E53_20140915101146_statistics) 05-24 18:40:28.380 137-177/? E/logserver﹕ clean_cur_cache:891, system(rm -r /data/log/logcache/27563624/* > /dev/null 2>&1) 05-24 18:40:28.400 137-177/? E/logserver﹕ Object Path:/data/log/apr/, mask=0x00000008 05-24 18:40:28.400 137-177/? E/logserver﹕ event->len=16, name=record 05-24 18:40:28.400 137-177/? E/logserver﹕ process_one_event, can not find this event(record) 05-24 18:40:28.400 137-177/? E/logserver﹕ clean_cur_cache:891, system(rm -r /data/log/logcache/27563624/* > /dev/null 2>&1) 05-24 18:40:28.530 792-1809/? W/SmartPowerUtils﹕ not found mod[4] to handle scene:208 05-24 18:40:28.670 843-1911/? W/TemperatureMonitor2﹕ Leave 38'C at 4122:58 05-24 18:40:29.040 792-1809/? W/SmartPowerUtils﹕ not found mod[4] to handle scene:208 05-24 18:40:29.050 876-876/? I/SimpleFolderPreView﹕ drawableSize = 128 drawableSize = 128 totalSize= 120sPreviewSize = 130 sPreviewPadding = 8 05-24 18:40:29.050 876-876/? I/SimpleFolderPreView﹕ drawableSize = 128 drawableSize = 128 totalSize= 120sPreviewSize = 130 sPreviewPadding = 8 05-24 18:40:29.050 876-876/? I/Launcher.MotionManager﹕ startShakeMotion mIsShakeInHome=false 05-24 18:40:29.060 950-2119/? W/Settings﹕ Setting airplane_mode_on has moved from android.provider.Settings.System to android.provider.Settings.Global, returning read-only value. 05-24 18:40:29.070 950-2119/? I/HwPowerManagerActivity﹕ brightniess:44, current screen power:89.05882352941177 05-24 18:40:29.070 130-976/? E/BufferQueue﹕ [com.huawei.android.launcher/com.huawei.android.launcher.simpleui.SimpleUILauncher] dequeueBuffer: can't dequeue multiple buffers without setting the buffer count 05-24 18:40:29.100 876-876/? I/SimpleFolderPreView﹕ d = android.graphics.drawable.BitmapDrawable@423a3d78params.scale = 0.41962025 params.transX = 48.380005mPreviewOffsetX 3params.transY = 12.32mPreviewOffsetY = 8 05-24 18:40:29.100 876-876/? I/SimpleFolderPreView﹕ d.getIntrinsicWidth() = 64 = d.getIntrinsicHeight()64 05-24 18:40:29.100 876-876/? I/SimpleFolderPreView﹕ d = android.graphics.drawable.BitmapDrawable@424ca4e8params.scale = 0.5325949 params.transX = 24.190002mPreviewOffsetX 3params.transY = 22.159996mPreviewOffsetY = 8 05-24 18:40:29.100 876-876/? I/SimpleFolderPreView﹕ d.getIntrinsicWidth() = 64 = d.getIntrinsicHeight()64 05-24 18:40:29.100 876-876/? I/SimpleFolderPreView﹕ d = android.graphics.drawable.BitmapDrawable@420fe0d8params.scale = 0.6455696 params.transX = 0.0mPreviewOffsetX 3params.transY = 32.0mPreviewOffsetY = 8 05-24 18:40:29.100 876-876/? I/SimpleFolderPreView﹕ d.getIntrinsicWidth() = 64 = d.getIntrinsicHeight()64 05-24 18:40:29.100 876-876/? I/SimpleFolderPreView﹕ d = android.graphics.drawable.BitmapDrawable@41ecb5b8params.scale = 0.41962025 params.transX = 48.380005mPreviewOffsetX 3params.transY = 12.32mPreviewOffsetY = 8 05-24 18:40:29.100 876-876/? I/SimpleFolderPreView﹕ d.getIntrinsicWidth() = 64 = d.getIntrinsicHeight()64 05-24 18:40:29.100 876-876/? I/SimpleFolderPreView﹕ d = android.graphics.drawable.BitmapDrawable@42281de8params.scale = 0.5325949 params.transX = 24.190002mPreviewOffsetX 3params.transY = 22.159996mPreviewOffsetY = 8 05-24 18:40:29.100 876-876/? I/SimpleFolderPreView﹕ d.getIntrinsicWidth() = 64 = d.getIntrinsicHeight()64 05-24 18:40:29.100 876-876/? I/SimpleFolderPreView﹕ d = android.graphics.drawable.BitmapDrawable@424c4d00params.scale = 0.6455696 params.transX = 0.0mPreviewOffsetX 3params.transY = 32.0mPreviewOffsetY = 8 05-24 18:40:29.100 876-876/? I/SimpleFolderPreView﹕ d.getIntrinsicWidth() = 64 = d.getIntrinsicHeight()64 05-24 18:40:29.150 950-2119/? I/HwSystemManager﹕ SavingSettingUtil:setAlarm and high_level_standard is 10 msg_send_interval is 240 count_frequency is 60 dangerous_level_standard is 25 dangerous_current_level is 30 min_interval_time is 3 average_current_fg is 350 count_frequency_fg is 5 app_show_level is 1 05-24 18:40:31.990 1094-1094/? I/Process﹕ Sending signal. PID: 1094 SIG: 9
android studio 导入报错
开始可以运行 然后我拷贝到另外一台电脑上就无法运行 先是报错 Installation failed with message Invalid File: K:\project\app\build\intermediates\split-apk\with_ImageProcessor\debug\slices\slice_0.apk. It is possible that this issue is resolved by uninstalling an existing version of the apk if it is present, and then re-installing. WARNING: Uninstalling will remove the application data! Do you want to uninstall the existing application? 然后我按照stackoverflow上的方法 Click Build tab ---> Clean Project Click Build tab ---> Build APK Run. 走了一遍 但是程序打不开 点击debug 然后 debug界面显示 $ adb install-multiple -r /Users/user/Desktop/x1/Xd/app/build/outputs/apk/app-debug.apk Split APKs installed $ adb shell am start -n "com.example.user.xd/com.example.user.xd.FirstActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -D Connecting to com.example.user.xd Connected to the target VM, address: 'localhost:8600', transport: 'socket' Disconnected from the target VM, address: 'localhost:8600', transport: 'socket' Android Monitor 提示 09-21 21:59:40.061 22694-22694/? I/art: Late-enabling -Xcheck:jni 09-21 21:59:40.114 22694-22694/com.example.user.xd W/ActivityThread: Application com.example.user.xd is waiting for the debugger on port 8100... 09-21 21:59:40.114 22694-22694/com.example.user.xd I/System.out: Sending WAIT chunk 09-21 21:59:40.315 22694-22700/com.example.user.xd I/art: Debugger is active 09-21 21:59:40.515 22694-22694/com.example.user.xd I/System.out: Debugger has connected 09-21 21:59:40.515 22694-22694/com.example.user.xd I/System.out: waiting for debugger to settle... 09-21 21:59:40.715 22694-22694/com.example.user.xd I/System.out: waiting for debugger to settle... 09-21 21:59:40.915 22694-22694/com.example.user.xd I/System.out: waiting for debugger to settle... 09-21 21:59:41.115 22694-22694/com.example.user.xd I/System.out: waiting for debugger to settle... 09-21 21:59:41.316 22694-22694/com.example.user.xd I/System.out: waiting for debugger to settle... 09-21 21:59:41.516 22694-22694/com.example.user.xd I/System.out: waiting for debugger to settle... 09-21 21:59:41.716 22694-22694/com.example.user.xd I/System.out: waiting for debugger to settle... 09-21 21:59:41.917 22694-22694/com.example.user.xd I/System.out: debugger has settled (1396) 09-21 21:59:42.009 22694-22694/com.example.user.xd W/art: Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg --debuggable --instruction-set=arm --instruction-set-features=smp,div,atomic_ldrd_strd --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --non-interactive --runtime-arg -Xms64m --runtime-arg -Xmx512m --instruction-set-variant=krait --instruction-set-features=default --dex-file=/data/app/com.example.user.xd-2/split_lib_slice_0_apk.apk --oat-file=/data/dalvik-cache/arm/data@app@com.example.user.xd-2@split_lib_slice_0_apk.apk@classes.dex) because non-0 exit status 09-21 21:59:42.020 22694-22694/com.example.user.xd W/art: Fallback to original dex file with interpret-mode for /data/app/com.example.user.xd-2/split_lib_slice_0_apk.apk 09-21 21:59:42.021 22694-22694/com.example.user.xd W/System: ClassLoader referenced unknown path: /data/app/com.example.user.xd-2/lib/arm 09-21 21:59:42.025 22694-22694/com.example.user.xd I/InstantRun: starting instant run server: is main process 09-21 21:59:42.031 22694-22694/com.example.user.xd I/art: Rejecting re-init on previously-failed class java.lang.Class<com.example.user.xd.FirstActivity> 09-21 21:59:42.031 22694-22694/com.example.user.xd D/AndroidRuntime: Shutting down VM 09-21 21:59:42.035 22694-22694/com.example.user.xd E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.user.xd, PID: 22694 java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.user.xd/com.example.user.xd.FirstActivity}: java.lang.ClassNotFoundException: Didn't find class "com.example.user.xd.FirstActivity" on path: DexPathList[[zip file "/data/app/com.example.user.xd-2/base.apk", zip file "/data/app/com.example.user.xd-2/split_lib_slice_0_apk.apk"],nativeLibraryDirectories=[/data/app/com.example.user.xd-2/lib/arm, /vendor/lib, /system/lib]] at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2360) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2509) at android.app.ActivityThread.access$1000(ActivityThread.java:153) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1373) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:154) at android.app.ActivityThread.main(ActivityThread.java:5528) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:740) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:630) Caused by: java.lang.ClassNotFoundException: Didn't find class "com.example.user.xd.FirstActivity" on path: DexPathList[[zip file "/data/app/com.example.user.xd-2/base.apk", zip file "/data/app/com.example.user.xd-2/split_lib_slice_0_apk.apk"],nativeLibraryDirectories=[/data/app/com.example.user.xd-2/lib/arm, /vendor/lib, /system/lib]] at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56) at java.lang.ClassLoader.loadClass(ClassLoader.java:511) at java.lang.ClassLoader.loadClass(ClassLoader.java:469) at android.app.Instrumentation.newActivity(Instrumentation.java:1068) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2350) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2509)  at android.app.ActivityThread.access$1000(ActivityThread.java:153)  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1373)  at android.os.Handler.dispatchMessage(Handler.java:102)  at android.os.Looper.loop(Looper.java:154)  at android.app.ActivityThread.main(ActivityThread.java:5528)  at java.lang.reflect.Method.invoke(Native Method)  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:740)  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:630)  Suppressed: java.lang.NoClassDefFoundError: com.example.user.xd.FirstActivity at dalvik.system.DexFile.defineClassNative(Native Method) at dalvik.system.DexFile.defineClass(DexFile.java:226) at dalvik.system.DexFile.loadClassBinaryName(DexFile.java:219) at dalvik.system.DexPathList.findClass(DexPathList.java:338) at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:54) ... 13 more Suppressed: java.lang.ClassNotFoundException: com.example.user.xd.FirstActivity at java.lang.Class.classForName(Native Method) at java.lang.BootClassLoader.findClass(ClassLoader.java:781) at java.lang.BootClassLoader.loadClass(ClassLoader.java:841) at java.lang.ClassLoader.loadClass(ClassLoader.java:504) ... 12 more Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack trace available
android 8.0 下載apk停止運行,小米卻可以運行?
1.通过百度手机助手安装浦发银行等apk,会出现停止运行的现象 ----------------------------------------------------------------------------- 12-13 10:05:29.971 10591 10591 W zygote : Opening an oat file without a class loader. Are you using the deprecated DexFile APIs? 12-13 10:05:29.972 10591 10591 I System.out: java.io.IOException: No original dex files found for dex location /data/user/0/cn.com.spdb.mobilebank.per/.cache/classes.jar 12-13 10:05:29.972 10591 10591 I System.out: at dalvik.system.DexFile.openDexFile(DexFile.java:353) 12-13 10:05:29.972 10591 10591 I System.out: at dalvik.system.DexFile.<init>(DexFile.java:142) 12-13 10:05:29.972 10591 10591 I System.out: at dalvik.system.DexFile.loadDex(DexFile.java:201) 12-13 10:05:29.972 10591 10591 I System.out: at dalvik.system.DexPathList.loadDexFile(DexPathList.java:377) 12-13 10:05:29.972 10591 10591 I System.out: at dalvik.system.DexPathList.makeDexElements(DexPathList.java:337) 12-13 10:05:29.972 10591 10591 I System.out: at dalvik.system.DexPathList.makePathElements(DexPathList.java:423) ............... 12-13 10:05:30.100 10591 10591 E AndroidRuntime: FATAL EXCEPTION: main 12-13 10:05:30.100 10591 10591 E AndroidRuntime: Process: cn.com.spdb.mobilebank.per, PID: 10591 12-13 10:05:30.100 10591 10591 E AndroidRuntime: java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{cn.com.spdb.mobilebank.per/cn.com.spdb.mobilebank.per.activity.SplashActivity}: java.lang.ClassNotFoundException: Didn't find class "cn.com.spdb.mobilebank.per.activity.SplashActivity" on path: DexPathList[[zip file "/data/user/0/cn.com.spdb.mobilebank.per/.cache/classes.jar", zip file "/data/app/cn.com.spdb.mobilebank.per-EgIw06u0HOQaqjp2BMQJFg==/base.apk"],nativeLibraryDirectories=[/data/app/cn.com.spdb.mobilebank.per-EgIw06u0HOQaqjp2BMQJFg==/lib/arm, /system/fake-libs, /data/app/cn.com.spdb.mobilebank.per-EgIw06u0HOQaqjp2BMQJFg==/base.apk!/lib/armeabi, /system/lib, /vendor/lib]]
使用Base64加密时,报错:open failed: ENOENT (No such file or directory)
跟着视频自学HttpUrlConnection时,练习把图片缓存到系统cache目录下, 这么写没有问题,可以在cache下找到图片文件; ``` File file = new File(getCacheDir(), "test.png"); ``` 加密后就报错了 ``` File file = new File(getCacheDir(), Base64.encodeToString(path.getBytes(), Base64.DEFAULT)); ``` ``` java.io.FileNotFoundException: /data/data/.../cache/aHR0cHM6Ly93d3cuYmFpZHUuY29tL2ltZy9iZF9sb2dvMS5wbmc/d2hlcmU9c3VwZXI= : open failed: ENOENT (No such file or directory) ``` 报错部分代码如下,在创建输出流这一行报错了 ``` if (code == 200) { InputStream in = conn.getInputStream(); FileOutputStream fos = new FileOutputStream(file); int len = -1; byte[] buffer = new byte[1024]; while ((len = in.read(buffer)) != -1) { fos.write(buffer, 0, len); } ... ``` 请问各位大神问题出在哪里
用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)
安卓7.1上原生的Launcher2运行报错
我用安卓7.1代码里的Launcher2替代原来的Launcher后,开机无法启动桌面,强制停止,大神们帮忙看看是什么问题,感激不尽 01-01 00:02:31.297 E/AndroidRuntime( 7262): Process: com.android.launcher, PID: 7262 01-01 00:02:31.297 E/AndroidRuntime( 7262): DeadSystemException: The system died; earlier logs will point to the root cause 01-01 00:02:31.299 W/ActivityManager( 4362): Process com.android.launcher has crashed too many times: killing! 01-01 00:02:31.299 W/ActivityManager( 4362): Force finishing activity com.android.launcher/com.android.launcher2.Launcher 01-01 00:02:31.304 I/ActivityManager( 4362): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.HOME] flg=0x10000100 cmp=com.android.launcher/com.android.launcher2.Launcher} from uid 0 on display 0 01-01 00:02:31.306 W/WindowManager( 4362): Failed looking up window 01-01 00:02:31.306 W/WindowManager( 4362): java.lang.IllegalArgumentException: Requested window android.view.ViewRootImpl$W@8d24662 does not exist 01-01 00:02:31.306 W/WindowManager( 4362): at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:9415) 01-01 00:02:31.306 W/WindowManager( 4362): at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:9406) 01-01 00:02:31.306 W/WindowManager( 4362): at com.android.server.wm.WindowManagerService.removeWindow(WindowManagerService.java:2387) 01-01 00:02:31.306 W/WindowManager( 4362): at com.android.server.wm.Session.remove(Session.java:193) 01-01 00:02:31.306 W/WindowManager( 4362): at android.view.ViewRootImpl.dispatchDetachedFromWindow(ViewRootImpl.java:3290) 01-01 00:02:31.306 W/WindowManager( 4362): at android.view.ViewRootImpl.doDie(ViewRootImpl.java:5917) 01-01 00:02:31.306 W/WindowManager( 4362): at android.view.ViewRootImpl$ViewRootHandler.handleMessage(ViewRootImpl.java:3626) 01-01 00:02:31.306 W/WindowManager( 4362): at android.os.Handler.dispatchMessage(Handler.java:102) 01-01 00:02:31.306 W/WindowManager( 4362): at android.os.Looper.loop(Looper.java:154) 01-01 00:02:31.306 W/WindowManager( 4362): at android.os.HandlerThread.run(HandlerThread.java:61) 01-01 00:02:31.306 W/WindowManager( 4362): at com.android.server.ServiceThread.run(ServiceThread.java:46) 01-01 00:02:31.309 I/ActivityManager( 4362): Killing 7262:com.android.launcher/1000 (adj 0): crash 01-01 00:02:31.309 D/ActivityManager( 4362): cleanUpApplicationRecord -- 7262 01-01 00:02:31.310 I/libprocessgroup( 4362): Killing pid 7281 in uid 1000 as part of process group 7262 01-01 00:02:31.325 I/ActivityManager( 4362): Start proc 7284:com.android.launcher/1000 for activity com.android.launcher/com.android.launcher2.Launcher 01-01 00:02:31.353 W/System ( 7284): ClassLoader referenced unknown path: /system/priv-app/Launcher2/lib/arm64 01-01 00:02:31.357 W/art ( 7284): JIT profile information will not be recorded: profile file does not exits. 01-01 00:02:31.366 W/ContextImpl( 7284): Failed to ensure /data/user_de/0/com.android.launcher/code_cache: mkdir failed: EACCES (Permission denied) 01-01 00:02:31.386 D/FrameBuffer( 4029): GLES, req offset: 1080 01-01 00:02:31.539 W/WallpaperManager( 7284): WallpaperService not running 01-01 00:02:31.539 E/AndroidRuntime( 7284): FATAL EXCEPTION: setWallpaperDimension 01-01 00:02:31.539 E/AndroidRuntime( 7284): Process: com.android.launcher, PID: 7284 01-01 00:02:31.539 E/AndroidRuntime( 7284): DeadSystemException: The system died; earlier logs will point to the root cause 01-01 00:02:31.541 W/ActivityManager( 4362): Force finishing activity com.android.launcher/com.android.launcher2.Launcher
Buggly集成热更新使用在5.0,6.0安卓机正常,但是7.0的热更成功后,重启应用崩溃!!!
不知道是什么原因: 下面是报错日志: ``` 04-16 11:30:10.185 18328-18328/? W/Tinker.TinkerLoader: tryLoadPatchFiles:isEnabledForResource:true 04-16 11:30:10.188 18328-18328/? W/Tinker.TinkerLoader: tinker safe mode preferName:tinker_own_config_com.esh.oa count:1 04-16 11:30:10.264 18328-18328/? W/Tinker.ClassLoaderAdder: checkDexInstall result:true 04-16 11:30:10.268 18328-18328/? W/Tinker.ResourcePatcher: try to clear typedArray cache! 04-16 11:30:10.312 18328-18328/? W/Tinker.Tinker: tinker patch directory: /data/user/0/com.esh.oa/tinker 04-16 11:30:10.403 18328-18328/? W/CrashReport: com.tencent.tinker.loader.AndroidNClassLoader[DexPathList[[zip file "/data/user/0/com.esh.oa/tinker/patch-283eb467/dex/tinker_classN.apk", zip file "/data/app/com.esh.oa-2/base.apk"],nativeLibraryDirectories=[/data/app/com.esh.oa-2/lib/arm, /data/app/com.esh.oa-2/base.apk!/lib/armeabi, /system/lib, /vendor/lib, /system/vendor/lib, /product/lib]]] couldn't find "libBugly.so" 04-16 11:30:10.462 18328-18350/? W/CrashReport: com.tencent.tinker.loader.AndroidNClassLoader[DexPathList[[zip file "/data/user/0/com.esh.oa/tinker/patch-283eb467/dex/tinker_classN.apk", zip file "/data/app/com.esh.oa-2/base.apk"],nativeLibraryDirectories=[/data/app/com.esh.oa-2/lib/arm, /data/app/com.esh.oa-2/base.apk!/lib/armeabi, /system/lib, /vendor/lib, /system/vendor/lib, /product/lib]]] couldn't find "libBugly.so" 04-16 11:30:11.864 18328-18328/? W/Tinker.UpgradePatchRetry: onPatchRetryLoad patch file: /data/user/0/com.esh.oa/tinker_temp/temp.apk is not exist, just return 04-16 11:30:42.383 18328-18328/? A/art: art/runtime/indirect_reference_table.cc:138] JNI ERROR (app bug): local reference table overflow (max=512) art/runtime/indirect_reference_table.cc:138] local reference table dump: art/runtime/indirect_reference_table.cc:138] Last 10 entries (of 512): art/runtime/indirect_reference_table.cc:138] 511: 0x130d4b00 java.lang.String "com.esh.oa.home.... (31 chars) art/runtime/indirect_reference_table.cc:138] 510: 0x12c6be78 com.tencent.tinker.loader.AndroidNClassLoader art/runtime/indirect_reference_table.cc:138] 509: 0x130d2ae0 java.lang.ClassNotFoundException art/runtime/indirect_reference_table.cc:138] 508: 0x758523f8 java.lang.NoClassDefFoundError art/runtime/indirect_reference_table.cc:138] 507: 0x130d4ab0 java.lang.String "com.esh.oa.home.... (31 chars) art/runtime/indirect_reference_table.cc:138] 506: 0x12c6be78 com.tencent.tinker.loader.AndroidNClassLoader art/runtime/indirect_reference_table.cc:138] 505: 0x130d2ac0 java.lang.ClassNotFoundException art/runtime/indirect_reference_table.cc:138] 504: 0x758523f8 java.lang.NoClassDefFoundError art/runtime/indirect_reference_table.cc:138] 503: 0x130d4a60 java.lang.String "com.esh.oa.home.... (31 chars) art/runtime/indirect_reference_table.cc:138] 502: 0x12c6be78 com.tencent.tinker.loader.AndroidNClassLoader art/runtime/indirect_reference_table.cc:138] Summary: art/runtime/indirect_reference_table.cc:138] 127 of com.tencent.tinker.loader.AndroidNClassLoader (1 unique instances) art/runtime/indirect_reference_table.cc:138] 2 of java.lang.Class (2 unique instances) art/runtime/indirect_reference_table.cc:138] 130 of java.lang.String (130 unique instances) ```
安卓开发JDBC连接数据库No static method metafactory错误怎么解决?
直接上代码 JdbcUtil类 ``` package com.example.myapplication; import java.io.File; import java.io.FileInputStream; import java.sql.Connection; import java.sql.DriverManager; import java.util.Properties; public class JdbcUtil { private static JdbcUtil instance; public static JdbcUtil getInstance(){ if (instance ==null){ instance = new JdbcUtil(); } return instance; } public Connection getConnection(String dbName,String name,String password) { try { new com.mysql.cj.jdbc.Driver(); String url = "jdbc:mysql://localhost:3306/"+dbName; return DriverManager.getConnection(url,name,password); } catch (Exception e) { return null; } } public Connection getConnection(String file){ File f = new File(file); if(!f.exists()){ return null; }else { Properties pro = new Properties(); try { Class.forName("com.mysql.jdbc.Driver"); pro.load(new FileInputStream(f)); String url = pro.getProperty("url"); String name = pro.getProperty("name"); String password = pro.getProperty("password"); return DriverManager.getConnection(url,name,password); }catch (Exception e){ return null; } } } } ``` UserDao类 ``` package com.example.myapplication; import android.util.Log; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import static android.content.ContentValues.TAG; public class UserDao { JdbcUtil jdbcUtil = JdbcUtil.getInstance(); //第一个参数为数据库名称,第二个参数为数据库账号 第三个参数为数据库密码 Connection conn = jdbcUtil.getConnection("test","root","LHMbdbqandr2015"); //注册 public boolean register(String name,String password){ if (conn==null){ Log.i(TAG,"register:conn is null"); return false; }else { //进行数据库操作 String sql = "insert into user(name,password) values(?,?)"; try { PreparedStatement pre = conn.prepareStatement(sql); pre.setString(1,name); pre.setString(2,password); return pre.execute(); } catch (SQLException e) { return false; }finally { try { conn.close(); } catch (SQLException e) { e.printStackTrace(); } } } } //登录 public boolean login(String name,String password){ if (conn==null){ Log.i(TAG,"register:conn is null"); return false; }else { String sql = "select * from user where name=? and password=?"; try { PreparedStatement pres = conn.prepareStatement(sql); pres.setString(1,name); pres.setString(2,password); ResultSet res = pres.executeQuery(); boolean t = res.next(); return t; } catch (SQLException e) { return false; } } } } ``` MainActivity文件 ``` package com.example.myapplication; import android.Manifest; import android.content.Intent; import android.content.pm.PackageManager; import android.os.Build; import android.os.Bundle; import android.os.Looper; import android.os.Trace; import android.util.Log; import android.view.View; import android.widget.EditText; import android.widget.Toast; import androidx.appcompat.app.AppCompatActivity; public class MainActivity extends AppCompatActivity { private static final String TAG="MainActivity"; private EditText name; private EditText password; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); name = findViewById(R.id.name); password = findViewById(R.id.password); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { if (checkSelfPermission(Manifest.permission.INTERNET) != PackageManager.PERMISSION_GRANTED) { // TODO: Consider calling // Activity#requestPermissions requestPermissions(new String[]{Manifest.permission.INTERNET},1); // here to request the missing permissions, and then overriding // public void onRequestPermissionsResult(int requestCode, String[] permissions, // int[] grantResults) // to handle the case where the user grants the permission. See the documentation // for Activity#requestPermissions for more details. return; } } } //用户根据点击事件来找到相应的功能 public void fun(View v){ switch (v.getId()){ case R.id.register: new Thread(new Runnable() { @Override public void run() { String n = name.getText().toString().trim(); String psw = password.getText().toString().trim(); UserDao ud = new UserDao(); boolean result =ud.register(n,psw); if (!result){ Looper.prepare(); Toast toast = Toast.makeText(MainActivity.this,"注册成功!",Toast.LENGTH_SHORT); toast.show(); Looper.loop(); } Log.i(TAG,"fun"+result); //以上为jdbc注册 } }).start(); break; case R.id.login: new Thread(new Runnable() { @Override public void run() { String n = name.getText().toString().trim(); String psw = password.getText().toString().trim(); if (n.equals("")||psw.equals("")){ Looper.prepare(); Toast toast = Toast.makeText(MainActivity.this,"输入不能为空!",Toast.LENGTH_SHORT); toast.show(); Looper.loop(); } UserDao ud = new UserDao(); Boolean result = ud.login(n,psw); if (!result){ Looper.prepare(); Toast toast=Toast.makeText(MainActivity.this,"用户名不存在或密码错误!",Toast.LENGTH_SHORT); toast.show(); Looper.loop(); }else{ Looper.prepare(); Toast toast=Toast.makeText(MainActivity.this,"登录成功",Toast.LENGTH_SHORT); toast.show(); //一下代码为跳转界面 // Intent intent=new Intent(MainActivity.this,info.class); //intent.putExtra("name",n); // startActivity(intent); Looper.loop(); } //以上为jdbc登录 } }).start(); } } } ``` 现在遇到的问题如下 ``` 11/14 01:40:49: Launching 'app' on Nexus 5X API 29 x86. $ adb shell am start -n "com.example.myapplication/com.example.myapplication.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER Waiting for process to come online... Connected to process 23852 on device 'emulator-5554'. Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page. I/e.myapplicatio: Not late-enabling -Xcheck:jni (already on) E/e.myapplicatio: Unknown bits set in runtime_flags: 0x8000 W/e.myapplicatio: Unexpected CPU variant for X86 using defaults: x86 D/libEGL: Emulator has host GPU support, qemu.gles is set to 1. W/libc: Unable to set property "qemu.gles" to "1": connection failed; errno=13 (Permission denied) W/RenderThread: type=1400 audit(0.0:129): avc: denied { write } for name="property_service" dev="tmpfs" ino=8368 scontext=u:r:untrusted_app:s0:c130,c256,c512,c768 tcontext=u:object_r:property_socket:s0 tclass=sock_file permissive=0 app=com.example.myapplication D/libEGL: loaded /vendor/lib/egl/libEGL_emulation.so D/libEGL: loaded /vendor/lib/egl/libGLESv1_CM_emulation.so D/libEGL: loaded /vendor/lib/egl/libGLESv2_emulation.so W/e.myapplicatio: Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (greylist, reflection, allowed) Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (greylist, reflection, allowed) D/: HostConnection::get() New Host Connection established 0xd7d24f50, tid 23910 D/: HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_native_sync_v2 ANDROID_EMU_native_sync_v3 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 ANDROID_EMU_vulkan ANDROID_EMU_deferred_vulkan_commands ANDROID_EMU_vulkan_null_optional_strings ANDROID_EMU_vulkan_create_resources_with_requirements ANDROID_EMU_YUV420_888_to_NV21 ANDROID_EMU_YUV_Cache GL_OES_EGL_image_external_essl3 GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_gles_max_version_3_1 W/OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without... D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 0 0 D/EGL_emulation: eglCreateContext: 0xe3340b60: maj 3 min 1 rcv 4 D/EGL_emulation: eglMakeCurrent: 0xe3340b60: ver 3 1 (tinfo 0xe338bc10) E/eglCodecCommon: glUtilsParamSize: unknow param 0x000082da glUtilsParamSize: unknow param 0x000082da W/Gralloc3: mapper 3.x is not supported D/: createUnique: call D/: HostConnection::get() New Host Connection established 0xd7d26ad0, tid 23910 HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_native_sync_v2 ANDROID_EMU_native_sync_v3 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 ANDROID_EMU_vulkan ANDROID_EMU_deferred_vulkan_commands ANDROID_EMU_vulkan_null_optional_strings ANDROID_EMU_vulkan_create_resources_with_requirements ANDROID_EMU_YUV420_888_to_NV21 ANDROID_EMU_YUV_Cache GL_OES_EGL_image_external_essl3 GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_gles_max_version_3_1 D/eglCodecCommon: allocate: Ask for block of size 0x1000 D/eglCodecCommon: allocate: ioctl allocate returned offset 0x3ffff6000 size 0x2000 D/EGL_emulation: eglMakeCurrent: 0xe3340b60: ver 3 1 (tinfo 0xe338bc10) D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 0 0 I/AssistStructure: Flattened final assist data: 1788 bytes, containing 1 windows, 10 views W/e.myapplicatio: Accessing hidden method Ljava/lang/invoke/LambdaMetafactory;->metafactory(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite; (blacklist, linking, denied) E/AndroidRuntime: FATAL EXCEPTION: Thread-2 Process: com.example.myapplication, PID: 23852 java.lang.NoSuchMethodError: No static method metafactory(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite; in class Ljava/lang/invoke/LambdaMetafactory; or its super classes (declaration of 'java.lang.invoke.LambdaMetafactory' appears in /apex/com.android.runtime/javalib/core-oj.jar) at com.mysql.cj.conf.ConnectionUrl.buildConnectionStringCacheKey(ConnectionUrl.java:246) at com.mysql.cj.conf.ConnectionUrl.getConnectionUrlInstance(ConnectionUrl.java:185) at com.mysql.cj.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:204) at java.sql.DriverManager.getConnection(DriverManager.java:580) at java.sql.DriverManager.getConnection(DriverManager.java:218) at com.example.myapplication.JdbcUtil.getConnection(JdbcUtil.java:22) at com.example.myapplication.UserDao.<init>(UserDao.java:15) at com.example.myapplication.MainActivity$1.run(MainActivity.java:53) at java.lang.Thread.run(Thread.java:919) D/EGL_emulation: eglMakeCurrent: 0xe3340b60: ver 3 1 (tinfo 0xe338bc10) D/AutofillManager: onActivityFinishing(): calling cancelLocked() Process 23852 terminated. ``` 在网上百度了很多方法都没有解决,起初以为是驱动的问题,但是换了一个仍然不好用,求求大神赐教
请教关于使用JS实现浏览器简单自动登录的脚本
本人想用 JS 实现谷歌浏览器自动登录功能 以下为JS代码 ``` document.getElementById('username').value='admin'; document.getElementById('password').value='123456'; credentials.username='admin'; credentials.password='123456'; document.getElementById("submit").disabled=false; document.getElementById('submit').click(); ``` 目前问题是 用户名和密码都有 ng-model属性, 导致一直提示账号密码错误。 请问这种情况下 应该怎么修改。请各位大神指导下。 问题关键点: 关键点是 ng-model属性是双向绑定,页面提交的数据是credentials,而不是某个输入框的VALUE ;单独改VALUE或者直接credentials.username=赋值提交后是无效的。还是账号密码错误。;需要解决的是这种情况下如何给credentials里面的credentials.username和credentials。password正确的赋值。 下面是网页的源码: ``` <!DOCTYPE html><html class="no-js vui-layout-html" ng-app="esxUiApp" style="min-width: 768px;"><head class=""><style type="text/css" class="">@charset "UTF-8";[ng\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide:not(.ng-hide-animate){display:none !important;}ng\:form{display:block;}</style> <title ng-bind="$root.title" class="">登录 - VMware ESXi</title> <meta charset="utf-8" class=""> <meta http-equiv="X-UA-Compatible" content="IE=edge" class=""> <meta http-equiv="cache-control" content="max-age=0" class=""> <meta http-equiv="cache-control" content="no-cache" class=""> <meta http-equiv="expires" content="0" class=""> <meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" class=""> <meta http-equiv="pragma" content="no-cache" class=""> <meta name="description" content="" class=""> <!-- The initial, max and min scale settings --> <meta name="viewport" content=" width=device-width, initial-scale=0.5001, minimum-scale=1.0001, maximum-scale=5.0001, user-scalable=yes" class=""> <!-- The following will hide the chrome on mobile Safari and Chrome on Android if the user has added a shortcut to their home screen. --> <meta name="mobile-web-app-capable" content="yes" class=""> <meta name="apple-mobile-web-app-capable" content="yes" class=""> <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" class=""> <link rel="stylesheet" href="bower_components/vui-bootstrap/css/vui-bootstrap.min.css" class=""> <link rel="stylesheet" href="bower_components/jquery-ui/themes/base/jquery-ui.min.css" class=""> <link rel="stylesheet" href="bower_components/codemirror/lib/codemirror.css" class=""> <link rel="stylesheet" href="bower_components/codemirror/theme/mdn-like.css" class=""> <link rel="stylesheet" href="bower_components/nvd3/build/nv.d3.min.css" class=""> <link rel="stylesheet" href="bower_components/eonasdan-bootstrap-datetimepicker/build/css/bootstrap-datetimepicker.min.css" class=""> <link rel="icon" type="image/x-icon" href="favicon.ico" class=""> <link rel="apple-touch-icon" href="apple-touch-icon.png" class=""> <link rel="stylesheet" href="node_modules/vfeed/vfeed.css" class=""> <!-- build:css(.tmp) styles/main.css --> <link rel="stylesheet" href="styles/main.css" class=""> <!-- endbuild --> <!-- we use vendor.css to allow partner customizations, normally it is empty --> <link rel="stylesheet" href="styles/vendor.css" class=""> <script type="text/javascript" charset="utf-8" async="" data-requirecontext="_" data-requiremodule="main" src="scripts/main.js" class=""></script></head> <body ng-app="esxUiApp" class="base-app-style" style="overflow: hidden;"> <!--[if lt IE 7]> <p class="browsehappy"> You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience. </p> <![endif]--> <!-- Add your site or application content here --> <div class=""> <!-- uiView: --><div ui-view="" class=""><div class="loginContainer"> <img id="topSplash" src="images/AppBgPattern.png" alt="背景图像"> <div style="position: absolute; top: 65px; left: 65px;"> <img src="images/vmware_logo_white_transparent.png" style="width: 60%;"> </div> <form name="loginForm" ng-submit="login(credentials)" novalidate="" class="ng-pristine ng-valid"> <div id="loginForm"> <p class="loginRow ng-hide" ng-show="devmode || electron"> <label id="host-label" class="loginLabel">主机名 <input id="hostname" autocomplete="off" aria-labelledby="host-label" tabindex="1" ng-disabled="loggingIn" ng-class="{loginFailed: loginFailed}" class="margeTextInput ng-pristine ng-untouched ng-valid" type="text" ng-model="credentials.hostname" ng-model-options="{ updateOn: 'blur' }"> </label> </p> <p class="loginRow"> <label id="username-label" class="loginLabel">用户名 <input id="username" aria-labelledby="username-label" tabindex="2" focus-me="true" ng-disabled="loggingIn" ng-class="{loginFailed: loginFailed}" class="margeTextInput ng-pristine ng-valid ng-touched" type="text" ng-model="credentials.username"> </label> </p> <p class="loginRow"> <label id="password-label" class="loginLabel">密码 <input id="password" autocomplete="off" aria-labelledby="password-label" tabindex="4" ng-disabled="loggingIn" ng-class="{loginFailed: loginFailed}" class="margeTextInput ng-pristine ng-untouched ng-valid" type="password" ng-model="credentials.password"> </label> </p> <p>&nbsp;</p> <p id="loginButtonRow"> <input id="submit" class="button blue" type="submit" value="登录" ng-disabled="credentials.username === '' || loggingIn" disabled="disabled"> </p> </div> <div id="productName"> <img src="images/vmware_logo_white_transparent.png" style="width: 120px; margin-right: 10px;"> <img src="images/esxi.png" style="margin-bottom: 2px; width: 60px;"> <!-- ngIf: loggingIn --> <!-- ngIf: status !== null --> <div ng-show="welcome !== null &amp;&amp; !loggingIn &amp;&amp; !initializing" ng-style="{'margin-top': status === null ? '29px' : '10px'}" class="loginWelcome ng-hide" style="margin-top: 29px;"> <div ng-bind-html="welcome | escapeHtml | linebreak"></div> <div ng-show="accept !== null" style="margin: 10px; text-align: right;" class="ng-hide"> <label> <input type="checkbox" tabindex="3" ng-model="accepted" style="margin: 0 5px 0 0;" class="ng-pristine ng-untouched ng-valid"> </label> </div> </div> </div> </form> <div id="footer" class="footer"> <a href="https://www.vmware.com/cn/support/pubs/" target="_blank"> <i class="esx-icon-help-new-window" style="margin-top: -3px; margin-right: 6px;"></i>打开 VMware Host Client 文档</a> <div style="float: right;"></div> </div> </div> </div> </div> <!-- Fixes required for electron --> <script class=""> var _loc = String(window.location); if (_loc && _loc.indexOf('file:///') >= 0) { // requireJS has a bit of a crippled exporting mechanism for node, so we need to pull // these objects up into global scope. require('./bower_components/es6-promise/es6-promise.min.js'); window.$ = window.jQuery = require('./bower_components/jquery/dist/jquery.min'); require('./bower_components/jquery-ui/jquery-ui.min'); window.I18n = require('./bower_components/i18n-js/app/assets/javascripts/i18n.js') window.vsphere = require('./thirdparty/vspherejs/index.js') window.ipaddr = require('./bower_components/ipaddr/ipaddr.min.js'); } </script> <!-- end electron --> <!-- build:js(.) scripts/oldieshim.js --> <!--[if lt IE 9]> <script src="bower_components/es5-shim/es5-shim.js"></script> <script src="bower_components/json3/lib/json3.js"></script> <![endif]--> <!-- endbuild --> <script src="bower_components/jxon/index.js" class=""></script> <script src="bower_components/i18n-js/app/assets/javascripts/i18n.js" class=""></script> <script src="bower_components/es6-shim/es6-shim.min.js" class=""></script> <!-- The main entry point for Angular --> <script src="bower_components/requirejs/require.js" data-main="scripts/main" class=""></script> </body></html> ```
android与NFC芯片FIFO缓存区通信接收数据大于12字节TagLostException
android端: NFC通信app 另一边: 芯片(遵循的协议是ISO14443-4),后台的同事对芯片通电,可以写数据到芯片,芯片通电才可工作,断电不保存数据。 情况: 首先芯片通电,然后andriod手机靠近芯片,此时app会发送一段APDU命令到芯片,芯片在收到命令时,会产生一个标识,后台检测到芯片产生标识,会获取芯片接收到的命令,然后后台提取命令的第一个字节,包装一个[命令第一个字节 + data + 9000]的数据写入芯片FIFO缓存区,写入数据到芯片FIFO缓存区后,后台工作结束,芯片自行负责把数据发送出来。芯片在发送数据结束后会立即清空缓存区的数据。 问题:android端手机在[命令第一个字节 + data + 9000]这个数据中data小于等于12字节时可以收到数据,但在[命令第一个字节 + data + 9000]中data大于12字节时抛出TagLostException。 android端发送的命令如下: ![图片说明](https://img-ask.csdn.net/upload/201712/19/1513650737_203230.png) 这是其中的一个测试命令,也尝试了别的测试命令,如下格式的也进行了测试: ![图片说明](https://img-ask.csdn.net/upload/201712/19/1513651087_390182.png) 后台也只是提取命令的第一个字节,所以问题可能与命令无关。android端的app可以正常的与遵循ISO14443-4协议的公交卡通信(读取的是公交的block area,但现在的场景是要与芯片FIFO cache area 通信,这可能就是导致问题的差异)。 android 端代码: ![图片说明](https://img-ask.csdn.net/upload/201712/19/1513651131_371073.png) 应该不是setTimeOut的问题,除了代码里的1200,也测试了5000,或者不设置setTimeOut。 另外,后台测试了芯片与别的主干芯片可以通过此种FIFO cache 区通信。 万望帮助! 芯片是FM11NC08. 新的进展: 不采用APDU命令。手机端发送1字节的命令(不管这1字节时什么内容),最多能收到16字节的数据,当后端MCU写17字节到FIFO区,就会抛出TagLostException。当手机端发送2字节的命令,就最多能收到15字节的数据。发送13字节的数据,能最多收到4字节的数据。感谢回答。
《MySQL 性能优化》之理解 MySQL 体系结构
本文介绍 MySQL 的体系结构,包括物理结构、逻辑结构以及插件式存储引擎。
程序员请照顾好自己,周末病魔差点一套带走我。
程序员在一个周末的时间,得了重病,差点当场去世,还好及时挽救回来了。
卸载 x 雷某度!GitHub 标星 1.5w+,从此我只用这款全能高速下载工具!
作者 | Rocky0429 来源 | Python空间 大家好,我是 Rocky0429,一个喜欢在网上收集各种资源的蒟蒻… 网上资源眼花缭乱,下载的方式也同样千奇百怪,比如 BT 下载,磁力链接,网盘资源等等等等,下个资源可真不容易,不一样的方式要用不同的下载软件,因此某比较有名的 x 雷和某度网盘成了我经常使用的工具。 作为一个没有钱的穷鬼,某度网盘几十 kb 的下载速度让我...
讲真,这两个IDE插件,可以让你写出质量杠杠的代码
周末躺在床上看《拯救大兵瑞恩》 周末在闲逛的时候,发现了两个优秀的 IDE 插件,据说可以提高代码的质量,我就安装了一下,试了试以后发现,确实很不错,就推荐给大家。 01、Alibaba Java 代码规范插件 《阿里巴巴 Java 开发手册》,相信大家都不会感到陌生,其 IDEA 插件的下载次数据说达到了 80 万次,我今天又贡献了一次。嘿嘿。 该项目的插件地址: https://github....
为什么猝死的都是程序员,基本上不见产品经理猝死呢?
相信大家时不时听到程序员猝死的消息,但是基本上听不到产品经理猝死的消息,这是为什么呢? 我们先百度搜一下:程序员猝死,出现将近700多万条搜索结果: 搜索一下:产品经理猝死,只有400万条的搜索结果,从搜索结果数量上来看,程序员猝死的搜索结果就比产品经理猝死的搜索结果高了一倍,而且从下图可以看到,首页里面的五条搜索结果,其实只有两条才是符合条件。 所以程序员猝死的概率真的比产品经理大,并不是错...
害怕面试被问HashMap?这一篇就搞定了!
声明:本文以jdk1.8为主! 搞定HashMap 作为一个Java从业者,面试的时候肯定会被问到过HashMap,因为对于HashMap来说,可以说是Java集合中的精髓了,如果你觉得自己对它掌握的还不够好,我想今天这篇文章会非常适合你,至少,看了今天这篇文章,以后不怕面试被问HashMap了 其实在我学习HashMap的过程中,我个人觉得HashMap还是挺复杂的,如果真的想把它搞得明明白...
毕业5年,我问遍了身边的大佬,总结了他们的学习方法
我问了身边10个大佬,总结了他们的学习方法,原来成功都是有迹可循的。
python爬取百部电影数据,我分析出了一个残酷的真相
2019年就这么匆匆过去了,就在前几天国家电影局发布了2019年中国电影市场数据,数据显示去年总票房为642.66亿元,同比增长5.4%;国产电影总票房411.75亿元,同比增长8.65%,市场占比 64.07%;城市院线观影人次17.27亿,同比增长0.64%。 看上去似乎是一片大好对不对?不过作为一名严谨求实的数据分析师,我从官方数据中看出了一点端倪:国产票房增幅都已经高达8.65%了,为什...
推荐10个堪称神器的学习网站
每天都会收到很多读者的私信,问我:“二哥,有什么推荐的学习网站吗?最近很浮躁,手头的一些网站都看烦了,想看看二哥这里有什么新鲜货。” 今天一早做了个恶梦,梦到被老板辞退了。虽然说在我们公司,只有我辞退老板的份,没有老板辞退我这一说,但是还是被吓得 4 点多都起来了。(主要是因为我掌握着公司所有的核心源码,哈哈哈) 既然 4 点多起来,就得好好利用起来。于是我就挑选了 10 个堪称神器的学习网站,推...
这些软件太强了,Windows必装!尤其程序员!
Windows可谓是大多数人的生产力工具,集娱乐办公于一体,虽然在程序员这个群体中都说苹果是信仰,但是大部分不都是从Windows过来的,而且现在依然有很多的程序员用Windows。 所以,今天我就把我私藏的Windows必装的软件分享给大家,如果有一个你没有用过甚至没有听过,那你就赚了????,这可都是提升你幸福感的高效率生产力工具哦! 走起!???? NO、1 ScreenToGif 屏幕,摄像头和白板...
阿里面试,面试官没想到一个ArrayList,我都能跟他扯半小时
我是真的没想到,面试官会这样问我ArrayList。
曾经优秀的人,怎么就突然不优秀了。
职场上有很多辛酸事,很多合伙人出局的故事,很多技术骨干被裁员的故事。说来模板都类似,曾经是名校毕业,曾经是优秀员工,曾经被领导表扬,曾经业绩突出,然而突然有一天,因为种种原因,被裁员了,...
C语言荣获2019年度最佳编程语言
关注、星标公众号,不错过精彩内容作者:黄工公众号:strongerHuang近日,TIOBE官方发布了2020年1月编程语言排行榜单。我在前面给过一篇文章《2019年11月C语言接近Ja...
大学四年因为知道了这32个网站,我成了别人眼中的大神!
依稀记得,毕业那天,我们导员发给我毕业证的时候对我说“你可是咱们系的风云人物啊”,哎呀,别提当时多开心啦????,嗯,我们导员是所有导员中最帅的一个,真的???? 不过,导员说的是实话,很多人都叫我大神的,为啥,因为我知道这32个网站啊,你说强不强????,这次是绝对的干货,看好啦,走起来! PS:每个网站都是学计算机混互联网必须知道的,真的牛杯,我就不过多介绍了,大家自行探索,觉得没用的,尽管留言吐槽吧???? 社...
良心推荐,我珍藏的一些Chrome插件
上次搬家的时候,发了一个朋友圈,附带的照片中不小心暴露了自己的 Chrome 浏览器插件之多,于是就有小伙伴评论说分享一下我觉得还不错的浏览器插件。 我下面就把我日常工作和学习中经常用到的一些 Chrome 浏览器插件分享给大家,随便一个都能提高你的“生活品质”和工作效率。 Markdown Here Markdown Here 可以让你更愉快的写邮件,由于支持 Markdown 直接转电子邮...
看完这篇HTTP,跟面试官扯皮就没问题了
我是一名程序员,我的主要编程语言是 Java,我更是一名 Web 开发人员,所以我必须要了解 HTTP,所以本篇文章就来带你从 HTTP 入门到进阶,看完让你有一种恍然大悟、醍醐灌顶的感觉。 最初在有网络之前,我们的电脑都是单机的,单机系统是孤立的,我还记得 05 年前那会儿家里有个电脑,想打电脑游戏还得两个人在一个电脑上玩儿,及其不方便。我就想为什么家里人不让上网,我的同学 xxx 家里有网,每...
应届生/社招面试最爱问的几道Java基础问题
本文已经收录自笔者开源的 JavaGuide: https://github.com/Snailclimb (【Java学习 面试指南】 一份涵盖大部分Java程序员所需要掌握的核心知识)如果觉得不错的还,不妨去点个Star,鼓励一下! 一 为什么 Java 中只有值传递? 首先回顾一下在程序设计语言中有关将参数传递给方法(或函数)的一些专业术语。按值调用(call by value)表...
史上最全的IDEA快捷键总结
现在Idea成了主流开发工具,这篇博客对其使用的快捷键做了总结,希望对大家的开发工作有所帮助。
阿里程序员写了一个新手都写不出的低级bug,被骂惨了。
这种新手都不会范的错,居然被一个工作好几年的小伙子写出来,差点被当场开除了。
谁是华为扫地僧?
是的,华为也有扫地僧!2020年2月11-12日,“养在深闺人不知”的华为2012实验室扫地僧们,将在华为开发者大会2020(Cloud)上,和大家见面。到时,你可以和扫地僧们,吃一个洋...
Idea 中最常用的10款插件(提高开发效率),一定要学会使用!
学习使用一些插件,可以提高开发效率。对于我们开发人员很有帮助。这篇博客介绍了开发中使用的插件。
AI 没让人类失业,搞 AI 的人先失业了
最近和几个 AI 领域的大佬闲聊 根据他们讲的消息和段子 改编出下面这个故事 如有雷同 都是巧合 1. 老王创业失败,被限制高消费 “这里写我跑路的消息实在太夸张了。” 王葱葱哼笑一下,把消息分享给群里。 阿杰也看了消息,笑了笑。在座几位也都笑了。 王葱葱是个有名的人物,21岁那年以全额奖学金进入 KMU 攻读人工智能博士,累计发表论文 40 余篇,个人技术博客更是成为深度学习领域内风向标。 ...
2020年,冯唐49岁:我给20、30岁IT职场年轻人的建议
点击“技术领导力”关注∆每天早上8:30推送 作者|Mr.K 编辑| Emma 来源|技术领导力(ID:jishulingdaoli) 前天的推文《冯唐:职场人35岁以后,方法论比经验重要》,收到了不少读者的反馈,觉得挺受启发。其实,冯唐写了不少关于职场方面的文章,都挺不错的。可惜大家只记住了“春风十里不如你”、“如何避免成为油腻腻的中年人”等不那么正经的文章。 本文整理了冯...
最全最强!世界大学计算机专业排名总结!
我正在参与CSDN200进20,希望得到您的支持,扫码续投票5次。感谢您! (为表示感谢,您投票后私信我,我把我总结的人工智能手推笔记和思维导图发送给您,感谢!) 目录 泰晤士高等教育世界大学排名 QS 世界大学排名 US News 世界大学排名 世界大学学术排名(Academic Ranking of World Universities) 泰晤士高等教育世界大学排名 中国共...
一份王者荣耀的英雄数据报告
咪哥杂谈本篇阅读时间约为 6 分钟。1前言前一阵写了关于王者的一些系列文章,从数据的获取到数据清洗,数据落地,都是为了本篇的铺垫。今天来实现一下,看看不同维度得到的结论。2环境准备本次实...
作为一名大学生,如何在B站上快乐的学习?
B站是个宝,谁用谁知道???? 作为一名大学生,你必须掌握的一项能力就是自学能力,很多看起来很牛X的人,你可以了解下,人家私底下一定是花大量的时间自学的,你可能会说,我也想学习啊,可是嘞,该学习啥嘞,不怕告诉你,互联网时代,最不缺的就是学习资源,最宝贵的是啥? 你可能会说是时间,不,不是时间,而是你的注意力,懂了吧! 那么,你说学习资源多,我咋不知道,那今天我就告诉你一个你必须知道的学习的地方,人称...
那些年,我们信了课本里的那些鬼话
教材永远都是有错误的,从小学到大学,我们不断的学习了很多错误知识。 斑羚飞渡 在我们学习的很多小学课文里,有很多是错误文章,或者说是假课文。像《斑羚飞渡》: 随着镰刀头羊的那声吼叫,整个斑羚群迅速分成两拨,老年斑羚为一拨,年轻斑羚为一拨。 就在这时,我看见,从那拨老斑羚里走出一只公斑羚来。公斑羚朝那拨年轻斑羚示意性地咩了一声,一只半大的斑羚应声走了出来。一老一少走到伤心崖,后退了几步,突...
一个程序在计算机中是如何运行的?超级干货!!!
强烈声明:本文很干,请自备茶水!???? 开门见山,咱不说废话! 你有没有想过,你写的程序,是如何在计算机中运行的吗?比如我们搞Java的,肯定写过这段代码 public class HelloWorld { public static void main(String[] args) { System.out.println("Hello World!"); } ...
【蘑菇街技术部年会】程序员与女神共舞,鼻血再次没止住。(文末内推)
蘑菇街技术部的年会,别开生面,一样全是美女。
那个在阿里养猪的工程师,5年了……
简介: 在阿里,走过1825天,没有趴下,依旧斗志满满,被称为“五年陈”。他们会被授予一枚戒指,过程就叫做“授戒仪式”。今天,咱们听听阿里的那些“五年陈”们的故事。 下一个五年,猪圈见! 我就是那个在养猪场里敲代码的工程师,一年多前我和20位工程师去了四川的猪场,出发前总架构师慷慨激昂的说:同学们,中国的养猪产业将因为我们而改变。但到了猪场,发现根本不是那么回事:要个WIFI,没有;...
立即提问