Super Newie

Common bugs/problems with the Android SDK the Emulator and the ADT-Plugin.

Super Newie

Postby Taytus » Wed Sep 24, 2008 8:01 pm

Hi friends!
I'm new to the forum.
I'm ready to start, but I have problems: (
When I try to start a new project (the Hello World example) appear to me 3 errors.
But when I open one of the examples, I am running smoothly.
I got the latest version of Eclipse, Java 6, and the latest version of Android.

The errors are:

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. Description     Resource        Path    Location        Type
  2.  
  3. ERROR No resource identifier found for attribute 'versionCode' in package 'android'     AndroidManifest.xml     helloWorld      line 2  aapt Problem
  4.  
  5. ERROR No resource identifier found for attribute 'versionName' in package 'android'     AndroidManifest.xml     helloWorld      line 2  aapt Problem
  6.  
  7. R.layout.main cannot be resolved        helloWorld.java helloWorld/src/com/andoid/helloWorld    line 11 Java Problem
Parsed in 0.031 seconds, using GeSHi 1.0.8.4



Thanks!
Taytus
Freshman
Freshman
 
Posts: 5
Joined: Wed Sep 24, 2008 7:14 pm

Top

Postby plusminus » Wed Sep 24, 2008 8:28 pm

Hello Taytus,

[font=Courier New]android:versionName[/font] and [font=Courier New]android:versionCode[/font] are new from the update of 0.9 to 1.0 :arrow: It seems like the code you try to run doesn't have these tags in its [font=Courier New]AndroidManifest.xml[/font] . Or its the other way, that your code is for 0.9 but you already run on SDk 1.0 .

Maybe you forgot to switch to 1.0 in the Eclipse-Preferences :?:

Regards,
plusminus
Image
Image | Android Development Community / Tutorials
User avatar
plusminus
Site Admin
Site Admin
 
Posts: 2688
Joined: Wed Nov 14, 2007 8:37 pm
Location: Schriesheim, Germany

Postby Taytus » Wed Sep 24, 2008 8:37 pm

This is the AndroidManifest.xml code.

Syntax: [ Download ] [ Hide ]
Using xml Syntax Highlighting
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <manifest xmlns:android="http://schemas.android.com/apk/res/android"
  3.      package="org.anddev.adroid.Hello_Android"
  4.      android:versionCode="1"
  5.      android:versionName="1.0.0">
  6.     <application android:icon="@drawable/icon" android:label="@string/app_name">
  7.         <activity android:name=".Hello_Android"
  8.                  android:label="@string/app_name">
  9.             <intent-filter>
  10.                 <action android:name="android.intent.action.MAIN" />
  11.                 <category android:name="android.intent.category.LAUNCHER" />
  12.             </intent-filter>
  13.         </activity>
  14.     </application>
  15.  
  16. </manifest>
Parsed in 0.003 seconds, using GeSHi 1.0.8.4


Maybe you forgot to switch to 1.0 in the Eclipse-Preferences Question

Where i can change this?

Thanks!!
Taytus
Freshman
Freshman
 
Posts: 5
Joined: Wed Sep 24, 2008 7:14 pm

Postby plusminus » Wed Sep 24, 2008 9:06 pm

You downloaded the Android SDK 1.0, right :?:
So go to (Menu) :rarrow: Preferences :rarrow: Android
Hit [Browse] and go to the location where you unzipped the download zip.

Regards,
plusminus
Image
Image | Android Development Community / Tutorials
User avatar
plusminus
Site Admin
Site Admin
 
Posts: 2688
Joined: Wed Nov 14, 2007 8:37 pm
Location: Schriesheim, Germany

Postby Taytus » Wed Sep 24, 2008 9:22 pm

Yes I did that.
I have no problems in opening the sample files included in the SDK.
It's just when I start from 0.
:(

Thanks.
Taytus
Freshman
Freshman
 
Posts: 5
Joined: Wed Sep 24, 2008 7:14 pm

Postby Taytus » Thu Sep 25, 2008 3:14 pm

Problem solved!
I just downloaded the 1.0 version again, and voila!!
Now I am ready to start.
Thanks plus! :D
Taytus
Freshman
Freshman
 
Posts: 5
Joined: Wed Sep 24, 2008 7:14 pm

Top

Postby vaishumol » Mon Jan 11, 2010 6:39 am

android:versionCode="1"
android:versionName="1.0">

What this versioncode and versionname indicating?

Is it android SDK version code? or something else?
Please help me friends.
vaishumol
Experienced Developer
Experienced Developer
 
Posts: 74
Joined: Sun Jan 03, 2010 6:33 am

Top

Return to SDK/ADT/Emulator Problems

Who is online

Users browsing this forum: Google [Bot], Google Feedfetcher and 3 guests