I wanted to migrate from the eclipse to the studio. I followed the tutorial and tried to create an existing eclipse application in the studio using gradle. Before executing this comment, I ran into the following problem:
Rethinavels-Mac-mini:HomeStarProvider rethinavel$ ./gradlew clean
I am new to studio and gradle. How to fix it? Any tutorials for learning gradle?
FAILURE: assembly failure with exception.
Where: Create the file '/Users/rethinavel/Desktop/WorkSpace/HomeStarProvider/Volley/build.gradle': 9
What went wrong: There was a problem evaluating the Volley project.
Could not find testPackageName () method for [com.android.volley.tests] arguments in ProductFlavor_Decorated {name = main, minSdkVersion = null, targetSdkVersion = null, renderscriptTargetApi = null,
renderscriptSupportModeEnabled = null, renderscriptNdkModeEnabled = null, versionCode = null, versionName = null, applicationId = null, testApplicationId = null, testInstrumentationRunner = null, testHandleProfiling = null, testFunctionalTest = nullFullFullFullFig = {}, MProguardFiles = [], mConsumerProguardFiles = [], mManifestPlaceholders = {}}.
Here is the Build.gradle file.
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.0.+'
}
}
apply plugin: 'android'
dependencies {
compile fileTree(dir: 'libs', include: '*.jar')
compile project(':SliderLibrary')
compile project(':Volley')
compile project(':Google Play Services Library')
compile project(':viewanimationLibrary')
}
android {
compileSdkVersion 19
buildToolsVersion "20.0.0"
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = ['src']
resources.srcDirs = ['src']
aidl.srcDirs = ['src']
renderscript.srcDirs = ['src']
res.srcDirs = ['res']
assets.srcDirs = ['assets']
}
androidTestCompile.setRoot('tests')
debug.setRoot('build-types/debug')
release.setRoot('build-types/release')
}
productFlavors {
flavor1 {
applicationId "com.homestar.provider"
}
}
}
source
share