android-gradle

Transitive dependencies for local aar library

≯℡__Kan透↙ 提交于 2019-11-26 19:47:27
We're making some library, basicly for our API, that we would make life easier for our external developers. So we created new library project and put Retrofit and some other libraries as dependencies. dependencies { compile 'com.android.support:appcompat-v7:23.3.0' compile 'com.google.code.gson:gson:2.6.2' compile 'com.squareup.retrofit2:retrofit:2.0.1' compile 'com.squareup.retrofit2:converter-gson:2.0.1' compile 'com.squareup.okhttp3:okhttp:3.2.0' } Now when we build it, it produces aar file. But now when we put the aar file to libs directory and set it as dependency, we still have to put

Android Studio Gradle issue upgrading to version 0.5.0 - Gradle Migrating From 0.8 to 0.9 - Also Android Studio upgrade to 0.8.1

▼魔方 西西 提交于 2019-11-26 19:46:50
After upgrade message states: Failed to refresh Gradle project 'XXX' The project is using an unsupported version of the Android Gradle plug-in (0.8.3). Version 0.9.0 introduced incompatible changes in the build language. Please read the migration guide to learn how to update your project. Same kind of issue after upgrade to Android Studio to version >= 0.8.0 Android Studio 0.5.0 requires gradle-plugin 0.9.0 The gradle-plugin 0.9.0 works with Gradle 1.10 or Gradle 1.11 Modify your build.gradle script as suggested by Cedric. There is a relation between gradle-plugin and the gradle version. For

error: resource android:attr/fontVariationSettings not found

强颜欢笑 提交于 2019-11-26 19:40:29
Warning:The android.dexOptions.incremental property is deprecated and it has no effect on the build process. /home/midhilaj/.gradle/caches/transforms-1/files-1.1/appcompat-v7-26.1.0.aar/be3106efb0df111fe5a3f7b356dd070b/res/values/values.xml Error:(246, 5) error: resource android:attr/fontVariationSettings not found. /project/bkup/7_march_2018/hyshoper/milla/build/intermediates/incremental/mergeDebugAndroidTestResources/merged.dir/values/values.xml Error:(246, 5) error: resource android:attr/ttcIndex not found. Error:(269) resource android:attr/ttcIndex not found. Error:(269) resource android

Error : Please fix the version conflict either by updating the version of the google-services plugin

↘锁芯ラ 提交于 2019-11-26 19:12:28
I'm having a problem with Google Services plugin. I updated google services to the latest version. I got a dependency from this site: https://bintray.com/android/android-tools/com.google.gms.google-services/ Error:Execution failed for task ':app:processDebugGoogleServices'. > Please fix the version conflict either by updating the version of the google-services plugin (information about the latest version is available at https://bintray.com/android/android-tools/com.google.gms.google-services/) or updating the version of com.google.android.gms to 11.2.0. This are my Gradle files: The one in app

File res/drawable/abc_ic_ab_back_material.xml from drawable resource ID #0x7f020016 [duplicate]

陌路散爱 提交于 2019-11-26 18:53:24
This question already has an answer here: Update Android Support Library to 23.2.0 cause error: XmlPullParserException Binary XML file line #17<vector> tag requires viewportWidth > 0 31 answers Recently android support library was updated to 23.2.0 . After downloading android sdk and updating android design support library into 23.2.0 , this error happens repeatedly. My project can't even be compiled. The complete error log says: 03-02 12:00:04.945 9324-9324/com.creditease.zhiwang.debug E/AndroidRuntime: FATAL EXCEPTION: main java.lang.RuntimeException: Unable to start activity ComponentInfo

Exception : AAPT2 error: check logs for details

徘徊边缘 提交于 2019-11-26 18:41:21
Task :processDebugResources Failed to execute aapt com.android.ide.common.process.ProcessException: Failed to execute aapt at com.android.builder.core.AndroidBuilder.processResources(AndroidBuilder.java:796) at com.android.build.gradle.tasks.ProcessAndroidResources.invokeAaptForSplit(ProcessAndroidResources.java:551) at com.android.build.gradle.tasks.ProcessAndroidResources.doFullTaskAction(ProcessAndroidResources.java:285) at com.android.build.gradle.internal.tasks.IncrementalTask.taskAction(IncrementalTask.java:109) at sun.reflect.GeneratedMethodAccessor200.invoke(Unknown Source) at sun

Too many classes in --main-dex-list, main dex capacity exceeded

别等时光非礼了梦想. 提交于 2019-11-26 18:39:32
I'm trying to run instrumentation test cases but getting the below error while dex conversion UNEXPECTED TOP-LEVEL EXCEPTION: com.android.dex.DexException: Too many classes in --main-dex-list, main dex capacity exceeded at com.android.dx.command.dexer.Main.processAllFiles(Main.java:494) at com.android.dx.command.dexer.Main.runMultiDex(Main.java:334) at com.android.dx.command.dexer.Main.run(Main.java:244) at com.android.dx.command.dexer.Main.main(Main.java:215) at com.android.dx.command.Main.main(Main.java:106) :App:dexDebug FAILED How to resolve this issue in gradle? Alex Lipov Let's first

how can I add the aidl file to Android studio (from the in-app billing example)

那年仲夏 提交于 2019-11-26 18:26:22
I am currently migrating an Eclipse app to Android Studio. This app was using the in app billing. My main problem is to compile the project and the aidl file (I guess you all use this file ) I get this error message: Gradle: error: cannot find symbol class IInAppBillingService Gradle: error: package IInAppBillingService does not exist So, following some tutorials, I move this file from com.mypackage.billing to src/main/aidl (see this reference ) But as soon, as I do that, I get this message: Gradle: Execution failed for task ':xxxxxxxxxxx:compileDebugAidl'. Failed to run command: (...) C:

gradle build fails on lint task

对着背影说爱祢 提交于 2019-11-26 18:25:29
I have a simple android project that I created with Android Studio 0.4.0. I use Gradle 1.9 and Gradle Android Plugin 0.7. Yesterday I've added Jake Wharton's ButterKnife library in my gradle build script: dependencies { compile 'com.android.support:support-v4:19.0.0' compile 'com.android.support:appcompat-v7:19.0.0' // Butterknife compile 'com.jakewharton:butterknife:4.0.1' } When I run the application from Android Studio, the build runs fine and executes correctly on my devices. But when I try (from the command line) gradle build the build fails. Here is a part from my lint report:

Gradle DSL method not found: 'runProguard'

帅比萌擦擦* 提交于 2019-11-26 18:02:59
I get an error after updating from my last project. Not a problem in my code but I'm having trouble with build.gradle. How can I fix it? build.gradle code here: apply plugin: 'android' android { compileSdkVersion 21 buildToolsVersion '20.0.0' packagingOptions { exclude 'META-INF/DEPENDENCIES' exclude 'META-INF/LICENSE' exclude 'META-INF/LICENSE.txt' exclude 'META-INF/license.txt' exclude 'META-INF/NOTICE' exclude 'META-INF/NOTICE.txt' exclude 'META-INF/notice.txt' exclude 'META-INF/ASL2.0' } defaultConfig { applicationId 'com.xxx.axxx' minSdkVersion 14 targetSdkVersion 19 versionCode 6