Tag: gradle

Android Studio 0.5.2 Gradle Refresh Project failed

UPDATED WITH MY EVENT LOG LAST EDIT After trying out every possible solution i could find i’ve come to a fresh install of Windows. Doing this i noticed that this was indeeed a firewall issue, my antivirus was blocking the studio64.exe process. I have freshly installed Android Studio 0.4.2 then immediately updated to 0.5.2 without […]

Android release APK crash with java.lang.AssertionError: impossible in java.lang.Enum

I’ve just built an APK using Gradle for release (ProGuard 4.9 and signed). When I launch the app it crash on this error : E/AndroidRuntime( 8662): java.lang.AssertionError: impossible E/AndroidRuntime( 8662): at java.lang.Enum$1.create(Enum.java:44) E/AndroidRuntime( 8662): at java.lang.Enum$1.create(Enum.java:35) E/AndroidRuntime( 8662): at libcore.util.BasicLruCache.get(BasicLruCache.java:54) E/AndroidRuntime( 8662): at java.lang.Enum.getSharedConstants(Enum.java:210) E/AndroidRuntime( 8662): at java.lang.Enum.valueOf(Enum.java:190) E/AndroidRuntime( 8662): at kr.infli.s.Z(Inflikr.java:390) E/AndroidRuntime( 8662): at […]

Importing gradle project to eclipse

I have problem with importing this library into eclipse. Things I did: run gradlew.bat (inside project) that downloaded and installed it run CMD set my SDK with command “set ANDROID_HOME=C:\dev\android-sdk-windows” run command gradlew build after successful build image I tried to import project into my eclipse but it’s incomplete (without any classes) It’s first time […]

Gradle builds for every resource folder

Is it possible to config Gradle to build few android apk files where each would be using only one resource-type folder? I mean: build-hdpi.apk build-mdpi.apk build-xhdpi.apk I know I could simply remove certain folders before building, but it would be nice if I could make it “automagically”. Would it be possible with using gradle “flavors”?

How to include JAR dependency into an AAR library

Summary: I have an AAR file that depends on a JAR file, when I build the AAR project, it doesn’t contain the JAR code. Details: I have a Java SDK library project that contains code that we use for java web projects and such, this library is created using Gradle and resides in an internal […]

How to check the size of dependencies in an android app?

I’m working on an android app that already have many dependencies in it. I want to remove some starting by the bigger one’s. How to check their size in the app?

IntelliJ and Android Gradle dependencies – unable to find module

I have following directory structure: D:\PROJECT +—javaGradleProject1 +—javaGradleProject2 +—javaGradleProject3 \—AndroidProject | build.gradle | settings.gradle \—AndroidModule build.gradle Android module depends on all of java gradle projects that are at the same level in root directory as AndroidProject. In AndroidProject/settings.gradle I have: include ‘:AndroidModule’ include ‘javaGradleProject1’ project(‘:javaGradleProject1’).projectDir = new File(rootDir, ‘../javaGradleProject1’) include ‘javaGradleProject2’ project(‘:javaGradleProject2’).projectDir = new File(rootDir, […]

android custom view attributes not working after switch to gradle

so I recently migrated to gradle now my custom view attributes return null my project looks like this –custom_icon_view // library that holds the custom view with custom attributes –my application // this is the main app that actually uses the custom view in my layout I have the namespace defined like this : xmlns:iconview=”http://schemas.android.com/lib/be.webelite.iconview” […]

How to put my libraries in front of android.jar by editing build.gradle in Android-Studio

First Here’s my Java Build Path in Eclipse: These four jars ‘common.jar,core.jar, framework.jar,layout.jar’ are packaged from Android source code, which contains some classes that can’t be publicly used by developer.They needn’t to be exported because they are for cheat compiler. In Eclipse everything is OK. Now I’m trying to import my project to Android-Studio with […]

Android: Could not find com.android.support:support-v4:23.2.1

I add this library in my gradle file: compile ‘com.appeaser.sublimepickerlibrary:sublimepickerlibrary:2.0.0′ I’ve already these dependencies: dependencies { compile fileTree(dir: ‘libs’, include: [‘*.jar’]) compile “com.android.support:design:23.+” compile ‘com.android.support:support-v4:23.+’ compile ‘com.android.support:support-v13:23.+’ compile ‘com.android.support:appcompat-v7:23.+’ compile ‘com.android.support:cardview-v7:23.+’ compile ‘com.android.support:recyclerview-v7:23.+’ Since, I’ve added SublimePicker library, I add this error: Error:Could not find com.android.support:support-v4:23.2.1. Required by: Android:app:unspecified Could you help me guys ?

Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.