Android Get Started LXF145 problem

Comments, suggestions and questions about Linux Format magazine and the coverdiscs

Moderators: ChrisThornett, LXF moderators

Android Get Started LXF145 problem

Postby skyde » Wed Jul 06, 2011 4:39 pm

I thought I have followed the tutorial to the letter and when I try to
"ant debug" I get :

Code: Select all
compile:
    [javac] /home/skyde/android/android-sdk-linux_x86/tools/ant/main_rules.xml:384: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
    [javac] Compiling 2 source files to /home/skyde/android_code/countdown/bin/classes
    [javac] /home/skyde/android_code/countdown/src/com/example/countdown/CountdownActivity.java:28: cannot find symbol
    [javac] symbol  : variable timeentrybox
    [javac] location: class com.example.countdown.R.id
    [javac]       final EditText timeEntry = (EditText) findViewById(R.id.timeentrybox);
    [javac]                                                              ^
    [javac] /home/skyde/android_code/countdown/src/com/example/countdown/CountdownActivity.java:29: cannot find symbol
    [javac] symbol  : variable startbutton
    [javac] location: class com.example.countdown.R.id
    [javac]       Button startButton = (Button) findViewById(R.id.startbutton);
    [javac]                                                      ^
    [javac] 2 errors


I even copied the code from the DVD and still getting the same problem.
My first instinct was to replace timeentrybox with timeEntry and startbutton with startButton but that did not work.

Best regards,
~skyde
skyde
 
Posts: 2
Joined: Wed Jul 06, 2011 4:25 pm

Postby skyde » Wed Jul 06, 2011 7:07 pm

I figured it out myself. My main.xml in res/layout was buggy.
skyde
 
Posts: 2
Joined: Wed Jul 06, 2011 4:25 pm


Return to Magazine and coverdiscs

Who is online

Users browsing this forum: No registered users and 1 guest