openfl

Open full view…

Android apk installation error: Unknown option: -d

mbalestrini
Wed, 05 Nov 2014 20:15:33 GMT

I'm trying to test some app on my Samsung Galaxy S2 (Android 4.1.2), but on the installation step of the build process I get this: Unknown option -d I don't get this error if I do the same but on a Galaxy Note 10.1 2014 (Android 4.4.2) Running the command manually without the -d works: ./adb install -r [path to the apk] I don't know if this helps, but here's some output from the building process: --- - Running process: /usr/sbin/system_profiler -detailLevel full SPHardwareDataType Using 2 compile threads Using specified NDK root "/opt/android-ndk" Found TOOLCHAIN_VERSION 4.4.3 Found ANDROID_HOST darwin-x86 Deduced android NDK 8 Using newest NDK platform: 14 ....... -build-setup: [getbuildtools] Using latest Build Tools: 19.1.0 [echo] Resolving Build Target for AutoNegro... [gettarget] Project Target: Android 4.1.2 [gettarget] API level: 16 --- And here's my haxelib list: hxcpp: [3.1.39] hxlibc: [1.1.4] hxtools: [1.1.6] lime-tools: 1.3.2 [1.5.7] lime: 0.9.6 [2.0.0-alpha.7] openfl-html5: 1.1.0-beta [1.4.2-beta] openfl-native: 1.3.0 [1.4.0] openfl-samples: 1.2.1 [2.1.0] openfl: 1.3.0 [2.1.5]

mbalestrini
Thu, 06 Nov 2014 13:53:35 GMT

Going back to *lime* version *1.0.1* fixed the problem

mbalestrini
Fri, 07 Nov 2014 00:25:19 GMT

there's some fix on the way. jgranick comment on the github issue: > The "-d" parameter should be resolved now, detecting the version of the connected device, and adding only if supported. It is super useful for when you test projects from different systems, and end up having a smaller build ID than the last that was installed on your device.