| View previous topic :: View next topic |
| Author |
Message |
skyde
Joined: Wed Jul 06, 2011 5:25 pm Posts: 2
|
Posted: Wed Jul 06, 2011 5:39 pm Post subject: Android Get Started LXF145 problem |
|
|
I thought I have followed the tutorial to the letter and when I try to
"ant debug" I get :
| Code: |
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 |
|
| Back to top |
|
 |
skyde
Joined: Wed Jul 06, 2011 5:25 pm Posts: 2
|
Posted: Wed Jul 06, 2011 8:07 pm Post subject: |
|
|
| I figured it out myself. My main.xml in res/layout was buggy. |
|
| Back to top |
|
 |
| View previous topic :: View next topic |
|