I upgraded my android to api 21, now I am getting another error.

05-22 11:08:56.079  18181-18181/org.iotivity.base.examples.simpleserver
A/art? sart/runtime/check_jni.cc:65] JNI DETECTED ERROR IN APPLICATION: JNI
FindClass called with pending exception 'java.lang.ClassNotFoundException'
thrown in unknown throw location

The logcat is attached. This error is at line 106.

At line 108 :

05-22 11:08:56.079  18181-18181/org.iotivity.base.examples.simpleserver
A/art? sart/runtime/check_jni.cc:65]     from void
org.iotivity.ca.CaInterface.initialize(android.content.Context)

Sorry Patrick, I sent the response just to you...

Thanks for response.

2015-05-22 12:43 GMT-03:00 Lankswert, Patrick <patrick.lankswert at intel.com>:

> Tim,
>
> We aspire to make the sample applications part of the build process so
> that any API change that may break a sample application can be caught early
> and part of the review process.
>
> I have downloaded SDKs with broken samples in the past and always thought
> "these jokers have got to be kidding me". Now, I am trying to not be the
> jokers. :)
>
> Pat
>
> > -----Original Message-----
> > From: iotivity-dev-bounces at lists.iotivity.org [mailto:iotivity-dev-
> > bounces at lists.iotivity.org] On Behalf Of Kourt, Tim A
> > Sent: Thursday, May 21, 2015 10:31 PM
> > To: Hudson, Douglas; Keane, Erich; ddioriomendes at gmail.com
> > Cc: iotivity-dev at lists.iotivity.org
> > Subject: Re: [dev] UsatisfiedLinkError on android
> >
> > Doug,
> >
> > The build server doesn't currently build examples for Android, since we
> > didn't see any immediate need for automating this step. Instead, we
> provide
> > the instructions on how to proceed with Android Studio. At the same time
> > the opportunity is open.
> >
> > Thanks,
> > Tim
> >
> > -----Original Message-----
> > From: iotivity-dev-bounces at lists.iotivity.org [mailto:iotivity-dev-
> > bounces at lists.iotivity.org] On Behalf Of Hudson, Douglas
> > Sent: Thursday, May 21, 2015 1:36 PM
> > To: Keane, Erich; ddioriomendes at gmail.com
> > Cc: iotivity-dev at lists.iotivity.org
> > Subject: Re: [dev] UsatisfiedLinkError on android
> >
> > It is my understanding that the build server does a build for Android,
> so I
> > would have thought that if the Android samples were missed then the build
> > server should have caught it when the changeset went to Gerrit.  Am I off
> > track?
> >
> > --Doug
> >
> > -----Original Message-----
> > From: iotivity-dev-bounces at lists.iotivity.org [mailto:iotivity-dev-
> > bounces at lists.iotivity.org] On Behalf Of Keane, Erich
> > Sent: Thursday, May 21, 2015 1:32 PM
> > To: ddioriomendes at gmail.com
> > Cc: iotivity-dev at lists.iotivity.org
> > Subject: Re: [dev] UsatisfiedLinkError on android
> >
> > So, OcConnectivityType was changed to no longer contain WIFI or Ethernet.
> > It is now supposed to be IPV4 or IPV6, some of the samples were likely
> > missed when we made that switchover.  In the meantime, feel free to
> either
> > fix locally (or submit a patch?) by switching the .WIFI or .Ethernets
> that you
> > find over to .IPV4.
> >
> > I'm not sure about the boost stuff, it SHOULD be downloading it every
> time.
> > The one thing that I found that can cause problems is the 'dep'
> > directory in the iotivity root.  I'd suggest deleting the entire
> directory, as well
> > as everything in extlibs/boost (other than the Sconscript file!) and
> trying
> > again.
> >
> > As far as the exception below, pthread_condattr_setclock seems to be
> > missing.  I believe we require NDK version r10d, if you have an earlier
> version
> > of the NDK, android might not build.
> >
> > -Erich
> >
> > On Thu, 2015-05-21 at 14:25 -0300, Davi Di?rio Mendes wrote:
> > > Hi all,
> > >
> > >
> > > I am wonrking on master branch, commit
> > > 887d789ee50b0d2ca5e520d872aeb507ddbd0f31.
> > >
> > >
> > > I builded iotivity for android following wiki guide, now I get this
> > > error when run simpleserver or another else server example. In the
> > > clients gradle cannot find OcConnectivityType.WIFI.
> > >
> > >
> > > Does someone have a lead? Is not the master branch ready to work?
> > >
> > >
> > > I tried to build in android-api branch but the build script does not
> > > download boost, then stop compiling because can not find
> > > boost/lexical_cast.hpp. If I download boost by hand and unpack it in
> > > extlibs/boost, it still not finding dependencies.
> > >
> > >
> > > I know you are working at 0.91 release, sorry bothering with minor
> > > things. But I have a lecture scheduled to Friday, next week, and I do
> > > not want to do a checkout back to what I used. I would like to show
> > > what is actually done.
> > >
> > >
> > > Thanks.
> > >
> > >
> > > 05-21 14:05:58.337
> > >  19920-19920/org.iotivity.base.examples.simpleserver
> > > E/AndroidRuntime? FATAL EXCEPTION: main
> > >     Process: org.iotivity.base.examples.simpleserver, PID: 19920
> > >     java.lang.UnsatisfiedLinkError: dlopen failed: could not load
> > > library "liboctbstack.so" needed by "liboc.so"; caused by could not
> > > load library "libconnectivity_abstraction.so" needed by
> > > "liboctbstack.so"; caused by cannot locate symbol
> > > "pthread_condattr_setclock" referenced by
> > > "libconnectivity_abstraction.so"...
> > >             at java.lang.Runtime.loadLibrary(Runtime.java:365)
> > >             at java.lang.System.loadLibrary(System.java:526)
> > >             at
> > > org.iotivity.base.OcRepresentation.<clinit>(OcRepresentation.java:35)
> > >             at
> > >
> > org.iotivity.base.examples.simpleserver.SimpleServer.onCreate(SimpleServ
> > er.java:72)
> > >             at android.app.Activity.performCreate(Activity.java:5458)
> > >             at
> > >
> > android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:109
> > 3)
> > >             at
> > >
> >
> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2376)
> > >             at
> > >
> android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2470)
> > >             at android.app.ActivityThread.access
> > > $900(ActivityThread.java:174)
> > >             at android.app.ActivityThread
> > > $H.handleMessage(ActivityThread.java:1307)
> > >             at android.os.Handler.dispatchMessage(Handler.java:102)
> > >             at android.os.Looper.loop(Looper.java:146)
> > >             at
> > > android.app.ActivityThread.main(ActivityThread.java:5593)
> > >             at java.lang.reflect.Method.invokeNative(Native Method)
> > >             at java.lang.reflect.Method.invoke(Method.java:515)
> > >             at com.android.internal.os.ZygoteInit
> > > $MethodAndArgsCaller.run(ZygoteInit.java:1283)
> > >             at
> > > com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1099)
> > >             at dalvik.system.NativeStart.main(Native Method)
> > >
> > >
> > >
> > >
> > > --
> > > Davi Di?rio Mendes
> > > Eng. de Computa??o - Turma de 2011
> > > Universidade de S?o Paulo - EESC/ICMC
> > >
> > > _______________________________________________
> > > iotivity-dev mailing list
> > > iotivity-dev at lists.iotivity.org
> > > https://lists.iotivity.org/mailman/listinfo/iotivity-dev
> >
> > _______________________________________________
> > iotivity-dev mailing list
> > iotivity-dev at lists.iotivity.org
> > https://lists.iotivity.org/mailman/listinfo/iotivity-dev
> > _______________________________________________
> > iotivity-dev mailing list
> > iotivity-dev at lists.iotivity.org
> > https://lists.iotivity.org/mailman/listinfo/iotivity-dev
> > _______________________________________________
> > iotivity-dev mailing list
> > iotivity-dev at lists.iotivity.org
> > https://lists.iotivity.org/mailman/listinfo/iotivity-dev
>



-- 
*Davi Di?rio Mendes*
Eng. de Computa??o - Turma de 2011
Universidade de S?o Paulo - EESC/ICMC
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20150522/543093ab/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: simpleserver.log
Type: application/octet-stream
Size: 86601 bytes
Desc: not available
URL: 
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20150522/543093ab/attachment.obj>

Reply via email to