build.gradle

ActionBar Sherlock with Android Studio 0.2.2

醉酒当歌 提交于 2019-11-27 07:12:12
问题 I am developing a demo app using ActionBar Sherlock and Android Studio. Android Studio Version is 0.2.2, gradle version is 1.6 and plugin version is 0.5.1 and i am following these tutorials :- www.grokkingandroid.com showlabor.blogspot.ca i am getting following error :- Gradle: Execution failed for task ':libraries:ActionBarSherlock:actionbarsherlock:compileReleaseAidl'.tried to access class com.android.build.gradle.internal.tasks.DependencyBasedCompileTask$DepFileProcessor from class com

Android tests build error: Multiple dex files define Landroid/support/test/BuildConfig

旧时模样 提交于 2019-11-27 07:07:30
I'm trying to add Espresso 2 to my project (which also has lots of other dependencies), but I'm hitting this error when trying to run tests: UNEXPECTED TOP-LEVEL EXCEPTION: com.android.dex.DexException: Multiple dex files define Landroid/support/test/BuildConfig; at com.android.dx.merge.DexMerger.readSortableTypes(DexMerger.java:596) at com.android.dx.merge.DexMerger.getSortedTypes(DexMerger.java:554) at com.android.dx.merge.DexMerger.mergeClassDefs(DexMerger.java:535) ... The non-test build works fine. Does anybody have any tips on the best way to debug this? I've tried running ./gradlew -q :

Android build gradle is too slow (Dependency Resolution)

☆樱花仙子☆ 提交于 2019-11-27 06:47:38
I've been working with Android Studio (my current version 1.5) for 2 years. Everything was OK, but when I downloaded Canary (2.1 p5), everything went wrong. Every time I want to create a new project or open a project or sync or import a new lib or dependency, gradle is taking too long to build — nearly 20 min . I did not do anything, I just downloaded the Canary version and ran it. Symptoms : It happened when I connected to Internet The first delay is on Gradle: Resolve dependencies ':app:_debugCompile' ... After 25 min building almost done Note : When I disconnect my Internet, gradle will

How to add ojdbc7 to Java web app by Gradle?

天涯浪子 提交于 2019-11-27 06:20:07
问题 My context: I build a Java web application what based on Spring Boot 1.3.5.RELEASE . I try to add ojdcb to dependencies list but not success. I know that Oracle has own Maven repository at http://maven.oracle.com This is my build.gradle file, Let focus at line 4, 5, 6, 36: buildscript { repositories { mavenCentral() maven { url ("https://maven.oracle.com") } } dependencies { classpath("org.springframework.boot:spring-boot-gradle-plugin:1.3.5.RELEASE") } } apply plugin: 'war' apply plugin:

Copy existing project with a new name in Android Studio

送分小仙女□ 提交于 2019-11-27 06:17:40
I would like to copy my Android project and create a new project from the same files just with a different name. The purpose of this is so I can have a second version of my app which is ad supported in the app store. I found this answer here: Android - copy existing project with a new name But it's for Eclipse. How can I do this in Android Studio? free3dom The steps in the link you specified should also work for Android Studio. Just make a copy (using a file manager) of the entire module folder and give it a new name. Now open it up and use Refactor -> Rename (right click on the item you want

Jacoco offline instrumentation Gradle script

拜拜、爱过 提交于 2019-11-27 06:10:10
问题 I tried looking for Jacoco offline instrumentation gradle script snippets but couldn't find one. Is it possible to do Jacoco offline instrumentation through gradle scripts ? If yes...An example of it would be greats. Thanks. 回答1: Here is an example of Gradle script that performs offline instrumentation using JaCoCo Ant Task: apply plugin: 'java' configurations { jacoco jacocoRuntime } dependencies { jacoco group: 'org.jacoco', name: 'org.jacoco.ant', version: '0.7.9', classifier: 'nodeps'

Could not find com.android.tools.build.gradle:3.0.0-alpha7

余生颓废 提交于 2019-11-27 05:51:10
问题 I update the gradle plugin to the latest, and i'm getting this error: Error:Could not find com.android.tools.build.gradle:3.0.0-alpha7:. Searched in the following locations: file:/C:/Users/dmin/Documents/android-studio/gradle/m2repository/com/android/tools/build/gradle/3.0.0-alpha7//3.0.0-alpha7-.pom file:/C:/Users/dmin/Documents/android-studio/gradle/m2repository/com/android/tools/build/gradle/3.0.0-alpha7//3.0.0-alpha7-.jar https://jcenter.bintray.com/com/android/tools/build/gradle/3.0.0

Gradle: Error: more than one library with package name 'com.google.android.gms'

别说谁变了你拦得住时间么 提交于 2019-11-27 05:32:38
问题 What does this error message mean? I don't have duplicated packages in my project Error:Execution failed for task ':SimpleReader:processDebugResources'. Error: more than one library with package name 'com.google.android.gms' You can temporarily disable this error with android.enforceUniquePackageName=false However, this is temporary and will be enforced in 1.0 My build.gradle looks like this: buildscript { repositories { maven { url 'http://repo1.maven.org/maven2' } mavenCentral() }

Gradle Build Android Project “Could not resolve all dependencies” error

这一生的挚爱 提交于 2019-11-27 05:13:47
问题 I'm trying to build my first project with Gradle and I think my gradle files and settings are correct. I'm using only one module and Support V4 + AppCompatBar libraries. Project - build.gradle allprojects { repositories { mavenCentral() } } Project - settings.gradle include ':AssignmentTempos21' Main module - build.gradle buildscript { repositories { mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:0.5.+' } } apply plugin: 'android' repositories { mavenCentral() }

build.gradle and project libs

喜夏-厌秋 提交于 2019-11-27 05:04:44
I have a project in android studio that uses a project library. My problem is the configuartion of the gradle files. I really tried a lot of solution that were posted here ( define modul in project lib in settings as modul , sherlock example , setting right sourcesets ...), but I always get the same error (as soon as I add the lib debendency to my apps build.gradle file): A problem occurred configuring project ':MyApp'. > Failed to notify project evaluation listener. > Configuration with name 'default' not found. I already did a clean and build from command line, but this has no effect. Is it