tidev / ti.imagefactory

The ImageFactory Module for Appcelerator Titanium
Apache License 2.0
67 stars 52 forks source link

Can't run on Android 6.0 #18

Closed neerup closed 8 years ago

neerup commented 8 years ago

Can't run with SDK 5.1 on Android 6.0 because of text relocations

andersdp commented 8 years ago

Same here. App crashes immediately on launch when targetSdkVersion="23" but only on a real device.

ashcoding commented 8 years ago

Thanks for bringing this up. You would need to recompile the module to use it with the latest SDK 5.1.0

ashcoding commented 8 years ago

Created a ticket. Please follow it here: https://jira.appcelerator.org/browse/TIMOB-20056

Or alternatively, you could compile the module if you need it urgently. :)

neerup commented 8 years ago

This is the 64Bit problem with IOS modules all over again... the SDK is upgraded but the modules is not.. This renders SDK 5.1 GA useless if You use this module... Sorry for the language, but this is frustrating...

andersdp commented 8 years ago

@neerup Yeah, agree it's frustrating.

@ashcoding I hav'nt tried compiling a module before. How is it done?

ashcoding commented 8 years ago

You can get the compiled module here for Android 6.0 https://github.com/appcelerator-modules/ti.imagefactory/releases/tag/android-2.2.2

The changes required to compile is here: https://github.com/appcelerator-modules/ti.imagefactory/pull/19/files

You would also need a build.properties in the Android folder. The example is here: https://github.com/appcelerator-modules/ti.imagefactory/blob/stable/android/build.properties.example

An example that I use is:-

titanium.sdk=/Users/msamah/Library/Application Support/Titanium
titanium.os=osx
titanium.version=5.0.0.GA
android.sdk=/Users/msamah/Library/Android/sdk
android.ndk=/Users/msamah/Library/Android/android-ndk-r10e

titanium.platform=${titanium.sdk}/mobilesdk/${titanium.os}/${titanium.version}/android
android.platform=${android.sdk}/platforms/android-8
google.apis=${android.sdk}/add-ons/addon_google_apis_google_inc_8

After that, just run the command ant in the Android folder to build it. Check out http://docs.appcelerator.com/platform/latest/#!/guide/Creating_a_New_Titanium_Module for more information.

ashcoding commented 8 years ago

@neerup @andersdp If there's any other modules causing similar issues for you, do create an issue and let me know so that I can attend to it.

neerup commented 8 years ago

@ashcoding ti.cloudpush has the same issue, so if you could recompile that aswell, That would be really nice. It already has an issue: https://jira.appcelerator.org/browse/MOD-2148

ashcoding commented 8 years ago

Yup. @neerup thanks for the info. It's recompiled. Currently under review. I'll nudge the ticket a bit to make it move.

neerup commented 8 years ago

@ashcoding Thanks it will be appreciated...

andersdp commented 8 years ago

Great, thanks @ashcoding :+1:

ashcoding commented 8 years ago

Closing this issue. :)

neerup commented 8 years ago

@ashcoding Any chance of a link to the Cloudpush module ?

ashcoding commented 8 years ago

@neerup Ticket: https://jira.appcelerator.org/browse/MOD-2148 You can find it here: https://github.com/appcelerator/titanium_mobile/blob/master/support/module/packaged/ti.cloudpush-android-3.4.1.zip