Have problems to run ioio on Android Studio

1,657 views
Skip to first unread message

Robis J

unread,
May 19, 2014, 11:03:33 AM5/19/14
to ioio-...@googlegroups.com
I try to run HelloIOIO on Android Studio and even i compile, copy apk and install it it not work ( no effect on led).
If I work on ADT (eclipse) it put me a lot of errors (didn't import some folders with java in IOIOLibAndroid, I put it manually; then need to redirect in all library  one to another; change target SDK ; ant then I get:
Description Resource Path Location Type
The project was not built since it depends on HelloIOIO, which has build path errors hio Unknown Java Problem
com.android.future cannot be resolved to a type Adapter.java /IOIOLibAccessory/src/ioio/lib/android/accessory line 129 Java Problem
com.android.future cannot be resolved to a type Adapter.java /IOIOLibAccessory/src/ioio/lib/android/accessory line 131 Java Problem
com.android.future cannot be resolved to a type Adapter.java /IOIOLibAccessory/src/ioio/lib/android/accessory line 123 Java Problem
com.android.future.usb.UsbManager cannot be resolved to a type Adapter.java /IOIOLibAccessory/src/ioio/lib/android/accessory line 123 Java Problem
The project cannot be built until build path errors are resolved IOIOLibBT Unknown Java Problem
error: Error: No resource found that matches the given name (at 'resource' with value '@xml/accessory_filter'). AndroidManifest.xml /hio line 32 Android AAPT Problem
error: Error: No resource found that matches the given name (at 'resource' with value '@xml/device_filter'). AndroidManifest.xml /hio line 34 Android AAPT Problem
The project cannot be built until build path errors are resolved HelloIOIO Unknown Java Problem
Using 1.7 requires compiling with Android 4.4 (KitKat); currently using API 17 hio line 1 Android ADT Problem
com.android.future cannot be resolved to a type Adapter.java /IOIOLibAccessory/src/ioio/lib/android/accessory line 141 Java Problem
UsbAccessory cannot be resolved to a type Adapter.java /IOIOLibAccessory/src/ioio/lib/android/accessory line 141 Java Problem
UsbAccessory cannot be resolved to a type Adapter.java /IOIOLibAccessory/src/ioio/lib/android/accessory line 149 Java Problem
UsbManager cannot be resolved to a type Adapter.java /IOIOLibAccessory/src/ioio/lib/android/accessory line 148 Java Problem
com.android.future.usb.UsbManager cannot be resolved to a type Adapter.java /IOIOLibAccessory/src/ioio/lib/android/accessory line 133 Java Problem
com.android.future.usb.UsbManager cannot be resolved to a type Adapter.java /IOIOLibAccessory/src/ioio/lib/android/accessory line 132 Java Problem
UsbManager cannot be resolved to a type Adapter.java /IOIOLibAccessory/src/ioio/lib/android/accessory line 140 Java Problem
UsbManager cannot be resolved to a type Adapter.java /IOIOLibAccessory/src/ioio/lib/android/accessory line 134 Java Problem
UsbManager cannot be resolved to a type Adapter.java /IOIOLibAccessory/src/ioio/lib/android/accessory line 161 Java Problem
com.android.future cannot be resolved to a type Adapter.java /IOIOLibAccessory/src/ioio/lib/android/accessory line 161 Java Problem
The project cannot be built until build path errors are resolved IOIOLibAndroidDevice Unknown Java Problem
The container 'Android Dependencies' references non existing library 'C:\Users\rjanickas\workspace\IOIOLibAccessory\bin\ioiolibaccessory.jar' HelloIOIO Build path Build Path Problem
com.android.future cannot be resolved to a type Adapter.java /IOIOLibAccessory/src/ioio/lib/android/accessory line 166 Java Problem
UsbManager cannot be resolved to a type Adapter.java /IOIOLibAccessory/src/ioio/lib/android/accessory line 155 Java Problem
com.android.future cannot be resolved to a type Adapter.java /IOIOLibAccessory/src/ioio/lib/android/accessory line 149 Java Problem
com.android.future cannot be resolved to a type Adapter.java /IOIOLibAccessory/src/ioio/lib/android/accessory line 156 Java Problem
UsbAccessory cannot be resolved to a type Adapter.java /IOIOLibAccessory/src/ioio/lib/android/accessory line 156 Java Problem

Ytai Ben-Tsvi

unread,
May 19, 2014, 12:08:36 PM5/19/14
to ioio-...@googlegroups.com
I haven't tried Android Studio. Eclipse should work.
This wiki page should have information on how to fix this error. Post again if it doesn't:


--
You received this message because you are subscribed to the Google Groups "ioio-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ioio-users+...@googlegroups.com.
To post to this group, send email to ioio-...@googlegroups.com.
Visit this group at http://groups.google.com/group/ioio-users.
For more options, visit https://groups.google.com/d/optout.

jsout...@idealss.com

unread,
Jun 11, 2014, 1:59:49 PM6/11/14
to ioio-...@googlegroups.com
I managed to get it to compile fine in Android Studio, but nothing actually works for communicating with IOIO.  A precompiled APK works fine while anything compiled using Android Studio does not.

Is there any plan to provide an Android Studio package at some point?

Ytai Ben-Tsvi

unread,
Jun 12, 2014, 4:07:50 PM6/12/14
to ioio-...@googlegroups.com

Android Studio is still in "early access preview" state. I'm not personally intending to spend time on moving before it becomes officially blessed with the goal of avoiding (both me and IOIO users) having to deal with problems related to it not fully mature. I'm willing to take patches for adding unofficial support if you're willing to spend the time to make them. Otherwise, I'd recommend you to use Eclipse.

Johannes Rieke

unread,
Jun 12, 2014, 7:59:53 PM6/12/14
to ioio-...@googlegroups.com
I am currently using AndroidStudio for development and for me it works fine with IOIO. I only had some trouble at importing and linking IOIOLib (tried it some time ago, maybe it works better now with a recent version of AndroidStudio). Eventually, I ended up simply copying the full source code of IOIOLib to the /src folder of my project and using it directly from there.

Arjav Desai

unread,
Jul 4, 2014, 1:39:30 PM7/4/14
to ioio-...@googlegroups.com

Hi Johannes! Did you have any issues while trying to compile Adapter.Java (Accessories package) in Android Studio? I am not facing the following error

Error:(133, 28) package com.android.future.usb does not exist

Can you please let me know how you solved it?

Ytai Ben-Tsvi

unread,
Jul 4, 2014, 4:21:42 PM7/4/14
to ioio-...@googlegroups.com

You need to use a "Google API" version of the Android SDK as the target for compiling IOIOLibAccessory.

Johannes Rieke

unread,
Jul 4, 2014, 4:51:35 PM7/4/14
to ioio-...@googlegroups.com
Hi Arjav,

Ytai is absolutely correct: In the Android SDK Manager, select and install the "Google APIs" field(s) for the Android versions you want. 
Then, in your AndroidStudio project, go to the build.gradle file (there are two of them, only one has the following field) and change the value of compileSdkVersion to "Google Inc.:Google APIs:?", where you replace the ? through the Android version number (19 for 4.4.2).

Best, Johannes


--
You received this message because you are subscribed to a topic in the Google Groups "ioio-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ioio-users/9NYodqRviKU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ioio-users+...@googlegroups.com.

Arjav Desai

unread,
Jul 6, 2014, 5:13:51 AM7/6/14
to ioio-...@googlegroups.com

Hi Ytai and Johannes,

Thanks a lot for your help. It worked! :)

