`
xuela_net
  • 浏览: 495160 次
文章分类
社区版块
存档分类
最新评论

android开发中出现R.java was modified manually! Reverting to generated version!问题的解决方法

 
阅读更多

这种问题是说R.java文件没有起作用,开发中R.java文件是很重要的,所以解决此类问题按照下面的方法即可:

进入 eclipse后选择菜单栏中的 Projects ,然后选择 clean

这样就把R.java文件删除掉了,但是别担心,刷新项目,R.java会自动更新的。如果不更新的话一定是程序中有错误,一般情况下是命名问题。


经常遇到的情况是:

(1)不同的 layout 中 .xml 文件中控件命名冲突。只要把相关的控件命名区别开来,刷新项目,R.java文件就会自动成。

(2)相关的目录文件不能删除,res文件夹中只能包含文件夹,不能有文件或图片存在。不管怎么样,只要res文件夹下的xml文件配置没有错误,R.java会自动生成的。
分享到:
评论

相关推荐

    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. ...

    EurekaLog_7.5.0.0_Enterprise

    1)..Important: Installation layout was changed. All packages now have version suffix (e.g. EurekaLogCore240.bpl). No files are copied to \bin folder of IDE. Run-time package (EurekaLogCore) is copied ...

    javacv-platform-1.3.3-src

    To learn how to use the API, since documentation currently lacks, please refer to the Sample Usage section below as well as the sample programs, including two for Android (FacePreview.java and Record...

    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!

    Crystal Impact Match!2.1.3 试用延长

    It compares the diffraction pattern of your sample to a database containing reference patterns in order to identify the phases which are present. Additional knowledge about the sample like known ...

    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...

    apktool documentation

    Update aapt manually or use package r05-ibot via downloading Mac, Windows or Linux Remove framework file $HOME/apktool/framework/1.apk Intermediate Framework Files As you probably know, Android ...

    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 ...

    postGIS 用户手册

    4.3.4 Manually Registering Geometry Columns in geometry_columns . . . . . . . . . . . . . . . . . 24 4.3.5 Ensuring OpenGIS compliancy of geometries . . . . . . . . . . . . . . . . . . . . . . 25 ...

    Android-ObservableScrollView

    Android-ObservableScrollView Build Status Coverage Status Maven Central API Android Arsenal Android library to observe scroll events on scrollable views. It's easy to interact with the Toolbar ...

    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 ...

    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...

    Android 资料又一包

    Manually update settings in command line.pdf Android build system.pdf Bluetooth.pdf Audio.pdf Android Media Scanner Process.pdf Talking about Android process.pdf Android Initialization Process.pdf ...

    shfmt_v3.1.2_windows_amd64.exe

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

    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...

    FFMPEG For Android

    Extract ffmpeg-<version>.android.tar.gz into Android source code tree, at location: <android-src-root-dir>/external Files will be located in: <android-src-root-dir>/external/ffmpeg-<version>....

    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 ...

    VitamioBundle-master5.2.3.zip

    11. The full Java code is open to all developers, modify and contribute is welcome. 12. Support RGBA\_8888 rendering, spport switching RGB\_565 or RGBA\_8888 to video rendering. 13. Enhance the ...

    Flappy Bird Clone Source Code For Delphi XE5 Firemonkey On Android And IOS

    I wanted to build a proof of concept prototype version of Flappy Bird using Delphi XE5 Firemonkey and this is what I came up with. The game is called Flappy Firemonkey and I built it in a few hours. ...

Global site tag (gtag.js) - Google Analytics