android-gradle

Plugin is too old, please update to a more recent version, or set ANDROID_DAILY_OVERRIDE environment variable to

隐身守侯 提交于 2019-11-26 21:40:30
today I just imported a sample app from Android SDK as a module in my project (analytics) and suddenly I got this gradle error when I try to sync it: Plugin is too old, please update to a more recent version, or set ANDROID_DAILY_OVERRIDE envrinment variable to... This is my app gradle file: apply plugin: 'com.android.application' android { compileSdkVersion 22 buildToolsVersion "22.0.0" defaultConfig { applicationId "xxx.xxxxxx.xxxxx" versionCode 1 versionName '1' minSdkVersion 9 targetSdkVersion 22 versionCode 1 versionName '1' } buildTypes { release { minifyEnabled false proguardFiles

How do I get a jacoco coverage report using Android gradle plugin 0.10.0 or higher?

不羁的心 提交于 2019-11-26 21:39:45
I'm trying to get a test coverage report using Gradle Android plugin 0.10.2. But I still can't get a coverage report after running some tests. (connectedAndroidTest). my main module's build.gradle is : apply plugin: 'android' android { compileSdkVersion 19 buildToolsVersion "19.0.3" defaultConfig { minSdkVersion 8 targetSdkVersion 19 versionCode 1 versionName "1.0" } buildTypes { debug { testCoverageEnabled true } release { runProguard false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt' } } } dependencies { compile fileTree(dir: 'libs', include: ['*.jar'])

Using build types in Gradle to run same app that uses ContentProvider on one device

筅森魡賤 提交于 2019-11-26 21:14:20
I have set up Gradle to add package name suffix to my debug app so I could have release version that I'm using and debug version on one phone. I was referencing this: http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Types My build.gradle file looks like this: ... android { ... buildTypes { debug { packageNameSuffix ".debug" versionNameSuffix " debug" } } } Everything works fine until I start using a ContentProvider in my app. I get: Failure [INSTALL_FAILED_CONFLICTING_PROVIDER] I understand that this happens because two apps (release and debug) are registering same

Apache HTTP connection with Android 6.0 (Marshmallow)

我们两清 提交于 2019-11-26 20:46:06
Is there is any way to include the Apache library directly in Gradle to make it work with Android 6.0 ? I've tried to include the libraries like that: compile 'org.apache.httpcomponents:httpcore:4.4.1' compile 'org.apache.httpcomponents:httpclient:4.5' And Android Studio couldn't manage to find the following import: import org.apache.http.auth.AuthenticationException; import org.apache.http.auth.Credentials; import org.apache.http.auth.MalformedChallengeException; import org.apache.http.auth.UsernamePasswordCredentials; import org.apache.http.impl.auth.DigestScheme; This page discusses the

Android Studio: Gradle: error: cannot find symbol variable

无人久伴 提交于 2019-11-26 20:39:34
I was working on my app and everything was normal until I tried to display image in java. I ran the app once and it ran normally, the picture was displayed. After that it asked me to import some libraries and I imported them. After that I got errors for my activities. Errors like: Gradle: error: cannot find symbol variable activity_main Gradle: error: cannot find symbol variable button1 Gradle: error: cannot find symbol variable button2 Gradle: error: cannot find symbol variable textView Gradle: error: cannot find symbol variable secondActivity In MainActivity I have imported these libraries:

Gradle error: Minimum supported Gradle version is 3.3. Current version is 3.2

假装没事ソ 提交于 2019-11-26 20:19:07
When I today update Android Studio it write: Minimum supported Gradle version is 3.3. Current version is 3.2 how can I solve this problem? Here is my build.gradle // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:2.3.0' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } allprojects { repositories { jcenter() } } task clean(type: Delete) { delete rootProject.buildDir } and second

Error:Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug'

此生再无相见时 提交于 2019-11-26 20:17:11
So I'm continuously receiving a gradle build error upon trying to run my project. I have searched for other solutions and some say that adding: packagingOptions { exclude 'META-INF/NOTICE' } to my app's gradle.build would fix the issue, however, it doesn't. Here is what my app's gradle.build currently looks like. apply plugin: 'com.android.application' apply plugin: 'com.google.gms.google-services' dependencies { compile fileTree(include: ['*.jar'], dir: 'libs') compile 'com.google.android.gms:play-services:8.3.0' compile 'com.google.android.gms:play-services-ads:8.3.0' compile 'com.google

Android Studio build.gradle warning message [duplicate]

假如想象 提交于 2019-11-26 20:15:08
This question already has an answer here: Still getting warning : Configuration 'compile' is obsolete and has been replaced with 'implementation' 22 answers After i have successfully updated to Android Studio 3.1 Canary 9 i am getting warning message as Warning:Configuration 'compile' is obsolete and has been replaced with 'implementation'. It will be removed at the end of 2018 I know this warning will not cause any problem in my project at least for now. But i want to remove it totally so that there will be no problem in future at all. But after reviewing my build.gradle file i cannot find

Error: Configuration with name 'default' not found in Android Studio

萝らか妹 提交于 2019-11-26 19:57:27
I am using the volley library to perform network operation in android. So I am trying to add this library in my project which is created in Android Studio and gradle system. I added the volley library in my project but when I sync with gradle then I am getting error message. I tried all the answers which I see here but nothing worked for me. Error message : Configuration with name 'default' not found in Android Studio Volley/build.gradle apply plugin: 'android-library' android { compileSdkVersion 19 buildToolsVersion '19.0.1' sourceSets { defaultConfig { minSdkVersion 8 targetSdkVersion 19 }

Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.android.support:appcompat-v7:26.1.0

心不动则不痛 提交于 2019-11-26 19:51:54
Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.android.support:appcompat-v7:26.1.0. Could not resolve com.android.support:appcompat-v7:26.1.0. Required by: project :app No cached version of com.android.support:appcompat-v7:26.1.0 available for offline mode. Error log: Could not resolve all files for configuration ':app:debugCompileClasspath'. Could not resolve com.android.support:appcompat-v7:26.1.0. Required by: project :app No cached version of com.android.support:appcompat-v7:26.1.0 available for offline mode. No cached version of com.android.support