Keenan Wurth

unread,
Sep 5, 2014, 1:43:44 AM9/5/14
to ioio-...@googlegroups.com
I have been having the same issue with package com.android.future.usb does not exist 

Tried changing the build.gradle to match what you guys have suggested but I am still getting the same issue.  When I first updated it to buildToolsVersion '19.0.0' I got an error suggesting that I rebuild for 19.1.0.  Tried leaving it on 19 and moving over to 19.1.0 with no luck.  Any ideas guys?

apply plugin: 'android-library'

android {
    compileSdkVersion 19
    buildToolsVersion '19.1.0'

    defaultConfig {
        applicationId "ioio.lib.accessory"
    }

    buildTypes {
        release {
            runProguard false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
        }
    }
}

dependencies {
    compile project(':iOIOLibAndroid')

Ytai Ben-Tsvi

unread,
Sep 9, 2014, 12:59:58 PM9/9/14
to ioio-...@googlegroups.com
This package only exists in the Google APIs version of the Android runtime. You're probably linking against the standard one instead.

Johannes Rieke

unread,
Sep 18, 2014, 7:43:23 PM9/18/14
to ioio-...@googlegroups.com
Hi Keenan,

seen your mail just now. In case you haven't fixed it yourself yet: Replace

compileSdkVersion 19

with

compileSdkVersion "Google Inc.:Google APIs:19"

Maybe you also have to download the Google APIs version of the SDK in your SDK manager (although I think AndroidStudio should do that automatically).
Hope it works!

Best,
Johannes

Justin H

unread,
Mar 28, 2015, 6:38:04 PM3/28/15
to ioio-...@googlegroups.com
New to IOIO, and returning to android programming after a long break trying to get up and running using android studio.

I have tried the above, and all I get is:

Error:Could not normalize path for file 'C:\Users\Shannon\AndroidStudioProjects\HelloIOIO2\iOIOLibAndroid\build\intermediates\mockable-Google Inc.:Google APIs:19.jar'.
The filename, directory name, or volume label syntax is incorrect

Any suggestions?

Ytai Ben-Tsvi

unread,
Mar 28, 2015, 11:15:22 PM3/28/15
to ioio-...@googlegroups.com
As noted earlier on this thread, until I add proper support for Android Studio, I strongly recommend that you use Eclipse unless you're super proficient with both Android Studio and the structure of the IOIO libraries.

Justin H

unread,
Mar 29, 2015, 12:22:31 AM3/29/15
to ioio-...@googlegroups.com
Learning the hardway I should have started with Eclipse.

I did solve this. It is a gradle plugin problem.

Adding this to the build.gradle for the project:

classpath 'com.android.tools.build:gradle:1.1.2'

so it looks like this:

dependencies {
        classpath 'com.android.tools.build:gradle:1.1.2'
Reply all
Reply to author
Forward
0 new messages