`

R.java was modified manually! Reverting to generated version!

 
阅读更多

 

进入 eclipse后,菜单 --> Project --> clean,这样的操作就相当于把R文件删了,然后再自动生成R文件。如果没有自动生成R文件,那么就是程序中有错误,一般情况下是命名问题。

我遇到的情况是:(1)layout文件夹中,不同的 xml文件中控件命名冲突(因为我是直接复制的)。

此时的解决方法:控件命名要唯一,即把崇明的控件名称都改掉,然后clean项目,R文件就会自动生成。

(2)res文件夹中只能包含相应的文件夹,不能有文件或图片存在。

(3)res文件夹中的文件名称都必须是小写

总之,只要res文件没有错误,R文件会自动生成。

 

分享到:
评论

相关推荐

    eclipse常见故障处理

    Android常见故障处理 1.导入源代码时出现“Unable to resolve target 'android-7' 2. eclipse导入工程中文乱码问题 3. R.java was modified manually! Reverting to generated version!

    Solution for Designer error when opening WorldWind.cs in WW1.4.0

    When I load the WW ... The code within the method 'InitializeComponent' is generated by the designer and should not be manually modified. Please remove any changes and try opening the designer again. ...

    javacv-platform-1.3.3-src

    To install manually the JAR files, obtain the following archives and follow the instructions in the Manual Installation section below. JavaCV 1.3.3 binary archive javacv-platform-1.3.3-bin.zip (212 ...

    WARN Failed to install dependencies. Please run ‘npm install’ manually!解决方案

    1.git安装 2.nodejs安装 node -v npm -v #换镜像 ...# 少空格也会报错 cnpm #查看镜像 #用cnpm 全局安装 hexo客户端 cnpm install -g hexo-...WARN Failed to install dependencies. Please run ‘npm install’ manually!

    shfmt_v3.1.2_windows_amd64.exe

    一个脚本程序,解决idea出现的 Can‘t download sh shfmt formatter. Please install it manually

    shellcheck

    Shellcheck是一款非常实用的开源工具,专用于检查和分析Shell脚本(主要为sh和bash)的语法错误、潜在问题以及不推荐的用法。它能够帮助开发者在编写或维护Shell脚本时避免常见的错误,提高脚本的稳定性和可靠性。...

    mysql-connector-java-8.0.21.jar

    library protobuf-java, which you can download manually from the official Maven repository and add it to the CLASSPATH, or use Maven's automatic dependency resolution features by adding a dependency...

    Java GUI Builder, Version 1.3.

    Java GUI Builder, Version 1.3.The Java GUI Builder lets you create a java AWT/Swing interface of a Applet, Frame, JApplet or JFrame visually, instead of making it manually in your code. Java GUI ...

    VclZip pro v3.10.1

    IMPORTANT: If installing the registered version, please be sure to always re-install/rebuild the components (VCLZip and VCLUnZip) to the component pallette (or rebuild the design time package) so that...

    BURNINTEST--硬件检测工具

    Use a version of BurnInTest prior to 5.2 for compatibility with W98 and ME. Windows 95 and Windows NT ========================= Windows 95 and NT are not supported in BurnInTest version 4.0 and above...

    ImpREC 1.7c

    - Modified code to improve support for discardable/unreadable sections (jstorme) - Fixed ImageBase problem with DLL's when "Use PE Header from Disk" is checked (jstorme) - Added an "ImpREC Classic...

    Crystal Impact Match!2.1.3 试用延长

    The user database patterns can be edited manually, imported from peak files, calculated from crystal structure data (e.g. CIF files), or imported from your colleague's user database. A list of Match!...

    kbejjjbd(www.greenxf.com).rar

    Unable to detect adb version, exit value: 0xc0000135. ADB depends on the Windows Universal C Runtime, which is usually installed by default via Windows Update. You may need to manually fetch and ...

    UE(官方下载)

    This is a convenient feature when you're manually comparing files, when you want to copy/paste between multiple files, or when you simply want to divide up your edit space. Tabbed Child Windows ...

    EurekaLog_7.5.0.0_Enterprise

    1)....Important: TEurekaLogV7 component was renamed to TEurekaLogEvents. Please, update your projects by renaming or recreating the component 2)....Important: File layout was changed for BDS 2006+. ...

    EhLib 6.3 Build 6.3.176 Russian version. Full source included.

    EhLib 6.3 Build 6.3.176 Russian version. Full source included. ------------------------------------------------------------------- The Library contains components and classes for Borland Delphi ...

    NativeXml-master

    * fixed attribute processing in NativeXmlStorage.pas (thanks RKS) Version 4.01 (27jul2011) + added binary xml to the TNativeXml class itself + added methods BinaryMethod and AesKeyHex * improved ...

    Houdini12_5keygenByFlipMoneky.exe

    1. Unzip and unrar to a temp directory 2. Start installation BEFORE STARTING HOUDINI: 3. Stop HoudiniLicenseServer (from services) 4. Copy sesinted.exe from Crack dir to c:\windows\system32 ...

    Oak Trees Package v2.04

    This package contains a set of 6 highly detailed PBS oak trees – each consisting of 2 smoothly fading mesh based LODs and a ...The legacy tree creator oak trees from version 1.0 are still included.

    acpi控制笔记本风扇转速

    ACPI_OPERAND_OBJECT has been manually optimized to be aligned and will not work if it is byte-packed. Example Code and Data Size: These are the sizes for the OS- independent acpica.lib produced by ...

Global site tag (gtag.js) - Google Analytics