Stencyl 3.4.0 is now out. Get it now!

Bug Issue: Test to Android is broken on windows, in Stencyl3.5 Build_9480


Pages: 1

svintaj

  • Subscriber - Stencyl Studio
  • *
July 30, 2017, 03:36:07 pm
[haxelib.exe] Failed to stat C:\stencylworks\games-generated\MiniPluggis_Rakna_01a\Export\android\release/bin/app/build/outputs/apk/MiniPluggis_Rakna_01a-debug.apk: No such file or directory

Build is Successfull but theese folders is never created: build/outputs/apk/
So no APK can be installed...


svintaj

  • Subscriber - Stencyl Studio
  • *
September 01, 2017, 08:00:38 am
Still can't test on Android, also getting new errors now with the new version  b9485.

First I got :  "Type not found : openfl.utils.JNI"...
Then a lot of:
Class<GooglePlayGames> has no field signOutGooglePlayGames
Class<GooglePlayGames> has no field getConnectionInfo
Class<GooglePlayGames> has no field showAchievements
...etc...



Justin

  • Master Stencyler
  • *
September 01, 2017, 08:45:43 am
Fixed the JNI issue in b9486. b9485 may have solved the original issue, so please try testing again.


svintaj

  • Subscriber - Stencyl Studio
  • *
September 01, 2017, 02:43:03 pm
Yes it almost worked now, but still the APK fail to get installed for some reason...?
This is the final part from the log
Code: [Select]
jar:file:/C:/Program%20Files%20(x86)/Stencyl/sw.jar!/res/logview4j/images/error.gif false ERROR 1504300931616008433 stencyl.sw.util.dg.MessageDialog Encountered errors while building your game.: Check your logs and post them to the forums.  - Please describe what you have been doing. Be as specific as possible.
jar:file:/C:/Program%20Files%20(x86)/Stencyl/sw.jar!/res/logview4j/images/error.gif false ERROR 1504300931616008432 stencyl.sw.io.write.resource.HXWriter Failed: Running Android. (Return code: 1)
jar:file:/C:/Program%20Files%20(x86)/Stencyl/sw.jar!/res/logview4j/images/info.gif false INFO 1504300931615008430 stencyl.sw.util.StreamGobbler [haxelib.exe] Failed to install D:\OneDrive\stencylworks\games-generated\Rakna_01b\Export\android/bin/app/build/outputs/apk/Rakna_01b-debug.apk:
jar:file:/C:/Program%20Files%20(x86)/Stencyl/sw.jar!/res/logview4j/images/info.gif false INFO 1504300931586008429 stencyl.sw.util.StreamGobbler [haxelib.exe] * daemon started successfully *
jar:file:/C:/Program%20Files%20(x86)/Stencyl/sw.jar!/res/logview4j/images/info.gif false INFO 1504300931586008428 stencyl.sw.util.StreamGobbler [haxelib.exe] * daemon not running. starting it now at tcp:5037 *
jar:file:/C:/Program%20Files%20(x86)/Stencyl/sw.jar!/res/logview4j/images/info.gif false INFO 1504300927453008425 stencyl.sw.util.StreamGobbler [haxelib.exe] Running command: INSTALL
jar:file:/C:/Program%20Files%20(x86)/Stencyl/sw.jar!/res/logview4j/images/info.gif false INFO 1504300927050008424 stencyl.sw.util.StreamGobbler [haxelib.exe] Total time: 10.74 secs
jar:file:/C:/Program%20Files%20(x86)/Stencyl/sw.jar!/res/logview4j/images/info.gif false INFO 1504300927050008423 stencyl.sw.util.StreamGobbler [haxelib.exe] BUILD SUCCESSFUL
The APK is created and can be found in the right folder...
Also I can see my device in the Device Monitor...


Justin

  • Master Stencyler
  • *
September 01, 2017, 02:48:57 pm
Could you attach the full log please?
  • Status changed from New to Need Info


