{"action":"opened","issue":{"url":"https://api.github.com/repos/deeplearning4j/nd4j/issues/2217","repository_url":"https://api.github.com/repos/deeplearning4j/nd4j","labels_url":"https://api.github.com/repos/deeplearning4j/nd4j/issues/2217/labels{/name}","comments_url":"https://api.github.com/repos/deeplearning4j/nd4j/issues/2217/comments","events_url":"https://api.github.com/repos/deeplearning4j/nd4j/issues/2217/events","html_url":"https://github.com/deeplearning4j/nd4j/issues/2217","id":268396959,"number":2217,"title":"Couldn't find lib .so in android project","user":{"login":"Rehckover","id":28598744,"avatar_url":"https://avatars0.githubusercontent.com/u/28598744?v=4","gravatar_id":"","url":"https://api.github.com/users/Rehckover","html_url":"https://github.com/Rehckover","followers_url":"https://api.github.com/users/Rehckover/followers","following_url":"https://api.github.com/users/Rehckover/following{/other_user}","gists_url":"https://api.github.com/users/Rehckover/gists{/gist_id}","starred_url":"https://api.github.com/users/Rehckover/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rehckover/subscriptions","organizations_url":"https://api.github.com/users/Rehckover/orgs","repos_url":"https://api.github.com/users/Rehckover/repos","events_url":"https://api.github.com/users/Rehckover/events{/privacy}","received_events_url":"https://api.github.com/users/Rehckover/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-10-25T13:26:41Z","updated_at":"2017-10-25T13:26:41Z","closed_at":null,"author_association":"NONE","body":"I add all dependencies in NEW CLEAR PROJECT according to this this link https://deeplearning4j.org/android\r\nMy build file:\r\napply plugin: 'com.android.application'\r\napply plugin: 'me.tatarka.retrolambda'\r\n```\r\n\r\nandroid {\r\n    compileSdkVersion 26\r\n    buildToolsVersion \"26.0.0\"\r\n    defaultConfig {\r\n        applicationId \"com.android.tipitdemoapp\"\r\n        minSdkVersion 21\r\n        targetSdkVersion 26\r\n        versionCode 1\r\n        versionName \"1.0\"\r\n        multiDexEnabled true\r\n        externalNativeBuild {\r\n            cmake {\r\n                cppFlags \"-frtti -fexceptions\"\r\n            }\r\n        }\r\n    }\r\n    compileOptions {\r\n        sourceCompatibility JavaVersion.VERSION_1_8\r\n        targetCompatibility JavaVersion.VERSION_1_8\r\n    }\r\n    dataBinding {\r\n        enabled = true\r\n    }\r\n    buildTypes {\r\n        release {\r\n            minifyEnabled false\r\n            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'\r\n        }\r\n    }\r\n    externalNativeBuild {\r\n        cmake {\r\n            path \"CMakeLists.txt\"\r\n        }\r\n    }\r\n\r\n    packagingOptions {\r\n        exclude 'META-INF/DEPENDENCIES'\r\n        exclude 'META-INF/DEPENDENCIES.txt'\r\n        exclude 'META-INF/LICENSE'\r\n        exclude 'META-INF/LICENSE.txt'\r\n        exclude 'META-INF/license.txt'\r\n        exclude 'META-INF/NOTICE'\r\n        exclude 'META-INF/NOTICE.txt'\r\n        exclude 'META-INF/notice.txt'\r\n        exclude 'META-INF/INDEX.LIST'\r\n        exclude 'org/bytedeco/javacpp/windows-x86/msvcp120.dll'\r\n        exclude 'org/bytedeco/javacpp/windows-x86_64/msvcp120.dll'\r\n        exclude 'org/bytedeco/javacpp/windows-x86/msvcr120.dll'\r\n        exclude 'org/bytedeco/javacpp/windows-x86_64/msvcr120.dll'\r\n    }\r\n}\r\n\r\ndependencies {\r\n    compile fileTree(include: ['*.jar'], dir: 'libs')\r\n    compile 'com.android.support:multidex:1.0.1'\r\n    compile 'org.deeplearning4j:deeplearning4j-core:0.8.0'\r\n    compile 'org.nd4j:nd4j-native:0.8.0'\r\n    compile 'org.nd4j:nd4j-native:0.8.0:android-x86'\r\n    compile 'org.nd4j:nd4j-native:0.8.0:android-arm'\r\n    compile 'org.bytedeco.javacpp-presets:openblas:0.2.19-1.3:android-x86'\r\n    compile 'org.bytedeco.javacpp-presets:openblas:0.2.19-1.3:android-arm'\r\n    compile 'com.android.support:appcompat-v7:26.+'\r\n    compile 'com.android.support.constraint:constraint-layout:1.0.2'\r\n}\r\n\r\n\r\n```\r\nAnd when try to create simple nd array I recive such error:\r\n```\r\njava.lang.ExceptionInInitializerError\r\n                                                                              at org.nd4j.linalg.cpu.nativecpu.ops.NativeOpExecutioner.<init>(NativeOpExecutioner.java:43)\r\n                                                                              at java.lang.reflect.Constructor.newInstance(Native Method)\r\n                                                                              at java.lang.Class.newInstance(Class.java:1572)\r\n                                                                              at org.nd4j.linalg.factory.Nd4j.initWithBackend(Nd4j.java:5784)\r\n                                                                              at org.nd4j.linalg.factory.Nd4j.initContext(Nd4j.java:5694)\r\n                                                                              at org.nd4j.linalg.factory.Nd4j.<clinit>(Nd4j.java:184)\r\n                                                                              at com.android.tipitdemoapp.CameraPreviewActivity.printNd4jArray(CameraPreviewActivity.java:69)\r\n                                                                              at com.android.tipitdemoapp.CameraPreviewActivity.onCreate(CameraPreviewActivity.java:58)\r\n                                                                              at android.app.Activity.performCreate(Activity.java:5998)\r\n                                                                              at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1111)\r\n                                                                              at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2447)\r\n                                                                              at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2556)\r\n                                                                              at android.app.ActivityThread.access$800(ActivityThread.java:176)\r\n                                                                              at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1437)\r\n                                                                              at android.os.Handler.dispatchMessage(Handler.java:111)\r\n                                                                              at android.os.Looper.loop(Looper.java:194)\r\n                                                                              at android.app.ActivityThread.main(ActivityThread.java:5578)\r\n                                                                              at java.lang.reflect.Method.invoke(Native Method)\r\n                                                                              at java.lang.reflect.Method.invoke(Method.java:372)\r\n                                                                              at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:956)\r\n                                                                              at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:751)\r\n                                                                           Caused by: java.lang.RuntimeException: ND4J is probably missing dependencies. For more information, please refer to: http://nd4j.org/getstarted.html\r\n                                                                              at org.nd4j.nativeblas.NativeOpsHolder.<init>(NativeOpsHolder.java:51)\r\n                                                                              at org.nd4j.nativeblas.NativeOpsHolder.<clinit>(NativeOpsHolder.java:19)\r\n                                                                              at org.nd4j.linalg.cpu.nativecpu.ops.NativeOpExecutioner.<init>(NativeOpExecutioner.java:43) \r\n                                                                              at java.lang.reflect.Constructor.newInstance(Native Method) \r\n                                                                              at java.lang.Class.newInstance(Class.java:1572) \r\n                                                                              at org.nd4j.linalg.factory.Nd4j.initWithBackend(Nd4j.java:5784) \r\n                                                                              at org.nd4j.linalg.factory.Nd4j.initContext(Nd4j.java:5694) \r\n                                                                              at org.nd4j.linalg.factory.Nd4j.<clinit>(Nd4j.java:184) \r\n                                                                              at com.android.tipitdemoapp.CameraPreviewActivity.printNd4jArray(CameraPreviewActivity.java:69) \r\n                                                                              at com.android.tipitdemoapp.CameraPreviewActivity.onCreate(CameraPreviewActivity.java:58) \r\n                                                                              at android.app.Activity.performCreate(Activity.java:5998) \r\n                                                                              at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1111) \r\n                                                                              at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2447) \r\n                                                                              at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2556) \r\n                                                                              at android.app.ActivityThread.access$800(ActivityThread.java:176) \r\n                                                                              at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1437) \r\n                                                                              at android.os.Handler.dispatchMessage(Handler.java:111) \r\n                                                                              at android.os.Looper.loop(Looper.java:194) \r\n                                                                              at android.app.ActivityThread.main(ActivityThread.java:5578) \r\n                                                                              at java.lang.reflect.Method.invoke(Native Method) \r\n                                                                              at java.lang.reflect.Method.invoke(Method.java:372) \r\n                                                                              at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:956) \r\n                                                                              at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:751) \r\n                                                                           Caused by: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file \"/data/app/com.android.tipitdemoapp-2/base.apk\"],nativeLibraryDirectories=[/data/app/com.android.tipitdemoapp-2/lib/arm64, /vendor/lib64, /system/lib64]]] couldn't find \"libjnind4jcpu.so\"\r\n                                                                              at java.lang.Runtime.loadLibrary(Runtime.java:366)\r\n                                                                              at java.lang.System.loadLibrary(System.java:989)\r\n                                                                              at org.bytedeco.javacpp.Loader.loadLibrary(Loader.java:963)\r\n                                                                              at org.bytedeco.javacpp.Loader.load(Loader.java:764)\r\n                                                                              at org.bytedeco.javacpp.Loader.load(Loader.java:671)\r\n                                                                              at org.nd4j.nativeblas.Nd4jCpu.<clinit>(Nd4jCpu.java:10)\r\n                                                                              at java.lang.Class.classForName(Native Method)\r\n                                                                              at java.lang.Class.forName(Class.java:308)\r\n                                                                              at org.bytedeco.javacpp.Loader.load(Loader.java:726)\r\n                                                                              at org.bytedeco.javacpp.Loader.load(Loader.java:671)\r\n                                                                              at org.nd4j.nativeblas.Nd4jCpu$NativeOps.<clinit>(Nd4jCpu.java:62)\r\n                                                                              at java.lang.Class.classForName(Native Method)\r\n                                                                              at java.lang.Class.forName(Class.java:308)\r\n                                                                              at java.lang.Class.forName(Class.java:272)\r\n                                                                              at org.nd4j.nativeblas.NativeOpsHolder.<init>(NativeOpsHolder.java:29)\r\n                                                                              at org.nd4j.nativeblas.NativeOpsHolder.<clinit>(NativeOpsHolder.java:19) \r\n                                                                              at org.nd4j.linalg.cpu.nativecpu.ops.NativeOpExecutioner.<init>(NativeOpExecutioner.java:43) \r\n                                                                              at java.lang.reflect.Constructor.newInstance(Native Method) \r\n                                                                              at java.lang.Class.newInstance(Class.java:1572) \r\n                                                                              at org.nd4j.linalg.factory.Nd4j.initWithBackend(Nd4j.java:5784) \r\n                                                                              at org.nd4j.linalg.factory.Nd4j.initContext(Nd4j.java:5694) \r\n                                                                              at org.nd4j.linalg.factory.Nd4j.<clinit>(Nd4j.java:184) \r\n                                                                              at com.android.tipitdemoapp.CameraPreviewActivity.printNd4jArray(CameraPreviewActivity.java:69) \r\n                                                                              at com.android.tipitdemoapp.CameraPreviewActivity.onCreate(CameraPreviewActivity.java:58) \r\n                                                                              at android.app.Activity.performCreate(Activity.java:5998) \r\n                                                                              at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1111) \r\n                                                                              at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2447) \r\n                                                                              at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2556) \r\n                                                                              at android.app.ActivityThread.access$800(ActivityThread.java:176) \r\n                                                                              at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1437) \r\n                                                                              at android.os.Handler.dispatchMessage(Handler.java:111) \r\n                                                                              at android.os.Looper.loop(Looper.java:194) \r\n                                                                              at android.app.ActivityThread.main(ActivityThread.java:5578) \r\n                                                                              at java.lang.reflect.Method.invoke(Native Method) \r\n                                                                              at java.lang.reflect.Method.invoke(Method.java:372) \r\n                                                                              at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:956) \r\n                                                                              at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:751) \r\n                                                                           Caused by: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file \"/data/app/com.android.tipitdemoapp-2/base.apk\"],nativeLibraryDirectories=[/data/app/com.android.tipitdemoapp-2/lib/arm64, /vendor/lib64, /system/lib64]]] couldn't find \"libnd4jcpu.so\"\r\n                                                                              at java.lang.Runtime.loadLibrary(Runtime.java:366)\r\n                                                                              at java.lang.System.loadLibrary(System.java:989)\r\n                                                                              at org.bytedeco.javacpp.Loader.loadLibrary(Loader.java:963)\r\n                                                                              at org.bytedeco.javacpp.Loader.load(Loader.java:752)\r\n                                                                              at org.bytedeco.javacpp.Loader.load(Loader.java:671) \r\n                                                                              at org.nd4j.nativeblas.Nd4jCpu.<clinit>(Nd4jCpu.java:10) \r\n                                                                              at java.lang.Class.classForName(Native Method) \r\n                                                                              at java.lang.Class.forName(Class.java:308) \r\n                                                                              at org.bytedeco.javacpp.Loader.load(Loader.java:726) \r\n                                                                              at org.bytedeco.javacpp.Loader.load(Loader.java:671) \r\n                                                                              at org.nd4j.nativeblas.Nd4jCpu$NativeOps.<clinit>(Nd4jCpu.java:62) \r\n                                                                              at java.lang.Class.classForName(Native Method) \r\n                                                                              at java.lang.Class.forName(Class.java:308) \r\n                                                                              at java.lang.Class.forName(Class.java:272) \r\n                                                                              at org.nd4j.nativeblas.NativeOpsHolder.<init>(NativeOpsHolder.java:29) \r\n                                                                              at org.nd4j.nativeblas.NativeOpsHolder.<clinit>(NativeOpsHolder.java:19) \r\n                                                                              at org.nd4j.linalg.cpu.nativecpu.ops.NativeOpExecutioner.<init>(NativeOpExecutioner.java:43) \r\n                                                                              at java.lang.reflect.Constructor.newInstance(Native Method) \r\n                                                                              at java.lang.Class.newInstance(Class.java:1572) \r\n                                                                              at org.nd4j.linalg.factory.Nd4j.initWithBackend(Nd4j.java:5784) \r\n                                                                              at org.nd4j.linalg.factory.Nd4j.initContext(Nd4j.java:5694) \r\n                                                                              at org.nd4j.linalg.factory.Nd4j.<clinit>(Nd4j.java:184) \r\n                                                                              at com.android.tipitdemoapp.CameraPreviewActivity.printNd4jArray(CameraPreviewActivity.java:69) \r\n                                                                              at com.android.tipitdemoapp.CameraPreviewActivity.onCreate(CameraPreviewActivity.java:58) \r\n                                                                              at android.app.Activity.performCreate(Activity.java:5998) \r\n                                                                              at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1111) \r\n                                                                              at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2447) \r\n                                                                              at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2556) \r\n                                                                              at android.app.ActivityThread.access$800(ActivityThread.java:176) \r\n                                                                              at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1437) \r\n                                                                              at android.os.Handler.dispatchMessage(Handler.java:111) \r\n                                                                              at android.os.Looper.loop(Looper.java:194) \r\n                                                                              at android.app.ActivityThread.main(ActivityThread.java:5578) \r\n                                                                              at java.lang.reflect.Method.invoke(Native Method) \r\n                                                                              at java.lang.reflect.Method.invoke(Method.java:372) \r\n                                                                              at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:956) \r\n                                                                              at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:751) \r\n10-25 16:19:29.195 748-769/system_process E/ActivityManager: Invalid thumbnail dimensions: 384x384\r\n10-25 16:19:29.508 748-748/system_process E/WifiTrafficPoller: TRAFFIC_STATS_POLL true Token 2533 num clients 9\r\n10-25 16:19:29.509 748-748/system_process E/WifiTrafficPoller:  packet count Tx=446904 Rx=907558\r\n10-25 16:19:29.574 30298-30298/? E/Parcel: Reading a NULL string not supported here.\r\n10-25 16:19:30.066 1936-1863/com.google.android.gms.persistent E/NetworkScheduler.SR: Unrecognised action provided: android.intent.action.PACKAGE_REMOVED\r\n10-25 16:19:30.510 748-748/system_process E/WifiTrafficPoller: TRAFFIC_STATS_POLL true Token 2533 num clients 9\r\n10-25 16:19:30.510 748-748/system_process E/WifiTrafficPoller:  packet count Tx=446904 Rx=907558\r\n10-25 16:19:30.878 19750-20792/com.google.android.gms E/Parcel: Reading a NULL string not supported here.\r\n10-25 16:19:30.974 30408-30408/? E/Parcel: Reading a NULL string not supported here.\r\n10-25 16:19:31.349 748-860/system_process E/WifiStateMachine:  ConnectedState (when=-3ms what=131155 arg1=645!CMD_RSSI_POLL 645 0 \"kowo-guest\" 06:18:d6:87:66:81 rssi=-61 f=2462 sc=60 link=65 tx=2,3, 0,0, 0,0  rx=1,5 bcn=0 [on:0 tx:0 rx:0 period:3003] from screen [on:0 period:1404050453] gl hn u24 rssi=-56 ag=0 hr ticks 0,0,2 ls-=0 [56,56,56,56,61] brc=0 lrc=0\r\n10-25 16:19:31.350 748-860/system_process E/WifiStateMachine:  L2ConnectedState (when=-5ms what=131155 arg1=645!CMD_RSSI_POLL 645 0 \"kowo-guest\" 06:18:d6:87:66:81 rssi=-61 f=2462 sc=60 link=65 tx=2,3, 0,0, 0,0  rx=1,5 bcn=0 [on:0 tx:0 rx:0 period:1] from screen [on:0 period:1404050454] gl hn u24 rssi=-56 ag=0 hr ticks 0,0,2 ls-=0 [56,56,56,56,61] brc=0 lrc=0\r\n```"}}
{"actor":{"display_login":"Rehckover"}}