Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the sample app crashed after successful android build and deployment #50

Open
nykevinwong opened this issue Nov 23, 2017 · 0 comments
Open

Comments

@nykevinwong
Copy link

The sample app of android build crashed when it's executed.

The versions of haxe libaries I used:

C:\temp\extension-iap\sample>haxelib list
actuate: [1.8.7]
extension-admob: [1.6.4]
extension-googleplayservices-basement: [1.1.0]
extension-iap: [1.2.2]
flixel-addons: 2.2.0 [2.5.0]
flixel-demos: [2.4.1]
flixel-templates: [2.4.4]
flixel-tools: [1.3.0]
flixel-ui: [2.2.0]
flixel: 4.2.1 [4.3.0]
hscript: [2.1.1]
hxcpp: [3.4.64]
lime-samples: [4.0.1]
lime: [2.9.1]
openfl: [3.6.1]

The Java Version:

C:\temp\extension-iap\sample>java -version
java version "1.8.0_91"
Java(TM) SE Runtime Environment (build 1.8.0_91-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.91-b14, mixed mode)

Other setup:

<section id="vars">
	
	<set name="ANDROID_SETUP" value="true" />
	<set name="ANDROID_NDK_ROOT" value="C:\Development\android-ndk-r10e" />
	<set name="ANT_HOME" value="C:\Development\Apache Ant" />
	<set name="ANDROID_SDK" value="C:\Development\Android SDK" />
	
</section>

The log of lime android build process:

C:\temp\extension-iap\sample>lime test android
Creating C:/temp/extension-iap/sample/bin/android/obj/obj/android-v7/__pch/haxe/hxcpp.h.gch...

Compiling group: haxe
arm-linux-androideabi-g++ -Iinclude --sysroot=C:\Development\android-ndk-r10e/platforms/android-9/arch-arm -IC:\Development\android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.8/include -IC:\Development\android-ndk-r10e/sources/cxx-stl/gnu-libstdc++/4.8/libs/armeabi/include -DHXCPP_VISIT_ALLOCS(haxe) -DHXCPP_API_LEVEL=331(haxe) -IC:/HaxeToolkit/haxe/lib/hxcpp/3,4,64/include -Iinclude -fpic -fvisibility=hidden -ffunction-sections -funwind-tables -fstack-protector -fno-short-enums -D_LINUX_STDDEF_H -Wno-psabi -DHXCPP_CPP11 -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp -fomit-frame-pointer -fexceptions -fno-strict-aliasing -finline-limit=10000 -DANDROID=ANDROID -DHX_ANDROID -DHXCPP_ANDROID_PLATFORM=9 -Wa,--noexecstack -O2 -DNDEBUG -c ... tags=[haxe,static]

  • src/ApplicationMain.cpp
    Link: libApplicationMain-v7.so
    Buildfile: C:\temp\extension-iap\sample\bin\android\bin\build.xml

-set-mode-check:

-set-release-mode:

-release-obfuscation-check:
[echo] proguard.config is ${proguard.config}

-pre-build:

-check-env:
[checkenv] Android SDK Tools Revision 24.4.1
[checkenv] Installed at C:\Development\Android SDK

-setup:
[echo] Project Name: Iaptest
[gettype] Project Type: Application

-build-setup:
[getbuildtools] Using latest Build Tools: 19.1.0
[echo] Resolving Build Target for Iaptest...
[gettarget] Project Target: Android 4.4.2
[gettarget] API level: 19
[echo] ----------
[echo] Creating output directories if needed...
[mkdir] Created dir: C:\temp\extension-iap\sample\bin\android\bin\bin\rsObj
[mkdir] Created dir: C:\temp\extension-iap\sample\bin\android\bin\bin\rsLibs
[echo] ----------
[echo] Resolving Dependencies for Iaptest...
[dependency] Library dependencies:
[dependency]
[dependency] ------------------
[dependency] Ordered libraries:
[dependency]
[dependency] ------------------
[echo] ----------
[echo] Building Libraries with 'release'...

nodeps:

-set-mode-check:

-set-release-mode:

-release-obfuscation-check:
[echo] proguard.config is ${proguard.config}

-pre-build:

-check-env:
[checkenv] Android SDK Tools Revision 24.4.1
[checkenv] Installed at C:\Development\Android SDK

-setup:
[echo] Project Name: OpenFLExtension
[gettype] Project Type: Android Library

-build-setup:
[getbuildtools] Using latest Build Tools: 19.1.0
[echo] Resolving Build Target for OpenFLExtension...
[gettarget] Project Target: Android 4.4.2
[gettarget] API level: 19
[gettarget] WARNING: No minSdkVersion value set. Application will install on all Android versions.
[echo] ----------
[echo] Creating output directories if needed...
[echo] ----------
[echo] Resolving Dependencies for OpenFLExtension...
[dependency] Library dependencies:
[dependency] No Libraries
[dependency]
[dependency] ------------------

