Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New package not yet registered with the system. Error on a real phone

Tags:

android

I am working on an Android project in Eclipse and debugging / testing using my HTC Desire Z. I was coding away building a menu for my app when I started getting this error which is preventing me from continuing. Lots of people have had this error but none of the solutions that I found have worked for me. I tried cleaning and rebuilding the project, manually uninstalling the app from my phone, and renaming the domain in the manifest file. For people using an emulator they talked about deleting the data file but I'm not sure what this translates to when using a real phone.

Here is the console when I try to build:

[2011-08-09 06:57:13 - GreenThumbs] Android Launch! [2011-08-09 06:57:13 - GreenThumbs] adb is running normally. [2011-08-09 06:57:13 - GreenThumbs] Performing com.hernblog.GreenThumbs.GreenThumbs activity launch [2011-08-09 06:57:13 - GreenThumbs] Automatic Target Mode: using device 'HT0ANRV03417' [2011-08-09 06:57:13 - GreenThumbs] Uploading GreenThumbs.apk onto device 'HT0ANRV03417' [2011-08-09 06:57:13 - GreenThumbs] Installing GreenThumbs.apk... [2011-08-09 06:57:16 - GreenThumbs] Success! [2011-08-09 06:57:17 - GreenThumbs] Starting activity com.hernblog.GreenThumbs.GreenThumbs on device HT0ANRV03417 [2011-08-09 06:57:19 - GreenThumbs] New package not yet registered with the system. Waiting 3 seconds before next attempt. [2011-08-09 06:57:22 - GreenThumbs] Starting activity com.hernblog.GreenThumbs.GreenThumbs on device HT0ANRV03417 [2011-08-09 06:57:23 - GreenThumbs] New package not yet registered with the system. Waiting 3 seconds before next attempt. [2011-08-09 06:57:23 - GreenThumbs] ActivityManager: Error: Activity class {com.hernblog.GreenThumbs/com.hernblog.GreenThumbs.GreenThumbs} does not exist. [2011-08-09 06:57:26 - GreenThumbs] Starting activity com.hernblog.GreenThumbs.GreenThumbs on device HT0ANRV03417 [2011-08-09 06:57:27 - GreenThumbs] New package not yet registered with the system. Waiting 3 seconds before next attempt. [2011-08-09 06:57:30 - GreenThumbs] Starting activity com.hernblog.GreenThumbs.GreenThumbs on device HT0ANRV03417 [2011-08-09 06:57:30 - GreenThumbs] New package not yet registered with the system. Waiting 3 seconds before next attempt. [2011-08-09 06:57:33 - GreenThumbs] Starting activity com.hernblog.GreenThumbs.GreenThumbs on device HT0ANRV03417 [2011-08-09 06:57:34 - GreenThumbs] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.hernblog.GreenThumbs/.GreenThumbs } [2011-08-09 06:57:34 - GreenThumbs] ActivityManager: Error type 3 [2011-08-09 06:57:34 - GreenThumbs] ActivityManager: Error: Activity class {com.hernblog.GreenThumbs/com.hernblog.GreenThumbs.GreenThumbs} does not exist. 

And here is my manifest file:

?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android"   package="com.hernblog.GreenThumbs"   android:versionCode="1"   android:versionName="1.0">  <uses-sdk android:minSdkVersion="8" />  <application>    <uses-library android:name="android.test.runner" /> </application> <instrumentation android:name="android.test.InstrumentationTestRunner"        android:targetPackage="com.hernblog.Green.Thumbs" android:label="GreenThumbs Tests" />  <application android:icon="@drawable/icon" android:label="@string/app_name">          <activity android:name="GreenThumbs"                    android:label="@string/app_name"                   android:screenOrientation="landscape">              <intent-filter>                  <action android:name="android.intent.action.MAIN" />                  <category android:name="android.intent.category.LAUNCHER" />              </intent-filter>          </activity>  </application> </manifest> 

Any ideas on how to fix this?

like image 675
Ian Hern Avatar asked Aug 09 '11 13:08

Ian Hern


People also ask

Why some apps are not working on my phone?

Sometimes, the accumulated cache data of an app can cause it to stop working. When such a thing happens, you need to reset the cache data from the device settings. So, if individual Android apps are not working on your phone, another solution to fix it is by clearing the app's cached data.

How do you fix an app that won't open Android?

Visit “Settings” and select “Apps”. From the list of Apps that appears, select the App that won't open. Now tap on “Clear Cache” and “Clear data” directly or under “Storage”.


2 Answers

I too had this problem immediately after changing the package name of my app (prepping it for Android Market). In Eclipse do a Project > Clean... , then turn off Build-Automatically so you can Build-All.

like image 185
Johno Scott Avatar answered Oct 20 '22 00:10

Johno Scott


I got this error after renaming my project package. I fixed it by doing a clean in Eclipse. Then a full rebuild. After that pressing F11 launched the application on the device. (I also uninstalled the application from the device before that but I don't think that was the problem).

like image 32
pilkch Avatar answered Oct 19 '22 23:10

pilkch