StephenBlackWasAlreadyTaken / xDrip

Android Application that collects dex signals, allows calibrations, and uploads
GNU General Public License v3.0
209 stars 176 forks source link

Gradle UnsupportedMethodException #7

Closed scottleibrand closed 9 years ago

scottleibrand commented 9 years ago

Any idea how to get around this? Alternatively, any chance you could make the latest version available as an .apk in the Releases section of GitHub?

UnsupportedMethodException Failed to set up Android modules in project 'DexDrip': Unsupported method: BaseArtifact.getJavaCompileTaskName(). The version of Gradle you connect to does not support that method. To resolve the problem you can change/upgrade the target version of Gradle you connect to. Alternatively, you can ignore this exception and read other information from the model.

StephenBlackWasAlreadyTaken commented 9 years ago

What version of Android studio are you using? On Dec 14, 2014 9:08 PM, "Scott Leibrand" notifications@github.com wrote:

Any idea how to get around this? Alternatively, any chance you could make the latest version available as an .apk in the Releases section of GitHub?

UnsupportedMethodException Failed to set up Android modules in project 'DexDrip': Unsupported method: BaseArtifact.getJavaCompileTaskName(). The version of Gradle you connect to does not support that method. To resolve the problem you can change/upgrade the target version of Gradle you connect to. Alternatively, you can ignore this exception and read other information from the model.

— Reply to this email directly or view it on GitHub https://github.com/StephenBlackWasAlreadyTaken/DexDrip/issues/7.

StephenBlackWasAlreadyTaken commented 9 years ago

If using the new android studio 1 it shouuuld work. (android studio is kind of a pain) Also if you pulled it earlier than today you will probably want to do another pull

In the apps build.gradle, where the entire release section should be commented out (proguard stuff) until I get proguard stuff in there.

the whole file should look like this

apply plugin: 'com.android.application'

android {
    compileSdkVersion 21
    buildToolsVersion "20.0.0"

    defaultConfig {
        applicationId "com.eveningoutpost.dexdrip"
        minSdkVersion 18
        targetSdkVersion 21
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
//        release {
//            runProguard false
//            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
//        }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.google.code.gson:gson:2.3'
    compile 'com.squareup.retrofit:retrofit:1.7.1'
}
scottleibrand commented 9 years ago

Weee, I was still on 0.8.9. Downloading 1 now.

StephenBlackWasAlreadyTaken commented 9 years ago

:+1: Let me know how it goes, I have not run it from scratch in quite a while, sorry a lot of the ui is neglected (time pickers especially!)

StephenBlackWasAlreadyTaken commented 9 years ago

also as android studio likes to 'help' and try to 'fix' things for you, you will probably want to git stash and git pull once you have android studio 1 downloaded. It probably made some less than helpful changes to your gradle files!

StephenBlackWasAlreadyTaken commented 9 years ago

Oo also, on the scan for bt page, use the top scan button, the bottom one is a decoy! On Dec 14, 2014 9:46 PM, "Stephen Black" stephen@shopkeep.com wrote:

What version of Android studio are you using? On Dec 14, 2014 9:08 PM, "Scott Leibrand" notifications@github.com wrote:

Any idea how to get around this? Alternatively, any chance you could make the latest version available as an .apk in the Releases section of GitHub?

UnsupportedMethodException Failed to set up Android modules in project 'DexDrip': Unsupported method: BaseArtifact.getJavaCompileTaskName(). The version of Gradle you connect to does not support that method. To resolve the problem you can change/upgrade the target version of Gradle you connect to. Alternatively, you can ignore this exception and read other information from the model.

— Reply to this email directly or view it on GitHub https://github.com/StephenBlackWasAlreadyTaken/DexDrip/issues/7.

scottleibrand commented 9 years ago

I got to the point of doing a scan, but it's not finding anything. Why is it scanning for BT in the first place? I'm using a Wixel, not BT.

StephenBlackWasAlreadyTaken commented 9 years ago

Are you planning on plugging the wixel into the phone? The app usually uses bluetooth to get packets the wixel caught, the phone won't be able to see the wixel on its own. I'm not entirely sure of the setup you are going for setup wise (if its wixel to raspberry pi then you won't need the android app, just access to your db (is it hosted on the pi?) On Dec 14, 2014 11:18 PM, "Scott Leibrand" notifications@github.com wrote:

I got to the point of doing a scan, but it's not finding anything. Why is it scanning for BT in the first place? I'm using a Wixel, not BT.

— Reply to this email directly or view it on GitHub https://github.com/StephenBlackWasAlreadyTaken/DexDrip/issues/7#issuecomment-66948264 .

StephenBlackWasAlreadyTaken commented 9 years ago

Full setup info is here

info on the bt to wixel setup is here

Final product looks like this: wixel-bt

saercnap commented 9 years ago

After updating Android Studio/etc, the originally reported issue was resolved for me.

trallallero commented 9 years ago

Where can I find the version 1 of android stdudio ? I'm on 0.8.6 and it tells me that it's the latest.

StephenBlackWasAlreadyTaken commented 9 years ago

Should be here http://developer.android.com/sdk/index.html On Jan 5, 2015 3:32 AM, "trallallero" notifications@github.com wrote:

Where can I find the version 1 of android stdudio ? I'm on 0.8.6 and it tells me that it's the latest.

— Reply to this email directly or view it on GitHub https://github.com/StephenBlackWasAlreadyTaken/DexDrip/issues/7#issuecomment-68679944 .

trallallero commented 9 years ago

Thanks but the question was more like "where did you find the version 1 from the studio update panel". I mean, why is it not updatable from the studio it self ? Anyway, android studio is a PITA on windows, I just use it in the free time at work. At home it's on Ubuntu 14.04 and no problems at all.

StephenBlackWasAlreadyTaken commented 9 years ago

It's a different build of Android studio (you have the latest of that build, the beta I believe) the same happens if you are on the canary builds. So unfortunately to get the release build its a new installation On Jan 5, 2015 6:32 AM, "trallallero" notifications@github.com wrote:

Thanks but the question was more like "where did you find the version 1 from the studio update panel". I mean, why is it not updatable from the studio it self ? Anyway, android studio is a PITA on windows, I just use it in the free time at work. At home it's on Ubuntu 14.04 and no problems at all.

— Reply to this email directly or view it on GitHub https://github.com/StephenBlackWasAlreadyTaken/DexDrip/issues/7#issuecomment-68696947 .

trallallero commented 9 years ago

Ok, thanks a lot for the info

StephenBlackWasAlreadyTaken commented 9 years ago

No problem! Sorry it's a pain! On Jan 5, 2015 7:11 AM, "trallallero" notifications@github.com wrote:

Ok, thanks a lot for the info

— Reply to this email directly or view it on GitHub https://github.com/StephenBlackWasAlreadyTaken/DexDrip/issues/7#issuecomment-68700259 .

trallallero commented 9 years ago

Not your fault (windows is a pain, especially 8) and I must say that android studio is imho the best editor that exists. It has the best "column mode" ever! Ok, OT, sorry. Ciao.

latheesh123 commented 7 years ago

Check this video this helped me solving this error

https://www.youtube.com/watch?v=L6bGVF1tzrQ