Nice workaround Jase, thanks, it easily works
On 9 February 2016 at 06:53, ??? <mindwing at gmail.com> wrote:
> Hi.
>
> If you encountered any problems with SDK 23, use the build.gradle settings
> like below.
>
> apply plugin: 'com.android.application'
> android {
> compileSdkVersion 23
> buildToolsVersion '23.0.2'
>
> defaultConfig {
> applicationId "your.company.iotivity"
> minSdkVersion 21
> targetSdkVersion 22
> versionCode 1
> versionName "1.0"
> }
> .....
>
>
> "targetSdkVersion" must be either 21 or 22.
> This is the new policy of SDK 23, (Refer release note
> "https://developer.android.com/intl/ko/about/versions/marshmallow/android-6.0-changes.html#behavior-runtime")
>
>
> Thanks,
> Jase
>
>
>
>
> 2016? 2? 9? (?) ?? 6:20, Jack Mingaw <jack.mingaw at gmail.com>?? ??:
>>
>> On 8 February 2016 at 19:42, Jon A. Cruz <jonc at osg.samsung.com> wrote:
>> > On 02/08/2016 03:50 AM, Jack Mingaw wrote:
>> >>
>> >> On 8 February 2016 at 12:43, Jack Mingaw <jack.mingaw at gmail.com> wrote:
>> >>>
>> >>> Hi,
>> >>>
>> >>> Did anyone try to run iotivity on Android Marshmallow?
>> >>>
>> >>> I got :
>> >>>
>> >>> 02-08 11:27:55.986 4413-4413/com.app.fr.example E/AndroidRuntime:
>> >>> FATAL EXCEPTION: main
>> >>> Process: com.app.fr.example, PID: 4413
>> >>> java.lang.UnsatisfiedLinkError: dlopen failed: library
>> >>> "./obj/local/armeabi/liboc.so" not found
>> >>> at java.lang.Runtime.loadLibrary(Runtime.java:372)
>> >>> at java.lang.System.loadLibrary(System.java:1076)
>> >>> at org.iotivity.base.OcPlatform.<clinit>(OcPlatform.java:43)
>> >>> at
>> >>> com.app.fr.example.iotivity.Connexion.startClient(Connexion.java:35)
>> >>> at
>> >>>
>> >>> com.app.fr.example.activity.MainActivity.onCreate(MainActivity.java:83)
>> >>> at android.app.Activity.performCreate(Activity.java:6272)
>> >>> at
>> >>>
>> >>> android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107)
>> >>> at
>> >>>
>> >>> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2387)
>> >>> at
>> >>>
>> >>> android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2494)
>> >>> at
>> >>> android.app.ActivityThread.access$900(ActivityThread.java:157)
>> >>> at
>> >>> android.app.ActivityThread$H.handleMessage(ActivityThread.java:1356)
>> >>> at android.os.Handler.dispatchMessage(Handler.java:102)
>> >>> at android.os.Looper.loop(Looper.java:148)
>> >>> at android.app.ActivityThread.main(ActivityThread.java:5525)
>> >>> at java.lang.reflect.Method.invoke(Native Method)
>> >>> at
>> >>>
>> >>> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:730)
>> >>> at
>> >>> com.android.internal.os.ZygoteInit.main(ZygoteInit.java:620)
>> >>>
>> >>> Cheers,
>> >>>
>> >>> Jack
>> >>
>> >>
>> >> I've just seen that someone ealier asked a similar question:
>> >>
>> >> http://lists.iotivity.org/pipermail/iotivity-dev/2016-January/003396.html
>> >>
>> >
>> >
>> > Hi,
>> >
>> > Which version of the code are you running? I know a recent change went
>> > in to
>> > address some of the library loading issues
>> >
>> > https://gerrit.iotivity.org/gerrit/#/c/4873/
>> >
>> > Does that happen to address your immediate problem?
>>
>>
>> Thanks Rahul, yes it is SDK 23.;
>> Ok Jon, so it's going to be solved for the next release, I will wait
>> for it. In the meanwhile I will build for SDK 21.
>>
>> Cheers,
>>
>> Jack
>> _______________________________________________
>> iotivity-dev mailing list
>> iotivity-dev at lists.iotivity.org
>> https://lists.iotivity.org/mailman/listinfo/iotivity-dev