Could not extract native JNI library

2019-09-13 01:33发布

I'm trying to create en .apk from the node.js command promt with:

ionic build android

For some reason I get the: Could not extract native JNI library error. Does anyone know how to fix this?

I have the 1.8.0._101 of Java installed and the latest Android Studio.

2条回答
戒情不戒烟
2楼-- · 2019-09-13 02:00

In my case - just running gradlew from the (windows) commandline - the problem was caused by a setting, probably my HOME or HOMEPATH, with special characters in it (a double exclamation mark).

And the problem was resolved by adding a line to gradlew.bat, just below the 'set CLASSPATH ...' line:

'set GRADLE_USER_HOME=%APP_HOME%gradle\user'
查看更多
狗以群分
3楼-- · 2019-09-13 02:07

By simply making a new fresh install of JAVA, cleaning the cache and not using the bleeding-edge version of node.js I solved this.

查看更多
登录 后发表回答