-code-gen:
[mergemanifest] Found Deleted Target File
[mergemanifest] Merging AndroidManifest files into one.
[mergemanifest] Manifest merger disabled. Using project manifest only.
[echo] Handling aidl files...
[aidl] No AIDL files to compile.
[echo] ----------
[echo] Handling RenderScript files...
[echo] ----------
[echo] Handling Resources...
[aapt] Found new input file
[aapt] Generating resource IDs...
[echo] ----------
[echo] Handling BuildConfig class...
[buildconfig] No need to generate new BuildConfig.

-pre-compile:

-compile:
[javac] Compiling 5 source files to C:\temp\extension-iap\sample\bin\android\bin\deps\extension-api\bin\classes
[javac] warning: [options] source value 1.5 is obsolete and will be removed in a future release
[javac] warning: [options] target value 1.5 is obsolete and will be removed in a future release
[javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
[javac] 3 warnings
[echo] Creating library output jar file...
[jar] Building jar: C:\temp\extension-iap\sample\bin\android\bin\deps\extension-api\bin\classes.jar

-post-compile:

-obfuscate:

-dex:
[echo] Library project: do not convert bytecode...

-crunch:
[crunch] Crunching PNG Files in source dir: C:\temp\extension-iap\sample\bin\android\bin\deps\extension-api\res
[crunch] To destination dir: C:\temp\extension-iap\sample\bin\android\bin\deps\extension-api\bin\res
[crunch] Crunched 0 PNG files to update cache

-package-resources:
[echo] Library project: do not package resources...

-package:
[echo] Library project: do not package apk...

-post-package:

-release-prompt-for-password:

-release-nosign:
[echo]
[propertyfile] Updating property file: C:\temp\extension-iap\sample\bin\android\bin\deps\extension-api\bin\build.prop
[propertyfile] Updating property file: C:\temp\extension-iap\sample\bin\android\bin\deps\extension-api\bin\build.prop
[propertyfile] Updating property file: C:\temp\extension-iap\sample\bin\android\bin\deps\extension-api\bin\build.prop
[propertyfile] Updating property file: C:\temp\extension-iap\sample\bin\android\bin\deps\extension-api\bin\build.prop

-release-sign:

-post-build:

release:

nodeps:

-set-mode-check:

-set-release-mode:

-release-obfuscation-check:
[echo] proguard.config is ${proguard.config}

-pre-build:

-check-env:
[checkenv] Android SDK Tools Revision 24.4.1
[checkenv] Installed at C:\Development\Android SDK

-setup:
[echo] Project Name: InAppPurchase
[gettype] Project Type: Android Library

-build-setup:
[getbuildtools] Using latest Build Tools: 19.1.0
[echo] Resolving Build Target for InAppPurchase...
[gettarget] Project Target: Android 4.4.2
[gettarget] API level: 19
[gettarget] WARNING: No minSdkVersion value set. Application will install on all Android versions.
[echo] ----------
[echo] Creating output directories if needed...
[echo] ----------
[echo] Resolving Dependencies for InAppPurchase...
[dependency] Library dependencies:
[dependency]
[dependency] ------------------
[dependency] Ordered libraries:
[dependency]
[dependency] ------------------

-code-gen:
[mergemanifest] Found Deleted Target File
[mergemanifest] Merging AndroidManifest files into one.
[mergemanifest] Manifest merger disabled. Using project manifest only.
[echo] Handling aidl files...
[aidl] Found 1 AIDL files.
[aidl] Compiling 1 AIDL files.
[echo] ----------
[echo] Handling RenderScript files...
[echo] ----------
[echo] Handling Resources...
[aapt] Found new input file
[aapt] Generating resource IDs...
[echo] ----------
[echo] Handling BuildConfig class...
[buildconfig] No need to generate new BuildConfig.

-pre-compile:

-compile:
[javac] Compiling 11 source files to C:\temp\extension-iap\sample\bin\android\bin\deps\iap\bin\classes
[javac] warning: [options] source value 1.5 is obsolete and will be removed in a future release
[javac] warning: [options] target value 1.5 is obsolete and will be removed in a future release
[javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
[javac] 3 warnings
[echo] Creating library output jar file...
[jar] Building jar: C:\temp\extension-iap\sample\bin\android\bin\deps\iap\bin\classes.jar

-post-compile:

-obfuscate:

-dex:
[echo] Library project: do not convert bytecode...

-crunch:
[crunch] Crunching PNG Files in source dir: C:\temp\extension-iap\sample\bin\android\bin\deps\iap\res
[crunch] To destination dir: C:\temp\extension-iap\sample\bin\android\bin\deps\iap\bin\res
[crunch] Crunched 0 PNG files to update cache

-package-resources:
[echo] Library project: do not package resources...

-package:
[echo] Library project: do not package apk...

-post-package:

-release-prompt-for-password:

-release-nosign:
[echo]
[propertyfile] Updating property file: C:\temp\extension-iap\sample\bin\android\bin\deps\iap\bin\build.prop
[propertyfile] Updating property file: C:\temp\extension-iap\sample\bin\android\bin\deps\iap\bin\build.prop
[propertyfile] Updating property file: C:\temp\extension-iap\sample\bin\android\bin\deps\iap\bin\build.prop
[propertyfile] Updating property file: C:\temp\extension-iap\sample\bin\android\bin\deps\iap\bin\build.prop

-release-sign:

-post-build:

release:

-code-gen:
[mergemanifest] Found Deleted Target File
[mergemanifest] Merging AndroidManifest files into one.
[mergemanifest] Merging manifests from project and 2 libraries.
[echo] Handling aidl files...
[aidl] No AIDL files to compile.
[echo] ----------
[echo] Handling RenderScript files...
[echo] ----------
[echo] Handling Resources...
[aapt] Found Deleted Target File
[aapt] Generating resource IDs...
[echo] ----------
[echo] Handling BuildConfig class...
[buildconfig] Generating BuildConfig class.

-pre-compile:

-compile:
[javac] Compiling 5 source files to C:\temp\extension-iap\sample\bin\android\bin\bin\classes
[javac] warning: [options] source value 1.5 is obsolete and will be removed in a future release
[javac] warning: [options] target value 1.5 is obsolete and will be removed in a future release
[javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
[javac] Note: C:\temp\extension-iap\sample\bin\android\bin\src\org\libsdl\app\SDLActivity.java uses or overrides a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] 3 warnings

-post-compile:

-obfuscate:

-dex:
[dex] input: C:\temp\extension-iap\sample\bin\android\bin\bin\classes
[dex] input: C:\temp\extension-iap\sample\bin\android\bin\deps\iap\bin\classes.jar
[dex] input: C:\temp\extension-iap\sample\bin\android\bin\deps\extension-api\bin\classes.jar
[dex] Pre-Dexing C:\temp\extension-iap\sample\bin\android\bin\deps\iap\bin\classes.jar -> classes-d87817f4111426cf653234d5201e7958.jar
[dex] Pre-Dexing C:\temp\extension-iap\sample\bin\android\bin\deps\extension-api\bin\classes.jar -> classes-eed15a463bc779f83e0a70ecef8ad42b.jar
[dex] Found Deleted Target File
[dex] Converting compiled files and external libraries into C:\temp\extension-iap\sample\bin\android\bin\bin\classes.dex...
[dx] Merged dex A (26 defs/36.6KiB) with dex B (40 defs/51.3KiB). Result is 66 defs/102.8KiB. Took 0.1s
[dx] Merged dex A (66 defs/102.8KiB) with dex B (5 defs/5.0KiB). Result is 71 defs/131.4KiB. Took 0.0s

-crunch:
[crunch] Crunching PNG Files in source dir: C:\temp\extension-iap\sample\bin\android\bin\res
[crunch] To destination dir: C:\temp\extension-iap\sample\bin\android\bin\bin\res
[crunch] Crunched 0 PNG files to update cache

-package-resources:
[aapt] Creating full resource package...

-package:
[apkbuilder] Current build type is different than previous build: forced apkbuilder run.
[apkbuilder] Creating Iaptest-release-unsigned.apk for release...

-post-package:

-release-prompt-for-password:

-release-nosign:

-release-sign:
[echo] Signing final apk...
[zipalign] Running zip align on final apk...
[echo] Release Package: C:\temp\extension-iap\sample\bin\android\bin\bin\Iaptest-release.apk
[propertyfile] Creating new property file: C:\temp\extension-iap\sample\bin\android\bin\bin\build.prop
[propertyfile] Updating property file: C:\temp\extension-iap\sample\bin\android\bin\bin\build.prop
[propertyfile] Updating property file: C:\temp\extension-iap\sample\bin\android\bin\bin\build.prop
[propertyfile] Updating property file: C:\temp\extension-iap\sample\bin\android\bin\bin\build.prop

-post-build:

release:

BUILD SUCCESSFUL
Total time: 22 seconds
/system/bin/sh: can't create C:UserskevinAppDataLocalTemp/temp_5032440: No such file or directory
660 KB/s (6415394 bytes in 9.484s)
pkg: /data/local/tmp/Iaptest-release.apk
Success
Starting: Intent { act=android.intent.action.MAIN cmp=com.emibap.IAPTestOpenFL/.MainActivity }
--------- beginning of crash
--------- beginning of system
--------- beginning of main

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant