About Store Forum Documentation Contact
Donations:
178$/mo



Post Reply 
Android emulator fails
Author Message
gwald Offline
Member

Post: #1
Android emulator fails
Hello,
I got the emulator working from the SDK, it's communicating with EE v2 and can view the android debugging log.
When it comes to sending the apk, it fails as below.

The target is version 2.3.3
I have installed
SDK Tools 21.0.1
SDK Platform 16.0.1
API 17 (4.2)
WinXP 32bit sp3

I followed the wiki and thought it was correct when it compiled.
http://www.esenthel.com/wiki/index.php?t...nvironment


Quote:
[crunch] Processing image to cache: C:\Esenthel 2.0\Projects\_Build_\Bloody Massacre\Android\res\drawable-xhdpi\icon.png => C:\Esenthel 2.0\Projects\_Build_\Bloody Massacre\Android\bin\res\drawable-xhdpi\icon.png
[crunch] (processed image to cache entry C:\Esenthel 2.0\Projects\_Build_\Bloody Massacre\Android\bin\res\drawable-xhdpi\icon.png: 92% size of source)
[crunch] Crunched 4 PNG files to update cache
-package-resources:
[aapt] Creating full resource package...
[aapt] Warning: AndroidManifest.xml already defines debuggable (in http://schemas.android.com/apk/res/android); using existing value in manifest.
-package:
[apkbuilder] Current build type is different than previous build: forced apkbuilder run.
[apkbuilder] Creating Bloody Massacre-debug-unaligned.apk and signing it with a debug key...
-post-package:
-do-debug:
[zipalign] Running zip align on final apk...
[echo] Debug Package: C:\Esenthel 2.0\Projects\_Build_\Bloody Massacre\Android\bin\Bloody Massacre-debug.apk
[propertyfile] Creating new property file: C:\Esenthel 2.0\Projects\_Build_\Bloody Massacre\Android\bin\build.prop
[propertyfile] Updating property file: C:\Esenthel 2.0\Projects\_Build_\Bloody Massacre\Android\bin\build.prop
[propertyfile] Updating property file: C:\Esenthel 2.0\Projects\_Build_\Bloody Massacre\Android\bin\build.prop
[propertyfile] Updating property file: C:\Esenthel 2.0\Projects\_Build_\Bloody Massacre\Android\bin\build.prop
-post-build:
debug:
BUILD SUCCESSFUL
Total time: 53 seconds
usage: am [subcommand] [options]
start an Activity: am start [-D] [-W] <INTENT>
-D: enable debugging
-W: wait for launch to complete
start a Service: am startservice <INTENT>
send a broadcast Intent: am broadcast <INTENT>
start an Instrumentation: am instrument [flags] <COMPONENT>
-r: print raw results (otherwise decode REPORT_KEY_STREAMRESULT)
-e <NAME> <VALUE>: set argument <NAME> to <VALUE>
-p <FILE>: write profiling data to <FILE>
-w: wait for instrumentation to finish before returning
start profiling: am profile <PROCESS> start <FILE>
stop profiling: am profile <PROCESS> stop
start monitoring: am monitor [--gdb <port>]
--gdb: start gdbserv on the given port at crash/ANR
<INTENT> specifications include these flags:
[-a <ACTION>] [-d <DATA_URI>] [-t <MIME_TYPE>]
[-c <CATEGORY> [-c <CATEGORY>] ...]
[-e|--es <EXTRA_KEY> <EXTRA_STRING_VALUE> ...]
[--esn <EXTRA_KEY> ...]
[--ez <EXTRA_KEY> <EXTRA_BOOLEAN_VALUE> ...]
[-e|--ei <EXTRA_KEY> <EXTRA_INT_VALUE> ...]
[-n <COMPONENT>] [-f <FLAGS>]
[--grant-read-uri-permission] [--grant-write-uri-permission]
[--debug-log-resolution]
[--activity-brought-to-front] [--activity-clear-top]
[--activity-clear-when-task-reset] [--activity-exclude-from-recents]
[--activity-launched-from-history] [--activity-multiple-task]
[--activity-no-animation] [--activity-no-history]
[--activity-no-user-action] [--activity-previous-is-top]
[--activity-reorder-to-front] [--activity-reset-task-if-needed]
[--activity-single-top]
[--receiver-registered-only] [--receiver-replace-pending]
[<URI>]
Error: Unknown command: force-stop


C:\Esenthel 2.0\Projects\_Build_\Bloody Massacre\Android\bin>adb shell am start "Bloody Massacre-debug.apk"
Starting: Intent { act=android.intent.action.VIEW dat=Bloody Massacre-debug.apk}
Error: Activity not started, unable to resolve Intent { act=android.intent.action.VIEW dat=Bloody Massacre-debug.apk flg=0x10000000 }

This just hangs.
adb install "Bloody Massacre-debug.apk"
same with a tut build.

adb devices
emulator-5554 device

I've googled this, but can't find a fix, I've done an update on SDK, but still same issue.
Any ideas?

My Blog
http://www.esenthel.com/community/showthread.php?tid=6043

I hang out at Esenthel IRC Channel
http://webchat.freenode.net/?channels=#Esenthel
(This post was last modified: 03-05-2013 12:05 PM by gwald.)
03-05-2013 11:58 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: Android emulator fails
Hi,

http://www.esenthel.com/wiki/index.php?title=Android
Quote:Minimum Requirements

Esenthel Android SDK requires Android Devices with OS version 2.3 or newer with support of OpenGL ES 2.0.

Android Devices with OS version 2.2 or older are not supported.

Google Android Emulator does not support OpenGL ES 2.0, because of that, it is also not supported
Google Android Emulator is not supported

In the store http://www.esenthel.com/?id=store it is mentioned in the requirements that you need to have an actual Android Device for testing.
03-05-2013 12:30 PM
Find all posts by this user Quote this message in a reply
gwald Offline
Member

Post: #3
RE: Android emulator fails
Are you sure?
Http://android-developers.blogspot.com.a...dware.html

" since we’re now supporting OpenGL ES 2.0, your OpenGL games can now run inside the emulator."

My Blog
http://www.esenthel.com/community/showthread.php?tid=6043

I hang out at Esenthel IRC Channel
http://webchat.freenode.net/?channels=#Esenthel
03-05-2013 01:56 PM
Visit this user's website Find all posts by this user Quote this message in a reply
gwald Offline
Member

Post: #4
RE: Android emulator fails

My Blog
http://www.esenthel.com/community/showthread.php?tid=6043

I hang out at Esenthel IRC Channel
http://webchat.freenode.net/?channels=#Esenthel
03-06-2013 02:27 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #5
RE: Android emulator fails
Thanks, at the time I was making the Android port, they did not support OpenGL 2.0.

I've added checking the emulator to the roadmap, however this won't be done in the nearest future.
03-06-2013 01:00 PM
Find all posts by this user Quote this message in a reply
gwald Offline
Member

Post: #6
RE: Android emulator fails
Thats cool!
Thanks

My Blog
http://www.esenthel.com/community/showthread.php?tid=6043

I hang out at Esenthel IRC Channel
http://webchat.freenode.net/?channels=#Esenthel
03-06-2013 02:19 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply