关于出现WARNING: unable to write jarlist cache file ...\appcompat_v7\bin\jarlist.cache 问题详解

今天在创建项目的时候,突然发现了这个问题:

WARNING: unable to write jarlist cache file E:\AndroidProject\appcompat_v7\bin\jarlist.cache

一开始觉得莫名其妙,但是对项目本身没有影响。

但是看到有错误在这感觉不爽,然后就去查。

结果发现原来是一个bug 以下是原文解答:

If you go to appcompat_v7/bin folder, you'll see that file "jarlist.cache" doesn´t appear or is unsynchronized. You need to refresh the appcompat_v7 folder, only press F5 over that folder.

The appcompat_v7 folder is added because you use an action bar component.

Aah. To avoid a new appcompat_v7_XX folder when you are creating a new project, choose a LEVEL API 14 as Minimun Required SDK. After you must modifier the AndroidManifest.xml and put the level that you need.

change it android:targetSdkVersion="19" />

Delete all appcompat_v7_XX. It is a bug.

With appcompat_v7, You will see that Eclipse creates two XML files: Activity_main.xml and fragment_main.xml. If you want to have an option to create a project in the old way only with activity_main.xml, do that:

Make a copy of the folder "BlanckActivity" located in this path: \sdk\tools\templates\activities of an ADT previous version.

Rename the folder as “BlankActivityNoFragment”, then edit the field name of the file "template.xml" with a notepad as name=”BlankActivityNoFragment”

Copy the new folder in the same path of the new Eclipse IDE:sdk/tools/templates/activities

Now you´ll see the new template when you go to create a new project. Remember to choose as Minimum Required SDK an API 14

大致的意思就是刷新appcompat_v7文件夹 或者创建项目的时候将最小版本改为14

笔者尝试第二种方式貌似没有出现警告字样...

你可能感兴趣的:(android)