I was in trouble with the API, but when I fix it I face a new problem which is something about "kernel file" and its location. When I RUN the app show up to me that message:
Cannot launch AVD in emulator.
Output:
emulator: ERROR: This AVD's configuration is missing a kernel file! Please ensure the file "kernel-qemu" is in the same location as your system image.
emulator: ERROR: ANDROID_SDK_ROOT is undefined
Related
Why is android emulator not starting? It was working but accidentally it starts to throw this exception and the emulator hangs up on Start Screen as follows
and in android studio, when I run my code it says
Emulator: qemu-system-i386.exe: Unable to open C:\Users\Aman.android\avd\Android_Accelerated_x86_Oreo.avd\data\misc\pstore\pstore.bin: Permission denied
As answered here I unchecked the pstore folder Readonly attribute but it didn't help me. I have also tried deleting the folder it doesn't also fix the problem.
I am woking on windows 10 with
Android Studio 3.3
API Level 27
Android 8.1 (Google APIs)
Are you accessing files on the start of the app? because if that's the case than you have to ask the runtime permission first.
I'm completely new to android studio, and after hours of trying to figure out how to run an emulator on an AMD CPU, when I finally run (a completely base project btw) it says:
Unexpected error while executing: am start -n "payne.jackson.test/payne.jackson.test.Main" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Error while Launching activity
I don't know what is wrong.
I tried deleting all of my AVD files and that didn't work.
EDIT: I also get these errors when launching my emulator:
emulator: WARNING: VM heap size set below hardware specified minimum of 128MB
emulator: WARNING: Setting VM heap size to 384MB
emulator: WARNING: Classic qemu does not support SMP. The hw.cpu.ncore option from your config file is ignored.
Creating filesystem with parameters:
I found something saying to switch to a nexus 4, but that didn't work.
Still don't know what is wrong.
For those of you who wanted logcat it was too long but I noticed a lot of lines saying something along the lines of this:
05-08 10:01:40.185 78-78/? W/Resources: Preloaded drawable resource #0x10803dd (android:drawable/ic_menu_paste_holo_dark) that varies with configuration!!
Could this be the problem?
I'm using Genymotion along with Android Studio using the plug-in and no matter what I do it does not allow me to run the app using the Genymotion emulator.. it gives errors like this:
Waiting for device.
Target device: genymotion-samsung_galaxy_s4___4_4_2___api_19___1080x1920-192.168.56.101:5555
Uploading file
local path: C:\Users\zd\AndroidStudioProjects\funfacts2\app\build\outputs\apk\app-debug.apk
remote path: /data/local/tmp/Taha.funfacts2
Installing Taha.funfacts2
DEVICE SHELL COMMAND: pm install -r "/data/local/tmp/Taha.funfacts2"
WARNING: linker: libdvm.so has text relocations. This is wasting memory and is a security risk. Please fix.
pkg: /data/local/tmp/Taha.funfacts2
Failure [INSTALL_PARSE_FAILED_MANIFEST_MALFORMED]
This is running on just a test app that outputs Hello World on the screen, with some basic formatting.
I have installed Android 4.3 AVD bundle on Ubuntu 12.4 LTS. When I start AVD it shows too many errors.
Starting emulator for AVD 'AVD_for_3_7_FWVGA_slider'
Failed to load libGL.so
error libGL.so: cannot open shared object file: No such file or directory
Failed to load libGL.so
error libGL.so: cannot open shared object file: No such file or directory
emulator: emulator window was out of view and was recentered
How to fix these problems?
I have replace android emulator with Genymotion. Genymotion is better than android emulator for testing game application here
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?