English 中文(简体)
再生 R 提供不正确的资源。
原标题:Android Regenerating R give incorrect resource ids

Strangely I m getting really strange resource ids when R regenerates, that looks like:

public static final int @+id/@+id/music_thumb_img=0x7f060063;
public static final int @+id/music_main_text=0x7f060064;

当他们想:

public static final int music_thumb_img=0x7f06001d;
public static final int music_main_text=0x7f06001e;

Needless to say, this R.java doesn t compile, but there doesn t seem like there s any problem in the java code nor the .xmls, at least not obvious ones that IDEs can pick up.

是否有任何人遇到这种情况?

问题回答

暂无回答




相关问题
how to use DynamicResource in the code behind?

I d like to be able to set a property to a dynamic resource programmatically. myControl.Property = this.Resource[key] is not a valid response, since if the resource with the key key is replaced, ...

PHP - Foreach loops and ressources

I m using a foreach loop to process a large set of items, unfortunately it s using alot of memory. (probably because It s doing a copy of the array). Apparently there is a way to save some memory with ...

C# Play MP3 from Resources with MCI or WMP control?

I have a MP3 file in my Resources of Visual C#. I m trying to find out if there is a way I can play this MP3 in a Windows Media Player control or with MCI, I m not particular. I m fairly new to C#. ...

Convert files of any types to a file with c strings

Please suggest a small command-line utility (for Windows) to convert files from particular directory to a valid c file. Maybe it can be done just with batch commands? The resulting file should look ...

How to sort ResourceSet in C#

I have a resource file named filetypes.resx. Some how I figured out to bind the resource values to dropdownlist, but I don t know how to sort the values of ResourceSet. Here is what I did so far, ...

热门标签