build.gradle

Referencing external library projects in Android Studio (v0.8.9)

南楼画角 提交于 2019-12-09 07:18:28
问题 I have a custom library that needs to be referenced in about 10 projects. Everything works fine in Eclipse but I want to migrate them to Android Studio in order to take advantage of the build system. I've already check Android studio add external project to build.gradle How to share a single library source across multiple projects and some other links and docs in Gradleware but I don't get to make my projects compile. My file structure is like: +projects |+libraryProject |+---workspace |+----

Findbugs android gradle plugin

…衆ロ難τιáo~ 提交于 2019-12-09 05:36:05
问题 I have an android project. I want to introduce findbugs in my project as a gradle plugin. I tried to edit the project's build.gradle as below. buildscript { repositories { mavenCentral() maven { url 'https://maven.fabric.io/public' } } dependencies { classpath 'com.android.tools.build:gradle:1.0.0+' classpath 'io.fabric.tools:gradle:1.+' } } apply plugin: "java" apply plugin: "findbugs" findbugs { toolVersion = "2.0.1" sourceSets = [sourceSets.main] ignoreFailures = false reportsDir = file("

Configure Gradle to execute custom build step before starting compilation

自作多情 提交于 2019-12-09 04:55:31
问题 I've started using Gradle today and after searching for an hour and trying every possible answer from SO (e.g. 1) and different blogs (e.g. 2) and documentations (e.g. 3) I need some help. My question is simple: How to execute a custom build-step (in my case the execution of ndk-build with a customized Android.mk) as part of the regular build-process? The build.gradle looks like this: import org.apache.tools.ant.taskdefs.condition.Os apply plugin: 'com.android.application' android {

ext in buildscript can not be recognised by Gradle Kotlin DSL

[亡魂溺海] 提交于 2019-12-09 04:32:24
问题 In these days, I am trying to write some codes to experience the Spring reactive features and kotlin extension in Spring 5, and I also prepared a gradle Kotlin DSL build.gradle.kt to configure the gradle build. The build.gradle.kt is converted from Spring Boot template codes generated by http://start.spring.io. But the ext in the buildscript can not be detected by Gradle. buildscript { ext { } } The ext will cause Gradle build error. To make the variables in classpath("org.jetbrains.kotlin

Android Studio - Gradle Manifest Merging Failed

我与影子孤独终老i 提交于 2019-12-09 04:22:41
问题 I am building a demo app using actionbar sherlock in android studio and i was facing problem , mentioned in following link :- Previous Problem now after following the replies posted on above link i did some changes and now i am facing this Gradle: Execution failed for task ':SherlockTest:processDebugManifest'. > Manifest merging failed. See console for more info. my application manifest file is :- <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk

Gradle build error Error converting bytecode to dex:Cause: com.android.dex.DexException:Multiple dex files define Landroid/arch/lifecycle/liveData$1

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-09 03:46:29
问题 From last 3 days I'm getting this error and have tried all i could. Can anyone help me correct it. I'm using Android 3.0 and my sdk and Google play services are updated as well as i have added multiDexEnabled true to my code...and also tried deleting the .gradle and .idea folders and again rebuilding the....but the error is still there any help would be appreciated Error converting bytecode to dex: Cause: com.android.dex.DexException:Multiple dex files define Landroid/arch/lifecycle/liveData

Could not get unknown property 'compile' for object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler

半世苍凉 提交于 2019-12-09 02:10:45
问题 I was about to add google map activity, and my android studio showed this error Error:Error:line (25)Could not get unknown property 'compile' for object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler. <a href="openFi`here`le:C:\Users\dhami\Desktop\uber1\ParseStarterProject\build.gradle"></a> this is my parse project Gradle file apply plugin: 'com.android.application'android { compileSdkVersion rootProject.ext.compileSdkVersion buildToolsVersion rootProject

Android Studio Build Error After Upgrading Android Studio

血红的双手。 提交于 2019-12-09 01:48:55
问题 After upgrading to Android Studio 1.3.1 yesterday, Getting this error when building projects, I cannot create a new project. Adding error and build.gradle file below : Alredy tried changing compileSdkVersion and buildToolVersion to 21 . 回答1: Every major revision of the Support Library, such as the 23.0.0 AppCompat you are using, compiles against the API level of the same number: i.e., API 23 as per this G+ post from the AppCompat developer. Therefore to use 23.0.0 , you must update your

Task 'publishApkRelease' not found in root project

ぐ巨炮叔叔 提交于 2019-12-08 22:30:45
问题 Im trying to configure gradle-play-publisher in my project, I have configured play block in build.gradle(Module: app), here's my build.gradle(Module:app): apply plugin: 'com.android.application' android { compileSdkVersion 22 buildToolsVersion "23.0.0 rc2" defaultConfig { applicationId "com.***.***" minSdkVersion 11 targetSdkVersion 21 ndk { moduleName "mupdf" } } signingConfigs { release { storeFile file("./***") storePassword "***" keyAlias "***" keyPassword "***" } } buildTypes { release {

Gradle: 'buildTypes' cannot be applied to groovy.lang.Closure [duplicate]

最后都变了- 提交于 2019-12-08 15:15:10
问题 This question already has answers here : buildTypes cannot be applied to groovy.lang.Closure (19 answers) Closed 4 years ago . After changing targetSdkVersion and compileSdkVersion to 22, and changing my buildToolsVersion to 22.0.1, I keep getting the following error: 'buildTypes' cannot be applied to '(groovy.lang.Closure< com.android.build.gradle.internal.dsl.BuildType>)' I looked at my build.gradle file and tried to look for anything that could be an error: apply plugin: 'com.android