Giter Club home page Giter Club logo

Comments (4)

gary-rowe avatar gary-rowe commented on July 29, 2024

Have you tried using the latest code in the develop branch? There have been a few updates to the hidapi library that haven't been merged into master yet.

from hid4java.

koushikbiz avatar koushikbiz commented on July 29, 2024

Thanks Gary. Is there a way I can use the develop branch in my Gradle project without cloning the repo?
I tried with below 2 approaches:
//Approach 1 - JitPack in build.gradle
repositories {
jcenter()
mavenLocal()
mavenCentral()
maven { url 'https://jitpack.io' }
}

dependencies {
...
implementation('org.hid4java:hid4java:develop-SNAPSHOT')
...
}
//Approach 2 - Gradle plugin in settings.gradle
plugins {
id 'com.alexvasilkov.git-dependencies' version '2.0.1'
}

and the following in build.gradle:
git {
implementation 'https://github.com/gary-rowe/hid4java.git', {
tag 'develop'
}
}

In both cases Gradle is not able to resolve hid4java. I tried without JitPack and with the dependency only as per https://github.com/gary-rowe/hid4java/wiki/FAQ#gradle-project but see error "Could not find org.hid4java:hid4java:develop-SNAPSHOT"

from hid4java.

koushikbiz avatar koushikbiz commented on July 29, 2024

Hi Gary,
To get around the above problem of adding develop-SNAPSHOT as a dependency, I downloaded and copied the java files from src/main/java/org/hid4java to my project workspace. Also copied the darwin libraries to my project src/main/resources folder. Changed the package pointers in files accordingly. But I still see the same output (i.e read(...) returns -2 and Device not initialised for other details) when I run the program. Any suggestion?
image

from hid4java.

gary-rowe avatar gary-rowe commented on July 29, 2024

Closing due to inactivity.

from hid4java.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.