Error with resources variables R.string.xxx

Put problem concerning MapActivities, MapViews, Overlays and GPS in this forum.

Error with resources variables R.string.xxx

Postby ca050306 » Mon May 19, 2008 9:34 am

Hi !

I have the following error in AndroidManifest xml file

<activity class=".FriendFinder" android:label="@string/main_title">

Eclipse wrote that "Tag <activity> missing the required attribute name"

and in the other class files R.string.xxx variables defined in the strings.xml can not be resolved


Do you know what I made wrong.Your help will be welcome

Best regards
ca050306
Freshman
Freshman
 
Posts: 6
Joined: Sat May 17, 2008 3:31 pm

Top

Postby Jesmiatka » Mon May 19, 2008 12:33 pm

Hi,

it looks like you are using code that is compatible with the M3 version of the SDK and you are using M5.
In M5 you have to use " android:name " in stead of " class ".

I recommend you to look at this:
http://code.google.com/android/migratin ... anges.html

Yours sincerely,
Mike
Jesmiatka
Senior Developer
Senior Developer
 
Posts: 164
Joined: Mon Feb 04, 2008 3:37 pm
Location: Netherlands

Postby ca050306 » Mon May 19, 2008 2:32 pm

Jesmiatka wrote:Hi,

it looks like you are using code that is compatible with the M3 version of the SDK and you are using M5.
In M5 you have to use " android:name " in stead of " class ".

I recommend you to look at this:
http://code.google.com/android/migratin ... anges.html

Yours sincerely,
Mike


Mike, Thanks for the hint, indeed I was using m5
I made all the changes as stated in the linked document, but I have still the same error in the manifest file. I saw as well that my R.java file is no updated. I worked with Eclipse.

Syntax: [ Download ] [ Hide ]
Using xml Syntax Highlighting
  1. <activity android:name=".FriendFinder" android:label="@string/main_title">
Parsed in 0.000 seconds, using GeSHi 1.0.8.4
ca050306
Freshman
Freshman
 
Posts: 6
Joined: Sat May 17, 2008 3:31 pm

Postby ca050306 » Mon May 19, 2008 3:39 pm

I solve the solve the issue, I deleted the R.java file and remove the "build automatically" function.
Now I have null pointer exception :)
ca050306
Freshman
Freshman
 
Posts: 6
Joined: Sat May 17, 2008 3:31 pm

hi

Postby manju » Mon Jun 16, 2008 7:25 am

hey.. Are you getting the output now????
If yes,inform me also...
manju
Junior Developer
Junior Developer
 
Posts: 18
Joined: Mon Jun 09, 2008 9:38 am
Location: banglore

Top

Return to Map Problems

Who is online

Users browsing this forum: No registered users and 5 guests