Android异常之 unable to write jarlist cache file

异常: android开发调试时候不能运行,出现  unable to write jarlist cache file  错误。

解决方法:

1.找到appcompt文件夹如下的位置。

2.可以看到这个文件没有同步,需要刷新一下。

3.按F5刷新一下就可以看到下面的文件内容。

4.在项目目录邮件,选择“build project”.

5.解决完毕

时间: 2024-08-09 14:55:50

Android异常之 unable to write jarlist cache file的相关文章

Android异常记录--Unable to resolve superclass

当引用到*.jar文件时,报错“Unable to resolve superclass ...” " Just started to get this issue after upgrading to ADT 17. Discovered that external .jar files need to be in a 'libs' (with an s) folder otherwise their classes are not included in the .dex file that

Struts2配置拦截器自定义栈时抛异常:Unable to load configuration. - interceptor-ref - file:/D:/tomcat_install/webapps/crm/WEB-INF/classes/struts.xml

代码如下: <interceptors>  <!-- 注册自定义拦截器 -->   <interceptor name="LoginInterceptor" class="com.hncj.crm.staff.web.action.LoginInterceptor"></interceptor>   <!--自定义栈  -->   <interceptor-stack name="crmSt

【Android】Android import和export使用说明 及 export报错:jarlist.cache: Resource is out of sync with the file syst解决

在Android开发export项目时发现有时会报错,内容如下: Problems were encountered during export:  Error exporting PalmIdentify/bin/jarlist.cache: Resource is out of sync with the file system: '/PalmIdentify/bin/jarlist.cache'.    Resource is out of sync with the file syste

Android异常分析(转)

关于异常 异常? 异常就是一种程序中没有预料到的问题,既然是没有预料到的,就可能不在原有逻辑处理范围内,脱离了代码控制,软件可能会出现各种奇怪的现象.比如:android系统常见异常现象有应用无响应.应用停止运行.冻屏.重启.死机等,这些异常系统有统一的异常处理机制,出现异常系统就会执行相应的操作,最终有相应的现象体现出来.另外,一些不在预料之中的界面显示问题,操作问题,运行卡顿问题等也可以归于异常,只不过这种异常是人为逻辑缺陷,对系统来说是正常的,但这些缺陷在异常现象中占比却相当大,直接体现出

com.android.ddmlib.InstallException: Unable to upload some APKs?

真机调试时,cmd命令中执行react-native run-android时出现com.android.ddmlib.InstallException: Unable to upload some APKs异常,然后后面有个解决方案尝试通过输出错误栈查看或者调试及一般日志,没发现其他错误. 后面在发现adb devices出现两个设备一个是真机,另一个是emulator-5594 host ,由于不能出现两个及以上的设备,马上杀死adb,重启 命令:adb kill -server adb s

【Android 疑难杂症1】android.content.ActivityNotFoundException: Unable to find explicit activity class

android.content.ActivityNotFoundException: Unable to find explicit activity class {com.example.cnotes/com.example.cnotes.Notes_History}; have you declared this activity in your AndroidManifest.xml? 在activity中访问其它xml文件的时候总是提示Unable to find,这种情况是没有在配置文

[Android学习笔记]Unable to execute dex Multiple dex files define:xxxx 问题

不同情况可能会出现这个问题,我遇到的问题是: 引入的多个jar包中,其中可能是第三方的SDK,但是其中可能使用了比较流行的开源框架,此时你项目中就有两套包名一样的代码,编译没问题,部署到手机之后就报如上错误 解决办法是: 把第三方jar包包含的开源代码删掉即可 比如: 项目中使用了android-async-http.jar , 同时引入 xxxxx.sdk.jar , 而由于xxxxx.sdk.jar中也引入了android-async-http.jar所以出现以上错误 解决步骤: 1.修改x

android异常:android.view.ViewRootImpl$CalledFromWrongThreadException

android异常:android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views. 出现这个异常的原因是你在子线程中修改了主线程中的组件的状态或数据. android规定:只有在原始线程中(主线程,UI线程)才能修改显示组件.

android异常java.lang.IllegalStateException: getDatabase called recursively问题

问题场景: 在app首次启动使用到db的时候,后台提示如下错误信息 java.lang.IllegalStateException: getDatabase called recursively at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:204) at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase