无法在创建Android项目编写jarlist缓存文件缓存、文件、项目、Android

2023-09-12 01:09:22 作者:独守寂寥

在创建Android项目我得到的错误,如在控制台日食:

While creating android project i am getting error like in console in eclipse:

[2014-03-13 15:14:36 - appcompat_v7] WARNING: unable to write jarlist cache file C:\Users\Neelakanteshwar\AndroidFirst\appcompat_v7\bin\jarlist.cache

appcompat_v7 文件夹以及在Eclipse项目文件夹中创建。

And appcompat_v7 folder is created along with project folder in eclipse.

任何人都可以请帮我拿到了解决方案。

Can anyone please help me to get the solution.

推荐答案

如果你去appcompat_v7 / bin文件夹,你会看到文件jarlist.cachedoesn't出现或不同步。您需要刷新appcompat_v7文件夹,只有preSS F5在该文件夹。

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.

该appcompat_v7文件夹添加,因为您使用操作栏组件。

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

啊哈。为了避免在创建新项目新appcompat_v7_XX文件夹,选择一个级别的API 14 Minimun必需的SDK。后必须修改器AndroidManifest.xml中,并把你所需要的水平。

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.

<使用-SDK         安卓的minSdkVersion =14------>更改         机器人:targetSdkVersion =19/>

<uses-sdk android:minSdkVersion="14" ------> change it android:targetSdkVersion="19" />

删除所有appcompat_v7_XX。这是一个错误。

Delete all appcompat_v7_XX. It is a bug.

通过appcompat_v7,你会看到Eclipse将创建两个XML文件:Activity_main.xml和fragment_main.xml。如果你想有一个选项,以旧的方式只有activity_main.xml创建一个项目,做到这一点:

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:

请位于此路径的文件夹BlanckActivity的副本:\ SDK \工具\模板\活动的ADT previous版本

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

文件夹重命名为BlankActivityNoFragment,然后编辑文件Template.xml中用记事本的名字=BlankActivityNoFragment

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

复制新的文件夹中的新的Eclipse IDE的相同的路径:SDK /工具/模板/活动

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

现在you'll看到了新的模板,当你去创建一个新的项目。记住要选择作为最低要求的SDK的API 14

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