Tag: gradle

Can't add ViewPagerIndicator to app with Gradle

i am trying to add Jack Whartons ViewPagerIndicator library https://github.com/JakeWharton/ViewPagerIndicator to my app as i want to use the circle indicator for the viewpager i have. However i am having trouble adding it to my app. i have followed this tutorial – Using ViewPagerIndicator library with Android Studio and Gradle However i am getting this […]

Unable to add AndEngine to Android Studio

I am trying to almost 2 days to add AndEngine to Android Studio but unable to do so. I tried the following two methods, neither worked. 1st Try I download the AndEngine code from GitHub Link — this is NOT a Gradle Project and tried to add it to my Android Studio build.gradle and settings.gradle, […]

How do I import material design library to Android Studio?

I want to import this library to my project in Android Studio v1.0.0 rc2: https://github.com/navasmdc/MaterialDesignLibrary But there is a problem. When I add this library as a module, this error appears: Error:Dependency MyApplication.libraries:MaterialDesign:unspecified on project app resolves to an APK archive which is not supported as a compilation dependency. File: C:\ADTBundle\StudioWorkspace\MyApplication\libraries\MaterialDesign\build\outputs\apk\MaterialDesign-release-unsigned.apk What would be a […]

Android – App crashes on Pre-Lollipop devices

My app is running well on Lollipop devices but it keep crashing on prior to version Lollipop. I have simply implemented a banner add in my application with the following code through google documention // Request for Ads AdRequest adRequest = new AdRequest.Builder() // Add a test device to show Test Ads .addTestDevice(AdRequest.DEVICE_ID_EMULATOR) .build(); // […]

android studio not downloading sources and javadoc

Using Android studio version 0.1.3 and version 0.4.2 of the android gradle plugin. I noticed that its not pulling in sources for any of my dependencies. i used a third party android plugin before on eclipse that did that and usually with maven you can configure it to do that too. Anyone know how you […]

How to retrieve path to ADB in build.gradle

I trying to start application via gradle task. task runDebug(dependsOn: [‘installDebug’, ‘run’]) { } task run(type: Exec) { commandLine ‘adb’, ‘shell’, ‘am’, ‘start’, ‘-n’, ‘com.example.myexample/.ui.SplashScreenActivity’ } But this code don’t work and i get error: a problem occurred starting process ‘command ‘adb” However, when i specify the path to adb explicitly, application is started. task […]

Android Studio / Intellij, Gradle Error:Cause: peer not authenticated

Having a fight with intelliji at the moment. The darn thing won’t download me gradle 2.1. I have an Android project hosted on github, which I have cloned to my laptop. I have got working SSL certificates, I know this as I can download SDK software from google using SSL, and I can also download […]

Android Studio, Gradle, OpenCV and NDK

I am trying to test OpenCV Android, on Android Studio, I am confused about how to include the NDK. What I want to do is run the samples which come with OpenCV. Of the 6 samples provided I managed to run 4 successfully. The exceptions were face-detection and native-activity. I suspect the reason is I […]

Have a product flavor be a child of another

I’m setting up the product flavors in my app and have run into one problem. Two of my product flavors are very similar to each other and only differ by a few resources, let’s call them FlavorA and FlavorB. I would like to set it up so that FlavorA is the parent of FlavorB, that […]

Android Studio/Gradle not finding AppCompat resources for tests

I’m having a problem building tests in Android Studio using gradle. As far as I can tell it doesn’t seem to include the resources for AppCompat v7 in its test compilation, which means my custom styles are referencing a whole bunch of AppCompat styles that it can’t ‘see’. This causes the wad of errors below. […]

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