svintaj

  • Subscriber - Stencyl Studio
  • *
September 02, 2017, 11:45:27 am
I could not attach a file to this post...? So I'll add a link later... But a  strange thing is that I now can compile and have the APK installed, on a phone with KitKat, (Using min-target version as GingerBread and highest target version as KitKat)  But not on a phone running Nougat, It compiles fine but It just won't get installed...? Strange, the build is always successful..? The USB debuging is working on the Nougat phone, since it shows up in the Device Monitor and I can compile and test with AndroidStudio on that phone without a problem...?
« Last Edit: September 02, 2017, 11:51:21 am by svintaj »


svintaj

  • Subscriber - Stencyl Studio
  • *
September 02, 2017, 11:56:38 am
Here comes the link to the log: www.segelson.com//Temp/Stencyl/log-2017-09-02c.zip


svintaj

  • Subscriber - Stencyl Studio
  • *
September 05, 2017, 03:04:29 am
I just manage to install the APK manually (Compiled using "publish") and the game runs, however when I first try to save the fresh generated APK Stecyl fail with an error message: ~"Source does not exist"

That's because Stencyl is trying to find the compiled APK in the folder: ~stencylworks\\android-builds\.... But the APK is not saved there!?
However i found that the APK is saved in another folder, namely: ~stencylworks\games-generated\....
So maybe that could be a clue...? (I now using Stencyl b9494)

Also I am unsure of which Android-NDK that is recommended now?


Justin

  • Master Stencyler
  • *
September 06, 2017, 05:55:07 pm
I've tested with NDK r10e and r14, and IIRC they both worked. Looking into this issue right now.
« Last Edit: September 06, 2017, 05:57:25 pm by Justin »


Justin

  • Master Stencyler
  • *
September 06, 2017, 06:23:28 pm
The paths for testing should be correct with b9505.
« Last Edit: September 06, 2017, 06:23:37 pm by Justin »


Issue updated by Justin - September 06, 2017, 08:25:54 pm
  • Issue Assigned from (none) to Justin


svintaj

  • Subscriber - Stencyl Studio
  • *
September 07, 2017, 02:13:31 pm
Thanks, it works to save an APK compiled with "publish" now, but..

The "Android -> Test Game" does still not work here, because something goes wrong when the APK should be sent and installed on the phone(running Nougat) Same problem as before...

The log looks like the old one, everything goes well untill the installation fails...

I just compiled a project with Android Studio and it could be sent to the phone with no problem, so the phone and the connection works?

« Last Edit: September 07, 2017, 02:14:24 pm by svintaj »


Justin

  • Master Stencyler
  • *
September 07, 2017, 02:22:30 pm
Does android studio perhaps have some debug output as well? Perhaps it's running a different adb command that works better for your particular device (assuming android studio also uses adb).


svintaj

  • Subscriber - Stencyl Studio
  • *
