Linux Format forums Forum Index Linux Format forums
Help, discussion, magazine feedback and more
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Android Get Started LXF145 problem

 
Post new topic   Reply to topic    Linux Format forums Forum Index -> Magazine and coverdiscs
View previous topic :: View next topic  
Author Message
skyde



Joined: Wed Jul 06, 2011 5:25 pm
Posts: 2

PostPosted: Wed Jul 06, 2011 5:39 pm    Post subject: Android Get Started LXF145 problem Reply with quote

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
View user's profile Send private message
skyde



Joined: Wed Jul 06, 2011 5:25 pm
Posts: 2

PostPosted: Wed Jul 06, 2011 8:07 pm    Post subject: Reply with quote

I figured it out myself. My main.xml in res/layout was buggy.
Back to top
View user's profile Send private message
View previous topic :: View next topic  
Display posts from previous:   
Post new topic   Reply to topic    Linux Format forums Forum Index -> Magazine and coverdiscs All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Linux Format forums topic RSS feed 


Powered by phpBB © 2001, 2005 phpBB Group


Copyright 2011 Future Publishing, all rights reserved.


Web hosting by UKFast