gradle - Android Studio 0.8 - No longer runs custom tasks -


I have upgraded Android Studio 0.6 to 0.8.3 (Linux Mint 15) and now my build does not work Having been expected In my gradle file I have several custom functions that prebuild steps (copying files, resizing images etc.)

  // Multiple Convert ToGGS (Type: Exec) {ext. Srcdir = 'bb / src / main / buildAssets / wavs /' ext.destDir = 'bb / src / main / res / raw /' workingDir '..' command line 'python', 'script / convertToOGG.py', srcDir, DestDir} gradle.projectsEvaluated {copyRes.dependsOn resizeImageIcon convertToOGG.dependsOn copyRes preBuild.dependsOn copyRes, convertToOGG}  

These IDEs do not run any more by default, they are the dependencies of the preblog step , But if I run the preBuild step manually in the IDE, then it does not:

  Perform the task: [preBuild] On the configuration on demand an incubation The feature is. Depending on packaging dependent main artifact, defining the extension has been deprecated and is scheduled to be removed in Gradle 2.0: BB: prebuild: libraries: bbengine: prebuild: libraries: facebook: prebuild creation successful total time : 2.296 seconds  

This is like gradle.projects. Assessed blocks will no longer run. Oddly if I run it in a terminal then it works:

  pickle / sirius / workspace / bb / code / trunk / bb $ / Gradlew prebuild has been deprecated depending on the packaging to define the detail of the main artifact and has been scheduled to extract into Gradle 2.0: BB: resizeImageIcon / workspace / babybot / code / trunk / bbProject resize Image: bb / src / main / buildAssets / large size / image_icon.png (1024, 1024) RGBA target: 5 bb / src / main / buildAssets / res / drawable-xxhdpi / ic_launcher.png (144, 144) BB / Src / main / buildAssets / res / drawable-xxhdpi / ic_launcher.png A (144, 144) version saved for Bibi / src / main / buildAssets / res / drawable-xh Dpi / ic_launcher.png (96, 96) bb / src / main / buildAssets / res / drawable-xhdpi / ic_launcher.png save one (96, 96) version to bb / src / main / buildAssets / res / A (72, 72) version saved for drawable-hdpi / ic_launcher.png (72, 72) BB / src / main / buildAssets / res / drawable-hdpi / ic_launcher.png BB / src / main / buildAssets / res / A (48, 48) version saved for Bibi / src / main / buildAssets / re for a Bibi / src / main / buildAssets / res / (36, 36) for drawable-mdpi / ic_launcher.png (48, 48) Version is saved / 36/36/36/36 / drawable-ldpi / ic_launcher.png: BB: copyRes up to date: BB: type "list", length 106 wa Opening with the module moduleToOGG Skipping part: WAV file reader encoding "audio_robot_jump.wav" from "audio_robot_jump.ogg" 3.00 [79.6%] of quality [0m00s balance] / encoding file "audio_robot_jump.ogg" File length Done: 0m 02.0s Elapsed time: 0m 00.1s Rate: 39.5641 Average bitrate: 48.3 KB / s: BB: prebuild: libraries: bbengine: prebuild: library: Facebook: prebilled build succeeds Total time: 15.619 seconds  

Can anyone help? Thanks

I have decided by changing it:

  gradle.projectsEvaluated {CopyRes.dependsOn resizeImageIconConvertToOGGDeepDon on copyRes preBuild.depends copyRes, convertToOGG}  

for

  copyRes.dependsOn resizeImageIcon convertOGG.DependOn copyRes preBuild.dependsOn CopyRes, Convert Oogg  

Comments

Popular posts from this blog

sqlite3 - UPDATE a table from the SELECT of another one -

c# - Showing a SelectedItem's Property -

javascript - Render HTML after each iteration in loop -