Problem in installing .apk file of my app

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

Problem in installing .apk file of my app

Postby totw » Thu Apr 09, 2009 2:37 pm

I am trying to install my application on my emulator (sdk is version m3 rc20a). But whenever I type in :

adb install Main.apk

it shows

504 KB/s (0 bytes in 88803.000s)

and then, nothing happens.. I checked in the emulator applications but my app is not installed.
In the emulator, when I checked the package summary for my app, it is showing everything properly except that the heading shows :

(No Application Class)
(No Label)


Does this have anything to do with the problem?

one more thing..
when i import my project into eclipse, it shows an error :

build path contains duplicate entry : 'src' in project 'Main'

Please suggest a solution.. thks.
User avatar
totw
Developer
Developer
 
Posts: 27
Joined: Tue Mar 31, 2009 10:35 am

Top

Postby WarrenFaith » Thu Apr 09, 2009 2:59 pm

sdk is version m3 rc20a

Wow thats old :)

* daemon not running. starting it now *
* daemon started successfully *
776 KB/s (0 bytes in 347876.000s)
pkg: /data/local/tmp/OperaMini.apk
Success

Thats what I got on installing a random app...

Simply try to update your sdk/emulator?
WarrenFaith
Moderator
Moderator
 
Posts: 227
Joined: Fri Mar 13, 2009 10:59 am
Location: Berlin, Germany

Postby totw » Thu Apr 09, 2009 3:04 pm

thanks for the reply...

I really dont have the time to do all the upgrading.. i have to submit the project in a few days.. everyrhing in my app is working perfectly fine except for this thing ..
User avatar
totw
Developer
Developer
 
Posts: 27
Joined: Tue Mar 31, 2009 10:35 am

Postby WarrenFaith » Thu Apr 09, 2009 3:16 pm

And installing and starting the application with Eclipse isn't possible for you?
WarrenFaith
Moderator
Moderator
 
Posts: 227
Joined: Fri Mar 13, 2009 10:59 am
Location: Berlin, Germany

Postby totw » Thu Apr 09, 2009 6:54 pm

When I run the application through eclipse, it works just fine.. the emulator starts and the application functions as intended..
But when I try installing the created apk file, the thing mentioned above occurs..
User avatar
totw
Developer
Developer
 
Posts: 27
Joined: Tue Mar 31, 2009 10:35 am

Postby WarrenFaith » Thu Apr 09, 2009 7:56 pm

hm... ok i just guess now:
1. try to remove the application before you install it wit adb
2. try to use parameter -wipe-data when starting the emulator to reset all data to default
3. try to upload your apk to a website, download it with the emulator (use the emulator browser) and android should give you the option to install it directly
4. are you sure you installed the right apk? the one you found in your bin directory...
WarrenFaith
Moderator
Moderator
 
Posts: 227
Joined: Fri Mar 13, 2009 10:59 am
Location: Berlin, Germany

Top

Postby totw » Fri Apr 10, 2009 1:16 pm

Thanks for your replies WarrenFaith..

Couldn't get that file installed, so tried uprading to the latest sdk.
Previously, I thought that it would take a lot of upgrading on the part of my code, but there are only a few errors :

I have posted a new thread.. would appreciate if u took a look at it..


http://www.anddev.org/problem_on_upgrading_the_code_to_suit_the_latest_sdk-t5716.html

Thks a lot...
User avatar
totw
Developer
Developer
 
Posts: 27
Joined: Tue Mar 31, 2009 10:35 am

Top

Return to SDK/ADT/Emulator Problems

Who is online

Users browsing this forum: No registered users and 4 guests