59731

Could not extract native JNI library

Question:

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

<blockquote>

ionic build android

</blockquote>

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.

Answer1:

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.

Answer2:

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'

Recommend

  • Windows 10 Android Studio installation jdk error
  • Netbeans IDE - invalid jdkhome specified
  • RabbitMQ java client stops consuming messages
  • Install phpMongo Drivers on windows
  • Cordova Apache wrong module path
  • ASPNetCore MVC Routing Let Server Handle Specific Route
  • Merge Module leaving files during uninstall
  • apply a javascript function to draggable copy
  • Jenkins Grails plugin does not list lastest versions of Grails
  • Is it possible to define rest argument in OCaml?
  • How to get links to open in the native browser in iOS Meteor apps?
  • OSX - always hide certain files
  • Function calls are not supported. Consider replacing the function or lambda with a reference to an e
  • Compiling dlib on OS X
  • How to generate and display a QR Code in ionic 2
  • How do I configure context broker accept post requests from my remote sensor?
  • gspread or such: help me get cell coordinates (not value)
  • java inputstream
  • Make VS2015 use angular-cli ng at build time in a .NET project
  • Is it possible to access block's scope in method?
  • The plugin 'org.apache.maven.plugins:maven-jboss-as-plugin' does not exist or no valid ver
  • RectangularRangeIndicator format like triangular using dojo
  • Bug in WPF DataGrid
  • TFS: Get latest causes slow project reloading
  • Cross-Platform Protobuf Serialization
  • Javascript Callbacks with Object constructor
  • Can I make an Android app that runs a web view in Chrome 39?
  • Can I have the cursor start on a particular column by default in jqgrid's edit mode?
  • Updated Ionic CLI but shows previous version (Windows)
  • How to make Safari send if-modified-since header?
  • Numpy divide by zero. Why?
  • How to format a variable of double type
  • Error creating VM instance in Google Compute Engine
  • Hits per day in Google Big Query
  • coudnt use logback because of log4j
  • FormattedException instead of throw new Exception(string.Format(…)) in .NET
  • Linking SubReports Without LinkChild/LinkMaster
  • XCode 8, some methods disappeared ? ex: layoutAttributesClass() -> AnyClass
  • JaxB to read class hierarchy
  • Converting MP3 duration time