RobotiumTech / robotium

Android UI Testing
http://www.robotium.org
Apache License 2.0
2.86k stars 786 forks source link

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

Closed renas closed 9 years ago

renas commented 9 years ago

From shiva...@triveous.com on December 25, 2014 22:40:09

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: http://code.google.com/p/robotium/issues/detail?id=645

renas commented 9 years ago

From renasr...@gmail.com on December 26, 2014 07:54:39

Please update Robotium Recorder through Android Studio. https://www.jetbrains.com/idea/help/installing-updating-and-uninstalling-repository-plugins.html#d1282549e247

Status: Invalid
Owner: renasr...@gmail.com