android-gradle

Failed to resolve: com.android.support:appcompat-v7:27.+ (Dependency Error) [duplicate]

喜夏-厌秋 提交于 2019-11-26 15:21:25
This question already has an answer here: Failed to resolve: com.android.support:cardview-v7:26.0.0 android 23 answers I am having this issue in Android studio. Error:Failed to resolve: com.android.support:appcompat-v7:27.+ <a href="install.m2.repo">Install Repository and sync project</a><br><a href="open.dependency.in.project.structure">Show in Project Structure dialog</a> My Android Studio is full of error android studio cannot identify libraries. The whole screen looks like this. This is my Gradle code: apply plugin: 'com.android.application' android { compileSdkVersion 27 buildToolsVersion

java.util.zip.ZipException: duplicate entry

余生颓废 提交于 2019-11-26 14:46:44
I have been battling this error all day in Android Studio. Project was imported from an eclipse solution. I have been trying to implement all fixes that are listed for similar posts, nothing is working. I am an Android beginner. I will be happy to provide any further information. Error:Execution failed for task ':app:packageAllDebugClassesForMultiDex'. java.util.zip.ZipException: duplicate entry: com/google/zxing/BarcodeFormat.class Please help!! Should I just try to get it to run in Eclipse? // Top-level build file where you can add configuration options common to all sub-projects/modules.

IncompatibleClassChangeError after updating to Android Build Tools 25.1.6 GCM / FCM

痞子三分冷 提交于 2019-11-26 14:28:13
Since I updated to Android SDK Tools 25.1.6 and Android Support Repository 32.0.0 (this morning), I got the following error, I didn't change anything in my code and it is still working on my colleague computer (Android SDK Tools 25.1.1 + Android Support Repository 30.0.0). java.lang.IncompatibleClassChangeError: The method 'java.io.File android.support.v4.content.ContextCompat.getNoBackupFilesDir(android.content.Context)' was expected to be of type virtual but instead was found to be of type direct (declaration of 'java.lang.reflect.ArtMethod' appears in /system/framework/core-libart.jar) at

Is there any way to integrate Eclipse with Gradle in Android project?

一个人想着一个人 提交于 2019-11-26 14:25:20
I have Android project with standard build.gradle (also I added android annotations). Also I installed Gradle plugin (from http://dist.springsource.org/release/GRECLIPSE/e4.3/ ) to my Eclipse (Kepler) and converted project to Gradle project. Unfortunately I cannot run Gradle build on my Eclipse (in cmd line everything works). My question is how to make Eclipse works with Gradle just like with Maven. In order to be able to build an Android gradle project with Eclipse I followed these instructions: Install these Eclipse plugins: Gradle IDE (3.4.0) Android Development Tools (22.3.0) If you have

Android Studio how to package single AAR from multiple library projects?

a 夏天 提交于 2019-11-26 14:14:23
I am building android library project, which has a dependency on another internal library project. I am wondering if there is a way to package a single AAR library, which already contains internal library inside it. I would like to share only 1 AAR library package to my application developers. This is how my build.gradle files look currently, but currently they produce separate AAR files and both needs to be included in Application's build.gradle. As application is being built by another company, we need to share the final AAR file with them and not the complete library projects. -----

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 &#39;com.google.code.findbugs:jsr305&#39;

一个人想着一个人 提交于 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'

Error: could not find com.google.gms:google-services:4.2.0

回眸只為那壹抹淺笑 提交于 2019-11-26 13:29:16
today I was trying to update com.google.gms:google-services to 4.2.0 from 4.1.0 as it's the latest version and recommended by firebase. But I get this error: Could not find com.google.gms:google-services:4.2.0. Searched in the following locations: https://jcenter.bintray.com/com/google/gms/google-services/4.2.0/google-services-4.2.0.pom https://jcenter.bintray.com/com/google/gms/google-services/4.2.0/google-services-4.2.0.jar https://dl.google.com/dl/android/maven2/com/google/gms/google-services/4.2.0/google-services-4.2.0.pom https://dl.google.com/dl/android/maven2/com/google/gms/google

How do I show dependencies tree in Android Studio?

 ̄綄美尐妖づ 提交于 2019-11-26 12:59:05
My goal is to see the tree of dependencies (such as: appcompat, dagger, etc) in a particular project. Like the one IntelliJ: cricket_007 The image in the question doesn't really show a tree, just a flat list of everything compiled into the app. Are you using Gradle? If so, you can truly see the "tree" by running a Gradle command Android documentation : View the dependency tree GUI Select View > Tool Windows > Gradle (or click Gradle icon in the tool windows bar). Expand AppName > Tasks > android and double-click androidDependencies . After Gradle executes the task, the Run window should open

Android dependency has different version for the compile and runtime

五迷三道 提交于 2019-11-26 12:53:54
After updating Android Studio from Canary 3 to Canary 4 , the following error is thrown at the build time. Android dependency 'com.android.support:support-support-v4' has different version for the compile (25.2.0) and runtime (26.0.0-beta2) classpath. You should manually set the same version via DependencyResolution. I ran a complete search throughout the project and the version 25.1.0 is no where used. App-build.gradle android { compileSdkVersion 26 buildToolsVersion '26.0.0' defaultConfig { applicationId "com.xxx.xxxx" minSdkVersion 14 targetSdkVersion versionCode 1 versionName "1.0"