Adding IOIO-OTG Libraries.

I am a new with Intelij. I have created a project and imported the IOIO libraries (https://github.com/ytai/ioio/wiki/Downloads). Everything complies without error. But when I add "import ioio.lib.api.DigitalOutput" to "mainActivity.java" and complie the project I get an Gradle error. When I execute "Gradlew compiledebug --debug" on the command line I get an error saying "package ioio.lib.api does not exist". I believe that I need to modify my "gradle.build" file but I don't know what changes I need to make to correct the issue. Please note that when I remove "import ioio.lib.api.DigitalOutput" from my "mainActivity.java" then I get no Gradle errors. Is there anyone out there that can help me with this issue?

4 comments

Hi Brett,

Gradle has a good reference documentation. You can start from this section.

Denis

0

Denis,

Thank you for the helpful link. Before coming to this forum for help I did vist that link. But sadly I still was not able to figure things out. Thank you again for your help. I will keep working on the issue.

0

8.2. Declaring your dependencies has an example which illustrates what should be done. Basically, you need to specify 'compile dependency' with target group, name and version

Denis

0

Denis,


Thank you again for the link. Sadly I have visited this section many time and no matter how many times I read the section and try to adding dependencies I still can't resolve the error I get. The error is always the same (see my first post).

Thank you again. I will keep trying.

0

Please sign in to leave a comment.