Does your project's build path (Project > Properties > Build Path)
include the Android Library? I interpret this error to basically be
saying that, that the Android libraries are not in the build path.

Cheers,
Justin
Android Team @ Google

On Apr 28, 8:57 pm, "sree kanth" <[EMAIL PROTECTED]> wrote:
> Hi Justin,
>
> I followed the steps same as in the 
> *http://code.google.com/android/documentation.html*site....
>
> The compilation i followed are:
> 1.  Install the eclipse in my system..
> 2> In the eclipse install the android plugin and WST plugin using help->
> software updates -> find and install
> 3> Given the path of android sdk-m5 in the eclipse using windows->
> preferences.
> 4 >make the new project(Hello Android)
> 5>When i am build this project the error came like below
> 6> modified the Helloandoid.java file
> 7>After build also the error came....
>
> MY R.java file is:
>
> /* AUTO-GENERATED FILE.  DO NOT MODIFY.
>  *
>  * This class was automatically generated by the
>  * aapt tool from the resource data it found.  It
>  * should not be modified by hand.
>  */
>
> package com.google.android.HelloAndroid;
>
> public final class R {
>     public static final class attr {
>     }
>     public static final class drawable {
>         public static final int icon=0x7f020000;
>     }
>     public static final class layout {
>         public static final int main=0x7f030000;
>     }
>     public static final class string {
>         public static final int app_name=0x7f040000;
>     }
>
> }
>
> My HelloAndroid.java file is:
>
> package com.google.android.HelloAndroid;
>
> import android.app.Activity;
> import android.os.Bundle;
> import android.widget.TextView;
>
> public class HelloAndroid extends Activity {
>     /** Called when the activity is first created. */
>
>         public void onCreate(Bundle icicle) {
>         super.onCreate(icicle);
>         TextView tv = new TextView(this);
>         tv.setText("Hello, Android");
>         setContentView(tv);
>     }
>
> }
>
> I am suffering this problem from one week ....Please give the
> solution.......
>
> Did you get this error on your initial compilation attempt or have you
> tried modifying the sample project? Can you post the contents of your
> R.java file? Can you also provide more detail on the exact steps to
> reproduce this, eg. what compilation steps you are taking?
>
> Thanks,
> Justin
> Android Team @ Google
>
> On Apr 23, 12:06 am, "sree kanth" <[EMAIL PROTECTED]> wrote:
>
> > I am getting the problem while running the HelloAndroid
> > program......................in eclipse.........
> > I installed the ADT plugin also...................
> > Please give me the solution to this below error message
>
> > [2008-04-23 12:27:28 - HelloAndroid1]
> > trouble processing:
> > [2008-04-23 12:27:28 - HelloAndroid1] invalid constant pool index 0000
> > ...while parsing LocalVariableTable attribute at offset 0000023e
> > ...while parsing attributes[1]
> > ...while parsing Code attribute at offset 0000021b
> > ...while parsing attributes[0]
> > ...while parsing methods[0]
> > ...while parsing com/android/hello/HelloAndroid.class
> > ...while processing com/android/hello/HelloAndroid.class
> > [2008-04-23 12:27:28 - HelloAndroid1]
> > trouble processing:
> > [2008-04-23 12:27:28 - HelloAndroid1] invalid constant pool index 0000
> > ...while parsing LocalVariableTable attribute at offset 0000019f
> > ...while parsing attributes[1]
> > ...while parsing Code attribute at offset 0000017c
> > ...while parsing attributes[0]
> > ...while parsing methods[0]
> > ...while parsing com/android/hello/R.class
> > ...while processing com/android/hello/R.class
> > [2008-04-23 12:27:28 - HelloAndroid1]
> > trouble processing:
> > [2008-04-23 12:27:28 - HelloAndroid1] invalid constant pool index 0000
> > ...while parsing LocalVariableTable attribute at offset 00000161
> > ...while parsing attributes[1]
> > ...while parsing Code attribute at offset 0000013e
> > ...while parsing attributes[0]
> > ...while parsing methods[0]
> > ...while parsing com/android/hello/R$drawable.class
> > ...while processing com/android/hello/R$drawable.class
> > [2008-04-23 12:27:28 - HelloAndroid1]
> > trouble processing:
> > [2008-04-23 12:27:28 - HelloAndroid1] invalid constant pool index 0000
> > ...while parsing LocalVariableTable attribute at offset 0000015b
> > ...while parsing attributes[1]
> > ...while parsing Code attribute at offset 00000138
> > ...while parsing attributes[0]
> > ...while parsing methods[0]
> > ...while parsing com/android/hello/R$layout.class
> > ...while processing com/android/hello/R$layout.class
> > [2008-04-23 12:27:28 - HelloAndroid1]
> > trouble processing:
> > [2008-04-23 12:27:28 - HelloAndroid1] invalid constant pool index 0000
> > ...while parsing LocalVariableTable attribute at offset 0000015f
> > ...while parsing attributes[1]
> > ...while parsing Code attribute at offset 0000013c
> > ...while parsing attributes[0]
> > ...while parsing methods[0]
> > ...while parsing com/android/hello/R$string.class
> > ...while processing com/android/hello/R$string.class
> > [2008-04-23 12:27:28 - HelloAndroid1]
> > trouble processing:
> > [2008-04-23 12:27:28 - HelloAndroid1] invalid constant pool index 0000
> > ...while parsing LocalVariableTable attribute at offset 00000125
> > ...while parsing attributes[1]
> > ...while parsing Code attribute at offset 00000102
> > ...while parsing attributes[0]
> > ...while parsing methods[0]
> > ...while parsing com/android/hello/R$attr.class
> > ...while processing com/android/hello/R$attr.class
> > [2008-04-23 12:27:28 - HelloAndroid1] 6 warnings
> > [2008-04-23 12:27:28 - HelloAndroid1] no classfiles specified
> > [2008-04-23 12:27:28 - HelloAndroid1] Conversion to Dalvik format failed
> > with error 1

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to