And re Java 8: you need to use Java 7 for compilation. The Android toolchain doesn't know how to work with Java 8 bytecode. The easiest place to change this is: right-click project > module settings > SDK location > JDK location > select Java <= 1.7
On Tue, Feb 23, 2016 at 12:56 AM, Ytai Ben-Tsvi <[email protected]> wrote: > Comment out the line that says compile > 'com.github.ytai.ioio:IOIOLibAndroidAccessory:5.05' > Then, comment out the line <meta-data > android:name="android.hardware.usb.action.USB_ACCESSORY_ATTACHED" > android:resource="@xml/accessory_filter" /> in the *original* > manifest file (the one found under src/main/AndroidManifest.xml). > > Sorry for the pain - the Android folks must have changed something in the > emulator and the emulator case is not something that I spend a whole lot of > time testing, since very few people use it. > > On Mon, Feb 22, 2016 at 11:46 PM, Ilan Tal <[email protected]> wrote: > >> Thanks Ytai. Maybe you will see something which I fail to see. >> I didn't know exactly how to disable the dependency so I found this >> >> >> http://www.codegur.net/32772252/using-jcenter-with-gradle-in-android-studio >> >> The solution here is to put in a specific call to www.sparetimelabs.com, >> which I tried. Unfortunately it didn't help. >> Then I saw what you probably mean in disabling dependences. >> >> apply plugin: 'com.android.application' >> >> buildscript { >> repositories { >> mavenCentral() >> } >> >> dependencies { >> classpath 'com.android.tools.build:gradle:1.3.0' >> } >> } >> >> android { >> buildToolsVersion "22.0.1" >> compileSdkVersion 19 >> } >> >> dependencies { >> compile 'com.github.ytai.ioio:IOIOLibAndroid:5.05' >> compile 'com.github.ytai.ioio:IOIOLibAndroidBluetooth:5.05' >> compile 'com.github.ytai.ioio:IOIOLibAndroidAccessory:5.05' >> compile 'com.github.ytai.ioio:IOIOLibAndroidDevice:5.05' >> } >> >> repositories { >> mavenCentral() >> jcenter() >> maven { >> url 'http://www.sparetimelabs.com/maven2' >> } >> } >> >> >> I commented out those compile dependences. That gave me an error in the >> AndroidManifest >> >> <meta-data >> android:name="android.hardware.usb.action.USB_ACCESSORY_ATTACHED" >> android:resource="@xml/accessory_filter" /> >> <meta-data >> android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED" >> android:resource="@xml/device_filter" /> >> >> >> I started to modify the AndroidManifest but got a message that any >> changes would be wiped out. However there is something interesting here. >> The error message complained about a usb problem and here are >> USB_ACCESSORY_ATTACHED and USB_DEVICE_ATTACHED which means it may be >> connected to the problem. >> >> Something else which I forgot to mention: my SDK is using Java 8. Could >> that be a problem? >> In any case, I am still stuck and need some help to get out of this mess. >> I'm sure that once it starts to work I will be OK, but getting it up and >> running is a real problem. >> >> Thanks, >> Ilan >> >> >> -- >> 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 [email protected]. >> To post to this group, send email to [email protected]. >> Visit this group at https://groups.google.com/group/ioio-users. >> For more options, visit https://groups.google.com/d/optout. >> > > -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/ioio-users. For more options, visit https://groups.google.com/d/optout.
