anandmeher / robotium

Automatically exported from code.google.com/p/robotium
0 stars 0 forks source link

No such property: sourceFile for class: org.gradle.api.tasks.Copy_Decorated #645

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Updated android studio to v1.0.2
2.build.gradle error
3.Error:(57, 0) No such property: sourceFile for class: 
org.gradle.api.tasks.Copy_Decorated

In copy task 
Error:(57, 0) No such property: sourceFile for class: 
org.gradle.api.tasks.Copy_Decorated

What version of the product are you using? On what operating system?
robotium-solo-5.2.2-SNAPSHOT.jar, win 7

Please provide any additional information below.

gradle code:

buildscript {
    repositories {

        mavenCentral()
        flatDir {
            dirs 'libs'
        }
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:1.0.0+'
    }
}

apply plugin: 'android'
repositories {
    mavenCentral()
    flatDir {
        dirs 'libs'
    }
}

dependencies {
    androidTestCompile fileTree(dir: 'libs', include: '*.jar')
}

android {
    compileSdkVersion 'android-19'
    buildToolsVersion '19.1'

    android {
        defaultConfig {
            minSdkVersion 14
        }

        lintOptions {
            abortOnError false
        }
        sourceSets
                {
                    androidTest
                            {
                                res.srcDirs = ['res']
                                assets.srcDirs = ['assets']
                            }
                }
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFile getDefaultProguardFile('proguard-android.txt')
        }
    }
}
task assembleDebug(overwrite: true) {}

task copyTask (type: Copy) {
    sourceFile = 'C:/Users/Shivam/Desktop/avd/Apks/debjh.apk'
    destDir    = 'build/outputs/apk/'
    destName   = 'RecorderApplicationTest-debug.apk'

    from sourceFile
    into destDir

    rename {
        destName
    }
}

assembleDebug.dependsOn copyTask

Original issue reported on code.google.com by shiva...@triveous.com on 26 Dec 2014 at 6:40

GoogleCodeExporter commented 9 years ago
Please update Robotium Recorder through Android Studio. 

https://www.jetbrains.com/idea/help/installing-updating-and-uninstalling-reposit
ory-plugins.html#d1282549e247

Original comment by renasr...@gmail.com on 26 Dec 2014 at 3:54