September 08, 2017, 12:23:18 am
Yes my Android Studio uses adb, here comes that log if it may help:
Code: [Select]
Android Studio "Run" - Log:
09/08 09:07:21: Launching app
$ adb install-multiple -r D:\OneDrive\Development\AndroidStudioProjects\MyApplication\app\build\intermediates\split-apk\debug\slices\slice_5.apk D:\OneDrive\Development\AndroidStudioProjects\MyApplication\app\build\intermediates\split-apk\debug\dep\dependencies.apk D:\OneDrive\Development\AndroidStudioProjects\MyApplication\app\build\intermediates\split-apk\debug\slices\slice_6.apk D:\OneDrive\Development\AndroidStudioProjects\MyApplication\app\build\intermediates\split-apk\debug\slices\slice_4.apk D:\OneDrive\Development\AndroidStudioProjects\MyApplication\app\build\intermediates\split-apk\debug\slices\slice_3.apk D:\OneDrive\Development\AndroidStudioProjects\MyApplication\app\build\intermediates\split-apk\debug\slices\slice_0.apk D:\OneDrive\Development\AndroidStudioProjects\MyApplication\app\build\intermediates\split-apk\debug\slices\slice_2.apk D:\OneDrive\Development\AndroidStudioProjects\MyApplication\app\build\intermediates\split-apk\debug\slices\slice_1.apk D:\OneDrive\Development\AndroidStudioProjects\MyApplication\app\build\intermediates\split-apk\debug\slices\slice_8.apk D:\OneDrive\Development\AndroidStudioProjects\MyApplication\app\build\intermediates\split-apk\debug\slices\slice_7.apk D:\OneDrive\Development\AndroidStudioProjects\MyApplication\app\build\intermediates\split-apk\debug\slices\slice_9.apk D:\OneDrive\Development\AndroidStudioProjects\MyApplication\app\build\outputs\apk\app-debug.apk
Split APKs installed
$ adb shell am start -n "com.example.svante.myapplication/com.example.svante.myapplication.FullscreenActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Client not ready yet..Waiting for process to come online
Connected to process 3873 on device motorola-moto_e__4__plus-ZH33C23SMH

Anddroid Monitor - Logcat:
09-08 09:07:25.514 3873-3873/com.example.svante.myapplication I/art: Late-enabling -Xcheck:jni
09-08 09:07:25.540 3873-3880/com.example.svante.myapplication I/art: Debugger is no longer active
09-08 09:07:25.540 3873-3880/com.example.svante.myapplication I/art: Starting a blocking GC Instrumentation
09-08 09:07:25.758 3873-3873/com.example.svante.myapplication W/System: ClassLoader referenced unknown path: /data/app/com.example.svante.myapplication-1/lib/arm
09-08 09:07:25.776 3873-3873/com.example.svante.myapplication I/art: Starting a blocking GC HeapTrim
09-08 09:07:25.784 3873-3873/com.example.svante.myapplication I/InstantRun: starting instant run server: is main process
09-08 09:07:26.038 3873-3873/com.example.svante.myapplication W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
09-08 09:07:26.165 3873-3896/com.example.svante.myapplication I/OpenGLRenderer: Initialized EGL, version 1.4
09-08 09:07:26.170 3873-3896/com.example.svante.myapplication I/OpenGLRenderer: Get disable program binary service property (0)
09-08 09:07:26.170 3873-3896/com.example.svante.myapplication I/OpenGLRenderer: Initializing program atlas...
09-08 09:07:26.171 3873-3896/com.example.svante.myapplication I/ProgramBinary/Service: ProgramBinaryService client side disable debugging.
09-08 09:07:26.171 3873-3896/com.example.svante.myapplication I/ProgramBinary/Service: ProgramBinaryService client side disable binary content debugging.
09-08 09:07:26.171 3873-3896/com.example.svante.myapplication I/OpenGLRenderer: Program binary detail: Binary length is 182828, program map length is 124.
09-08 09:07:26.172 3873-3896/com.example.svante.myapplication I/OpenGLRenderer: Succeeded to mmap program binaries. File descriptor is 71, and path is /dev/ashmem.
09-08 09:07:26.172 3873-3896/com.example.svante.myapplication I/OpenGLRenderer: No need to use file discriptor anymore, close fd(71).
09-08 09:07:26.175 3873-3896/com.example.svante.myapplication W/libEGL: [ANDROID_RECORDABLE] format: 1
09-08 09:07:26.204 3873-3873/com.example.svante.myapplication W/art: Before Android 4.1, method int android.support.v7.widget.ListViewCompat.lookForSelectablePosition(int, boolean) would have incorrectly overridden the package-private method in android.widget.ListView
Android Studio and Stencyl are using different setups of the Android-SDK, so it could be something there that differs... I'll try to install Android-NDK r15c later today, and I'll let you know how it goes.
« Last Edit: September 08, 2017, 03:39:45 pm by svintaj »


