to rebuild your android project will generate the R.java
automatically.
just type 'Ctrl + B'  in eclipse on windows platform
it works for me.

On Feb 24, 2:15 am, 冰咖啡不加糖 <xinyu...@gmail.com> wrote:
> fix it.
>
> just do it, replace the andorid.jar/resources.arsc you compiled with
> the old version which could work.
>
> On 2月24日, 下午5时01分, 冰咖啡不加糖 <xinyu...@gmail.com> wrote:
>
> > but not all project could word well
>
> > for example, SoftKeyboard (in cupcake source code ) res/xml/qwerty.xml
> > has some "error".
>
> > On 2月24日, 下午4时50分, 冰咖啡不加糖 <xinyu...@gmail.com> wrote:
>
> > > i changed the UNCOMPRESS_DATA_MAX,
> > > but the bug still exist.
>
> > > may be it works in linux,
> > > my eclipse works in windows.
>
> > > However, i found another way to avoid the bug,
> > > Just like what Khunong said.
>
> > > I change the andorid.jar/resources.arsc to the old version instead of
> > > the new version which i compiled in cupcake.
>
> > > and the bug disappers.
>
> > > On 2月19日, 下午3时48分, tom <gxiao...@sohu.com> wrote:
>
> > > > vi /frameworks/base/include/utils/Asset.h
> > > > change the following
> > > >  UNCOMPRESS_DATA_MAX = 1 * 1024 * 1024
> > > > to
> > > >  UNCOMPRESS_DATA_MAX = 2 * 1024 * 1024
>
> > > > and rebuild sdk
> > > > that's ok
>
> > > > > Hi,
>
> > > > >   I checked out cupcake branch yesterday and made the full build and 
> > > > > sdk
> > > > > successfully, and I also built the ADT 0.9 with the command
> > > > > cupcake/development/tools/eclipse/scripts/build_server.sh on another 
> > > > > Linux
> > > > > box. Then I updated the ADT 0.9 and set new SDK on Eclipse.
> > > > >    Then I created a simple Android project Test with Android Project 
> > > > > Wizard,
> > > > > the Eclipse created project files except theR.javaand then reported
> > > > > following errors.
> > > > >     Seems the resources are  not correctly parsed.
>
> > > > > Errors:
>
> > > > > [2009-01-21 15:07:32 - Test] W/ResourceType(  267): Unable to get 
> > > > > buffer of
> > > > > resource asset file
> > > > > [2009-01-21 15:07:32 - Test]
> > > > > /Volumes/DATA/workspace/myspace/Test/res/layout/main.xml:2: ERRORNo
> > > > > resource identifier found for attribute 'orientation' in package 
> > > > > 'android'
> > > > > [2009-01-21 15:07:32 - Test]
> > > > > /Volumes/DATA/workspace/myspace/Test/res/layout/main.xml:2: ERRORNo
> > > > > resource identifier found for attribute 'layout_width' in package 
> > > > > 'android'
> > > > > [2009-01-21 15:07:32 - Test]
> > > > > /Volumes/DATA/workspace/myspace/Test/res/layout/main.xml:2: ERRORNo
> > > > > resource identifier found for attribute 'layout_height' in package 
> > > > > 'android'
> > > > > [2009-01-21 15:07:32 - Test]
> > > > > /Volumes/DATA/workspace/myspace/Test/res/layout/main.xml:7: ERRORNo
> > > > > resource identifier found for attribute 'layout_width' in package 
> > > > > 'android'
> > > > > [2009-01-21 15:07:32 - Test]
> > > > > /Volumes/DATA/workspace/myspace/Test/res/layout/main.xml:7: ERRORNo
> > > > > resource identifier found for attribute 'layout_height' in package 
> > > > > 'android'
> > > > > [2009-01-21 15:07:32 - Test]
> > > > > /Volumes/DATA/workspace/myspace/Test/res/layout/main.xml:7: ERRORNo
> > > > > resource identifier found for attribute 'text' in package 'android'
> > > > > [2009-01-21 15:07:32 - Test]
> > > > > /Volumes/DATA/workspace/myspace/Test/AndroidManifest.xml:2: ERRORNo
> > > > > resource identifier found for attribute 'versionCode' in package 
> > > > > 'android'
> > > > > [2009-01-21 15:07:32 - Test]
> > > > > /Volumes/DATA/workspace/myspace/Test/AndroidManifest.xml:2: ERRORNo
> > > > > resource identifier found for attribute 'versionName' in package 
> > > > > 'android'
> > > > > [2009-01-21 15:07:32 - Test]
> > > > > /Volumes/DATA/workspace/myspace/Test/AndroidManifest.xml:6: ERRORNo
> > > > > resource identifier found for attribute 'icon' in package 'android'
> > > > > [2009-01-21 15:07:32 - Test]
> > > > > /Volumes/DATA/workspace/myspace/Test/AndroidManifest.xml:6: ERRORNo
> > > > > resource identifier found for attribute 'label' in package 'android'
> > > > > [2009-01-21 15:07:32 - Test]
> > > > > /Volumes/DATA/workspace/myspace/Test/AndroidManifest.xml:7: ERRORNo
> > > > > resource identifier found for attribute 'name' in package 'android'
> > > > > [2009-01-21 15:07:32 - Test]
> > > > > /Volumes/DATA/workspace/myspace/Test/AndroidManifest.xml:7: ERRORNo
> > > > > resource identifier found for attribute 'label' in package 'android'
> > > > > [2009-01-21 15:07:32 - Test]
> > > > > /Volumes/DATA/workspace/myspace/Test/AndroidManifest.xml:10: ERRORNo
> > > > > resource identifier found for attribute 'name' in package 'android'
> > > > > [2009-01-21 15:07:32 - Test]
> > > > > /Volumes/DATA/workspace/myspace/Test/AndroidManifest.xml:11: ERRORNo
> > > > > resource identifier found for attribute 'name' in package 'android'
> > > > > [2009-01-21 15:07:32 - Test]
> > > > > /Volumes/DATA/workspace/myspace/Test/AndroidManifest.xml:15: ERRORNo
> > > > > resource identifier found for attribute 'minSdkVersion' in package 
> > > > > 'android'
> > > > > [2009-01-21 15:07:32 - Test] W/ResourceType(  268): Unable to get 
> > > > > buffer of
> > > > > resource asset file
> > > > > [2009-01-21 15:07:32 - Test]
> > > > > /Volumes/DATA/workspace/myspace/Test/res/layout/main.xml:2: ERRORNo
> > > > > resource identifier found for attribute 'orientation' in package 
> > > > > 'android'
> > > > > [2009-01-21 15:07:32 - Test]
> > > > > /Volumes/DATA/workspace/myspace/Test/res/layout/main.xml:2: ERRORNo
> > > > > resource identifier found for attribute 'layout_width' in package 
> > > > > 'android'
> > > > > [2009-01-21 15:07:32 - Test]
> > > > > /Volumes/DATA/workspace/myspace/Test/res/layout/main.xml:2: ERRORNo
> > > > > resource identifier found for attribute 'layout_height' in package 
> > > > > 'android'
> > > > > [2009-01-21 15:07:32 - Test]
> > > > > /Volumes/DATA/workspace/myspace/Test/res/layout/main.xml:7: ERRORNo
> > > > > resource identifier found for attribute 'layout_width' in package 
> > > > > 'android'
> > > > > [2009-01-21 15:07:32 - Test]
> > > > > /Volumes/DATA/workspace/myspace/Test/res/layout/main.xml:7: ERRORNo
> > > > > resource identifier found for attribute 'layout_height' in package 
> > > > > 'android'
> > > > > [2009-01-21 15:07:32 - Test]
> > > > > /Volumes/DATA/workspace/myspace/Test/res/layout/main.xml:7: ERRORNo
> > > > > resource identifier found for attribute 'text' in package 'android'
> > > > > [2009-01-21 15:07:32 - Test]
> > > > > /Volumes/DATA/workspace/myspace/Test/AndroidManifest.xml:2: ERRORNo
> > > > > resource identifier found for attribute 'versionCode' in package 
> > > > > 'android'
> > > > > [2009-01-21 15:07:32 - Test]
> > > > > /Volumes/DATA/workspace/myspace/Test/AndroidManifest.xml:2: ERRORNo
> > > > > resource identifier found for attribute 'versionName' in package 
> > > > > 'android'
> > > > > [2009-01-21 15:07:32 - Test]
> > > > > /Volumes/DATA/workspace/myspace/Test/AndroidManifest.xml:6: ERRORNo
> > > > > resource identifier found for attribute 'icon' in package 'android'
> > > > > [2009-01-21 15:07:32 - Test]
> > > > > /Volumes/DATA/workspace/myspace/Test/AndroidManifest.xml:6: ERRORNo
> > > > > resource identifier found for attribute 'label' in package 'android'
> > > > > [2009-01-21 15:07:32 - Test]
> > > > > /Volumes/DATA/workspace/myspace/Test/AndroidManifest.xml:7: ERRORNo
> > > > > resource identifier found for attribute 'name' in package 'android'
> > > > > [2009-01-21 15:07:32 - Test]
> > > > > /Volumes/DATA/workspace/myspace/Test/AndroidManifest.xml:7: ERRORNo
> > > > > resource identifier found for attribute 'label' in package 'android'
> > > > > [2009-01-21 15:07:32 - Test]
> > > > > /Volumes/DATA/workspace/myspace/Test/AndroidManifest.xml:10: ERRORNo
> > > > > resource identifier found for attribute 'name' in package 'android'
> > > > > [2009-01-21 15:07:32 - Test]
> > > > > /Volumes/DATA/workspace/myspace/Test/AndroidManifest.xml:11: ERRORNo
> > > > > resource identifier found for attribute 'name' in package 'android'
> > > > > [2009-01-21 15:07:32 - Test]
> > > > > /Volumes/DATA/workspace/myspace/Test/AndroidManifest.xml:15: ERRORNo
> > > > > resource identifier found for attribute 'minSdkVersion' in package 
> > > > > 'android'
>
> > > > > OS : Mac OS X Tiger v10.4.11
> > > > > XCode v2.5
> > > > > Eclipse v3.4.1
>
> > > > > Regards,
> > > > > Moontain

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to