| 223 | === !UnsatisfiedLinkError exception with "cannot locate 'rand'" message === #failloadlib |
| 224 | |
| 225 | This may occur when running pjsua2 sample app: |
| 226 | {{{ |
| 227 | Exception Ljava/lang/UnsatisfiedLinkError; thrown while initializing Lorg/pjsip/pjsua2/app/MyApp; |
| 228 | ... |
| 229 | java.lang.UnsatisfiedLinkError: Cannot load library: reloc_library[1285]: 37 cannot locate 'rand'... |
| 230 | }}} |
| 231 | |
| 232 | As described [http://stackoverflow.com/questions/27338318/cannot-load-library-reloc-library1285-cannot-locate-rand here], this happens if you've built your native components with the android-21 target, but are trying to run it on a device with an older Android version, so re-run configure with APP_PLATFORM set to lower platform version, e.g: |
| 233 | {{{ |
| 234 | APP_PLATFORM=android-19 ./configure-android |
| 235 | }}} |
| 236 | |
| 237 | |