build.gradle

How to enable Jack (Java Android Compiler Kit) in android studio

安稳与你 提交于 2019-11-26 15:25:38
问题 I am updated my androidstudio 2.1 stable.As per Android Studio 2.1 supports Android N Developer Preview Android studio 2.1 support Jack (Java Android Compiler Kit) compiler . How to add or use Jack in android studio? NOTE: The Jack toolchain is deprecated, as per Java 8 Language Feature Support on Android. However, you may continue to use it to enable Java 8 language features until the replacement is available. https://source.android.com/source/jack 回答1: The details on what is required to use

how append date build to versionNameSuffix on gradle

徘徊边缘 提交于 2019-11-26 15:23:17
问题 I am using Android Studio and I need to append a suffix to the versionNameSuffix on my Android build.gradle file. I have three different buildTypes and I only need to append the datetime to my "beta" release, my actual file is: defaultConfig { versionCode 14 versionName "0.7.5" minSdkVersion 9 targetSdkVersion 18 } buildTypes { beta { packageNameSuffix ".beta" versionNameSuffix "-beta" signingConfig signingConfigs.debug } .... } for testing and automatic deploy, I need to get a final

More than one file was found with OS independent path 'META-INF/LICENSE'

被刻印的时光 ゝ 提交于 2019-11-26 15:03:56
When i build my app, I got follow error . Error:Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug'. More than one file was found with OS independent path 'META-INF/LICENSE' This is My build.gradle file apply plugin: 'com.android.application' apply plugin: 'kotlin-android' android { compileSdkVersion 25 buildToolsVersion "25.0.2" defaultConfig { applicationId "cn.sz.cyrus.kotlintest" minSdkVersion 14 targetSdkVersion 25 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" javaCompileOptions{

Error:Execution failed for task ':app:dexDebug' error in my project while I added new dependency

天大地大妈咪最大 提交于 2019-11-26 14:51:09
问题 I didn't added any libraries / jars in my project( in libs ) only this dependencies. My build.gradle file. android { compileSdkVersion 23 buildToolsVersion "23.0.1" defaultConfig { applicationId "com.android.example23" minSdkVersion 14 targetSdkVersion 23 versionCode 1 versionName "1.0" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies { compile fileTree(include: ['*.jar'], dir: 'libs')

Manifest merger failed : Attribute application@appComponentFactory updating Firebase libraries

删除回忆录丶 提交于 2019-11-26 14:46:22
问题 I am trying to add firebase in my project but when I implement 'com.google.firebase:firebase-messaging:19.0.0' and 'com.google.firebase:firebase-core:17.0.0' . build.gradle (here is the error) apply plugin: 'com.android.application' apply plugin: 'com.google.gms.google-services' android { compileSdkVersion 28 defaultConfig { applicationId "com.example.user.mikripoli" minSdkVersion 15 targetSdkVersion 28 multiDexEnabled true versionCode 1 versionName "1.0" testInstrumentationRunner "android

Android Studio: Re-download dependencies and sync project

拜拜、爱过 提交于 2019-11-26 14:37:19
问题 I downloaded an open source game "ChaseWhisplyProject" source code from Github. I imported the project in my Android Studio (Version 1.5.1). It shows following error message: Error:Failed to open zip file. Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.) Re-download dependencies and sync project (requires network) Re-download dependencies and sync project (requires network) I changed all the dependency versions to latest one bu still it is

Peer not authenticated while importing Gradle project in eclipse

六月ゝ 毕业季﹏ 提交于 2019-11-26 14:09:12
While I am importing gradle project in eclipse, it is giving me this error. FAILURE: Build failed with an exception. * What went wrong: A problem occurred configuring root project 'test'. > Could not resolve all dependencies for configuration ':classpath'. > Could not resolve de.richsource.gradle.plugins:gwt-gradle-plugin:0.3. Required by: :test:unspecified > Could not GET 'https://github.com/steffenschaefer/gwt-gradle-plugin/raw/maven-repo/de/richsource/gradle/plugins/gwt-gradle-plugin/0.3/gwt-gradle-plugin-0.3.pom'. > peer not authenticated * Try: Run with --stacktrace option to get the

Error:Conflict with dependency 'com.google.code.findbugs:jsr305'

一个人想着一个人 提交于 2019-11-26 13:59:54
I created a new project in Android Studio 2.2 Preview 1 with Android App and Backend module with Google Messaging. This is the app file: apply plugin: 'com.android.application' android { compileSdkVersion 23 buildToolsVersion "23.0.3" defaultConfig { applicationId "com.xxx.xxx" minSdkVersion 15 targetSdkVersion 23 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies { compile fileTree(dir: 'libs'

android : Error converting byte to dex

匆匆过客 提交于 2019-11-26 13:54:54
问题 So, I am getting the following error while running the project after upgrading build.gradle (Project) from dependencies { classpath 'com.android.tools.build:gradle:2.0.0-alpha2' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } to dependencies { classpath 'com.android.tools.build:gradle:2.0.0-alpha3' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } I just

Could not find property 'outputFile' on com.android.build.gradle.internal.api.ApplicationVariantImpl

你说的曾经没有我的故事 提交于 2019-11-26 13:47:40
问题 After updating to AS 1.0 RC 1 and plugin 0.14.4 I am having problems with the renaming part of my build.gradle: applicationVariants.all { variant -> def file = variant.outputFile variant.outputFile = new File(file.parent, file.name.replace(".apk", "-" + defaultConfig.versionName + ".apk")) } throws now: Error:(78, 0) Could not find property 'outputFile' on com.android.build.gradle.internal.api.ApplicationVariantImpl_Decorated@67e7625f. and also I cannot jump to the class