android-gradle-2.0

issue with gradle 2.0.0 and DataBinding

不羁岁月 提交于 2020-01-02 05:25:30
问题 Recently i have updated Android studio from 1.5.1 to 2.0, after updation it asked me to use latest gradle i.e. com.android.tools.build:gradle:2.0.0 dependencies { classpath 'com.android.tools.build:gradle:2.0.0' classpath "com.android.databinding:dataBinder:1.0-rc1" } But after updating it is showing error with DataBinding plugin. apply plugin: 'com.android.databinding' //error on this line Error message : Error:(2, 0) Cause: org/apache/commons/lang3/StringUtils Open File I have not used any

instant run java.lang.OutOfMemoryError: GC overhead limit exceeded

雨燕双飞 提交于 2019-12-17 23:34:41
问题 I have upgraded to Android Studio 2.1 and I got this error while I am trying to build & run my corporate big project: Execution failed for task ':app:transformClassesWithDexForMyAppDebug'. com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: GC overhead limit exceeded I have searched through the forum and disabled instant run, also write to my build.gradle: dexOptions {

Build a fat aar which will include other sub modules as jar/aar using Gradle

北慕城南 提交于 2019-12-12 13:40:21
问题 I have a top level android library module (containing res folder) dependent on other library sub modules(no res). I want to build a fat aar of the top level module which should include the jar of the sub modules as well as any other aar dependency which I mention in the build.gradle. Is this possible? how? I can give more info if needed. 回答1: Check out the fat-aar.gradle script that does exactly this: https://github.com/adwiv/android-fat-aar 来源: https://stackoverflow.com/questions/37270905

Android Studio cannot resolve symbol from imported module

拜拜、爱过 提交于 2019-12-10 11:26:10
问题 I have an android app that worked great. I have imported the ActiveAndroid project as a module because I did a change on the Model's file (I added a setId method, and that's why I can't use the gradle's version). I was using Android Studio 1.5 and gradle 1.5.0. I have updated the android studio version to 2.2 (which make me update the gradle version to 2.2.0-alpha1. Then now, the import of active android fails. For instance: import com.activeandroid.Model; Detects an error: cannot resolve

Android Studio cannot resolve symbol from imported module

邮差的信 提交于 2019-12-06 06:40:23
I have an android app that worked great. I have imported the ActiveAndroid project as a module because I did a change on the Model's file (I added a setId method, and that's why I can't use the gradle's version). I was using Android Studio 1.5 and gradle 1.5.0. I have updated the android studio version to 2.2 (which make me update the gradle version to 2.2.0-alpha1. Then now, the import of active android fails. For instance: import com.activeandroid.Model; Detects an error: cannot resolve symbol 'Model'. What is going on? How can I solve that issue? Thanks a lot! It's a bug in Android Studio 2