svintaj

  • Subscriber - Stencyl Studio
  • *
September 08, 2017, 12:33:04 am
Oh, one question: Shall I install the 64-bit or the 32-bit  version, of the Android-NDK to have it work with Stencyl?  :-\


Justin

  • Master Stencyler
  • *
September 08, 2017, 06:38:58 am
When I looked into this, I remember I came to the conclusion that the 32-bit version is typically better, but I don't recall exactly why right now.. :)


svintaj

  • Subscriber - Stencyl Studio
  • *
September 08, 2017, 03:37:27 pm
Nope, still same error after installing the Latest Stable Android NDK Version (r15c)
Code: [Select]
Encountered errors while building your game.: Check your logs and post them to the forums.  - Please describe what you have been doing. Be as specific as possible.
Failed: Running Android. (Return code: 1)
[haxelib.exe] Failed to install D:/OneDrive/stencylworks/android-builds/Rakna_01b/app/outputs/apk/Rakna_01b-debug.apk:
[haxelib.exe] * daemon started successfully *
[haxelib.exe] * daemon not running. starting it now at tcp:5037 *
[haxelib.exe] Running command: INSTALL
[haxelib.exe] Total time: 52.111 secs
[haxelib.exe] BUILD SUCCESSFUL
Finished: Building for Android
Am I the only one using Android Nougat(7.1.1) and having this problem with testing?


Justin

  • Master Stencyler
  • *
September 08, 2017, 06:49:16 pm
Adb isn't part of the NDK, but part of the SDK's platform tools. The NDK shouldn't affect whether the adb install command works or not.

Here's where adb is located in the workspace.
Code: [Select]
stencylworks\android-sdk\android-sdk-windows\platform-tools\adb.exe
Try running adb yourself, and let's see what command work for your device/the adb version you're using.

Code: [Select]
adb install -r D:/OneDrive/stencylworks/android-builds/Rakna_01b/app/outputs/apk/Rakna_01b-debug.apk
adb install -rd D:/OneDrive/stencylworks/android-builds/Rakna_01b/app/outputs/apk/Rakna_01b-debug.apk
adb install -r -d D:/OneDrive/stencylworks/android-builds/Rakna_01b/app/outputs/apk/Rakna_01b-debug.apk

Also, let me know which adb version and which platform-tools version you have.

Copy the output of
Code: [Select]
adb version
And upload the file
Code: [Select]
stencylworks\android-sdk\android-sdk-windows\platform-tools\source.properties
« Last Edit: September 08, 2017, 06:50:05 pm by Justin »


svintaj

  • Subscriber - Stencyl Studio
  • *
September 09, 2017, 04:32:29 am
Ok, here's the results:
Code: [Select]
install -r    [dir] installs the APK fine on the device, but the app is black/"dead" when trying to start it.
Code: [Select]
install -rd   [dir] Does not work, generates an error "Failed to install"
Code: [Select]
install -r -d [dir] installs the APK fine on the device, but the app is black/"dead" when trying to start it.

ADB version:
Android Debug Bridge version 1.0.39
Revision 3db08f2c6889-android
Installed as D:\OneDrive\stencylworks\android-sdk\android-sdk-windows\platform-tools\adb.exe

source.properties contains:
Pkg.UserSrc=false
Pkg.Revision=26.0.0
#Pkg.Revision=26.0.0 rc2

I am using Android SDK platform-tools 26.


Pages: 1

Details

  • Reported
    July 30, 2017, 03:36:07 pm
  • Updated
    September 09, 2017, 04:32:29 am

  • View Status
    Public
  • Type
    Bug
  • Status
    Need Info
  • Priority
    Normal
  • Version
    Stencyl 3.5, 3.5.0 beta 1
  • Fixed in
    (none)
  • Assigned to
    Justin
  • Category
    Compiling/Testing Games

Tags