Now, I am trying to modify the original code about the contact part in android packages\apps\Contacts.
My compiler environment is eclpise + JDK1.7 + WIN7 (64)+AndroidSDK(2.3.3)
The program compiled is correct,but Simulator run error.
bellow Console:
[2012-09-16 15:14:46 - com.android.contacts.DialtactsActivity] WARNING: Application does not specify an API level requirement!
[2012-09-16 15:14:46 - com.android.contacts.DialtactsActivity] Device API version is 10 (Android 2.3.6)
[2012-09-16 15:14:46 - com.android.contacts.DialtactsActivity] Uploading com.android.contacts.DialtactsActivity.apk onto device 'emulator-5554'
[2012-09-16 15:14:48 - com.android.contacts.DialtactsActivity] Installing com.android.contacts.DialtactsActivity.apk...
[2012-09-16 15:14:56 - com.android.contacts.DialtactsActivity] Installation error: INSTALL_FAILED_SHARED_USER_INCOMPATIBLE
[2012-09-16 15:14:56 - com.android.contacts.DialtactsActivity] Please check logcat output for more details.
[2012-09-16 15:14:57 - com.android.contacts.DialtactsActivity] Launch canceled!
Bellow Logcat errors:
Package com.android.contacts has no signatures that match those in shared user android.uid.phone; ignoring!
From the net get solution,I get rid of code
" android:sharedUserId="android.uid.shared"
android:sharedUserLabel="#string/sharedUserLabel" " in AndroidManifest.xml.
that is ok.
but There was a new error.
"Could not find class 'com.android.phone.CallLogAsync', referenced from method com.android.contacts.TwelveKeyDialer.<init>"
"Could not find class 'com.android.phone.CallLogAsync$GetLastOutgoingCallArgs', referenced from method com.android.contacts.TwelveKeyDialer.queryLastOutgoingCall"
run is error. I don't have a solution. can you give me some guidance Suggestions?
Related
I am using Eclipse 4.4(Luna) and am trying to start an Emulator to test my android application and I am getting the following error:
Starting emulator for AVD 'droidX'
WARNING: Data partition already in use. Changes will not persist!
WARNING: SD Card image already in use: C:\Users\world_000\.android\avd\droidX.avd/sdcard.img
WARNING: Cache partition already in use. Changes will not persist!
emulator: Failed to open the HAX device!
HAX is not working and emulator runs in emulation mode
emulator: Open HAX device failed
creating window 0 0 238 423
The emulator opens on a black screen with android written across the middle, I then try to run my application as an android application and get the following messages:
[2014-08-09 10:34:17 - FirstApp] Android Launch!
[2014-08-09 10:34:17 - FirstApp] adb is running normally.
[2014-08-09 10:34:17 - FirstApp] Performing com.example.james.zafar.FullscreenActivity activity launch
[2014-08-09 10:34:17 - FirstApp] Automatic Target Mode: using existing emulator 'emulator-5554' running compatible AVD 'droidX'
[2014-08-09 10:34:17 - FirstApp] Uploading FirstApp.apk onto device 'emulator-5554'
[2014-08-09 10:34:17 - FirstApp] Failed to install FirstApp.apk on device 'emulator-5554': No such file or directory
[2014-08-09 10:34:17 - FirstApp] com.android.ddmlib.SyncException: No such file or directory
[2014-08-09 10:34:17 - FirstApp] Launch canceled!
Can someone explain why I am getting these errors and how I can go about fixing them please?
WARNING: Data partition already in use. Changes will not persist!
WARNING: SD Card image already in use: C:\Users\world_000\.android\avd\droidX.avd/sdcard.img
means you are trying to open emulator which you have already opened.Close that & then try to open.
I am following this simple tutorial http://developer.android.com/training/basics/firstapp/building-ui.htmlhttp://developer.android.com/training/basics/firstapp/building-ui.html
When I view the graphical editor/wysiwug I see the correct thing. A screen with one input text and a button.
But, when I run the app, I get a blank screen with the default Android buttons to the right.
In the logs, I see:
(normal)
[2013-11-18 16:07:37 - hello] adb is running normally.
[2013-11-18 16:07:37 - hello] Performing com.example.hello.MainActivity activity launch
[2013-11-18 16:07:37 - hello] Automatic Target Mode: launching new emulator with compatible AVD 'AVD_for_Nexus_7_by_Google'
[2013-11-18 16:07:37 - hello] Launching a new emulator with Virtual Device 'AVD_for_Nexus_7_by_Google'
(error)
[2013-11-18 16:07:43 - Emulator] libGL error: failed to load driver: nouveau
[2013-11-18 16:07:43 - Emulator] libGL error: Try again with LIBGL_DEBUG=verbose for more details.
Not sure if connected or not. What am I missing here? I installed ADT and then started following the tutorial.
haha...All you have to do is, relax, sit back, wait 10 minutes.
The virtual machine (Android emulator) takes loooong time to fully initialize.
I am developing an Android application in Eclipse but it shows the following in my console when I clean, build and debug it:
[2013-06-05 09:05:37 - TSRAndroidSystem] ------------------------------
[2013-06-05 09:05:37 - TSRAndroidSystem] Android Launch!
[2013-06-05 09:05:37 - TSRAndroidSystem] adb is running normally.
[2013-06-05 09:05:37 - TSRAndroidSystem] Performing com.lk.lankabell.android.activity.LoginPage activity launch
[2013-06-05 09:05:37 - TSRAndroidSystem] Automatic Target Mode: launching new emulator with compatible AVD 'test'
[2013-06-05 09:05:37 - TSRAndroidSystem] Launching a new emulator with Virtual Device 'test'
[2013-06-05 09:05:49 - Emulator] Failed to create Context 0x3005
[2013-06-05 09:05:49 - Emulator] emulator: WARNING: Could not initialize OpenglES emulation, using software renderer.
[2013-06-05 09:05:51 - TSRAndroidSystem] New emulator found: emulator-5554
[2013-06-05 09:05:51 - TSRAndroidSystem] Waiting for HOME ('android.process.acore') to be launched...
[2013-06-05 09:06:42 - TSRAndroidSystem] HOME is up on device 'emulator-5554'
[2013-06-05 09:06:42 - TSRAndroidSystem] Uploading TSRAndroidSystem.apk onto device 'emulator-5554'
[2013-06-05 09:06:44 - TSRAndroidSystem] Installing TSRAndroidSystem.apk...
[2013-06-05 09:07:13 - TSRAndroidSystem] Re-installation failed due to different application signatures.
[2013-06-05 09:07:13 - TSRAndroidSystem] You must perform a full uninstall of the application. WARNING: This will remove the application data!
[2013-06-05 09:07:13 - TSRAndroidSystem] Please execute 'adb uninstall com.lk.lankabell.android.activity' in a shell.
[2013-06-05 09:07:13 - TSRAndroidSystem] Launch canceled!
My emulator is running though.
Is it an error, a warning or is it saying that I have to unlock my android emulator screen?
Actually this Scenario was oocured for me many times when i use phone for testing my application
This is because you had installed TSRAndroidSystem alredy in your phone .Te error occur because the app that installed in your phone uses differnt debug keystore that present in your system .
But in your case it happened in emulator . It's really wiered to me .
Did you directly insatlled the TSRAndroidSystem.apk developed in another system in your emulator ??
Any way i thing by un-installing the alredy installed app from your Emulator . Then run your project so that the app will be signed with debug keystore of your system hope this will sove your issue
This normally happens when you develop on multiple computers.
When you install an application from Eclipse it uses your debug keystore to sign the application. Different computers have different debug keystores (they are just generated automatically), so you have to fully remove the app from your device before installing it again.
Not sure why this would happen on the emulator, but just fully remove the app from the emulator and it should work.
It means you need to uninstall the app from the device that you had previously installed the last time you launched it.
That error usually occurs when you have another application with the same package name installed on the device. In your case com.lk.lankabell.android.
It can also happen when you develop on multiple computers which means different debug keys in which case the application with the same package is the one you try to install. But since you are using an emulator this cannot be the case.
In either case: go to Settings > Apps on your emulator or phone and uninstall the app with that particular package name and try again. And always make sure to choose unique package names to prevent this from happening.
I have created an app and it runs successfully in the emulator. When I was trying to run it in any of my devices it shows the following error:
[2011-02-12 09:57:06 - FirstImage] Android Launch!
[2011-02-12 09:57:06 - FirstImage] adb is running normally.
[2011-02-12 09:57:06 - FirstImage] Performing com.gis.image.FirstImage activity launch
[2011-02-12 09:57:23 - FirstImage] Uploading FirstImage.apk onto device 'HT96WKF01291'
[2011-02-12 09:57:32 - FirstImage] Installing FirstImage.apk...
[2011-02-12 09:57:52 - FirstImage] Re-installation failed due to different application signatures.
[2011-02-12 09:57:52 - FirstImage] You must perform a full uninstall of the application. WARNING: This will remove the application data!
[2011-02-12 09:57:52 - FirstImage] Please execute 'adb uninstall com.gis.image' in a shell.
[2011-02-12 09:57:52 - FirstImage] Launch canceled!
What is the issue and how can I overcome it?
You have installed this .apk before, and it was compiled using a different signature (see here for details). To fix this you need to remove the previous installation (you have to do that only when the signature has changed - not normally).
On the device itself, go Menu->Settings->Manage Applications. Select the application which you want to Uninistall, and click on the ‘Uninstall’ button. Now try your install.
When you install the application directly from eclipse it is signed by a different certificate than the one you use when you create the application for market.
What is most likely happening is that you have the app installed with a different signature than the one you are trying to install now.
Some times this happens, when you keep on installing the app through your code then it sometimes gives such kind of error..To over come this Just Open a terminal And paste this
adb uninstall com.gis.image
This is according to your Above error log...
You Just need to Uninstall your app from the Device.. Just like it :)
Hope this Helps....
Every time I try to run an Android project from Eclipse with the Android plugin (Run -> Run), the emulator starts up just fine, but the upload fails, and the Console puts out this error message:
[2010-06-17 08:17:55 - HelloAndroid] Failed to upload HelloAndroid.apk on device 'emulator-5554'
[2010-06-17 08:17:55 - HelloAndroid] java.io.IOException: Unable to upload file: Local file doesn't exist.
[2010-06-17 08:17:55 - HelloAndroid] Launch canceled!
It seems as though the apk compilation is failing, but there are no other errors in the Console at all except for a lone warning about the project not specifying an API Level requirement:
[2010-06-17 08:17:55 - HelloAndroid] WARNING: Application does not specify an API level requirement!
[2010-06-17 08:17:55 - HelloAndroid] Device API version is 8 (Android 2.2)
Make sure your manifest file specifies the sdk:
<uses-sdk android:minSdkVersion="8" android:targetSdkVersion="8"/>
In fact, the APK file has not been generated. Try to see if there are compiling errors. If not, try to compile the project by yourself. You can read these interesting articles:
How to build Android application package (.apk) from the command line using the SDK tools + continuously integrated using CruiseControl
Developing Android without Eclipse or Ant