(Tutorial 18)Having errors in Android Studio while executing a program

+5 Abdullah Karaman · December 30, 2014
Hey guys! 

I'm having these errors when I try to launch the program.  // UPDATE: I solved the first error! 
Can anyone help me?
Here is my line of code.


/images/forum/upload/2014-12-30/55d1f4905350847c7f263dad542693d7.PNG


/images/forum/upload/2014-12-30/70a58c7580e6caec0e40a3cf9aab4bef.PNG




Here is the errors:


/images/forum/upload/2014-12-30/102695e141537982e70ff6d7685140b7.PNG

Post a Reply

Replies

- page 1
Oldest  Newest  Rating
0 KEVIN K P · January 1, 2015
for more info about relative layout :

http://developer.android.com/guide/topics/ui/layout/relative.html
 
                                  OR
Android app development video 44
0 Abdullah Karaman · January 1, 2015
Lol ok,

but in what cases I will need it? Just to make the program run? 
+1 KEVIN K P · January 1, 2015
yeah
u can give any id like cat,dog,bacon.........not abc everytime:D
0 Abdullah Karaman · December 31, 2014
Ok. So, I'll have to add "android:id="@+id/abc" everytime if I have that error again? Correct? 
+1 KEVIN K P · December 31, 2014
Abdullah Karaman i dont know how it happened.

But u cant leave id field empty.
So it generated error.
0 Abdullah Karaman · December 31, 2014
VIPIN K R

Thank you! It worked! 

But I didn't touch that part at all... So how did it happen? Could you please explain? 
+1 KEVIN K P · December 30, 2014
edit::


in line num 7

eg:
android:id="@+id/abc"
0 KEVIN K P · December 30, 2014
In activity_main.xml

provide id for Relative layout
in line num 7

eg: android:id="@id+/abc"

for more info about relative layout check out tutorial num 44 of android applicaton development
0 Abdullah Karaman · December 30, 2014
I didn't touch that file to be hones.. 
But here is the snapshot:
/images/forum/upload/2014-12-30/512c8ec38aff4c25fc2bcefe0f01ace3.PNG
0 Abdullah Karaman · December 30, 2014
I'm not sure if my reply went through so I'll try one more time..(if not please ignore this msg)
/images/forum/upload/2014-12-30/32e36d99f73b8f7cabf263a39e8f5eb9.PNG
  • 1
  • 2

Java / Android Development

107,230 followers
About

Very popular language used to create desktop applications, website applets, and Android apps.

Links
Moderators
Bucky Roberts Administrator