Skip to main content
1081 votes
36 answers
797k views

I'm trying to use the new Android Studio but I can't seem to get it working correctly. I'm using the Gson library to serialize/deserialize JSON-objects. But the library somehow isn't included in the ...
Ozzie's user avatar
  • 11.7k
173 votes
15 answers
293k views

I want to use the new Multidex support library to break the method limit for one of my apps. With Android Lollipop Google introduced a multidex support library that makes it easy to multidex. What ...
Janusz's user avatar
  • 190k
843 votes
23 answers
1.0m views

I have tried to add my local .jar file dependency to my build.gradle file: apply plugin: 'java' sourceSets { main { java { srcDir 'src/model' } } } dependencies { ...
letter Q's user avatar
  • 15.5k
861 votes
17 answers
974k views

Is it possible to use Gradle to produce a tree of what depends on what? I have a project and would like to find out all the dependencies so I may be able to prune it a little with forward declarations ...
user3286701's user avatar
  • 8,701
1300 votes
12 answers
553k views

After updating to Android Studio 3.0 and creating a new project, I noticed that in build.gradle there is a new way to add new dependencies instead of compile there is implementation and instead of ...
humazed's user avatar
  • 77.2k
52 votes
5 answers
68k views

Note: Error may be different but if you are getting any error when taking android build without any changes in code for past two days My Error - Failed to install the app. Error: Command failed: ./...
ZFloc Technologies's user avatar
577 votes
24 answers
948k views

I can't figure out to get this working. Scenario: I have an application built with gradle The application uses JavaFX What I want Use a variable (defined per developer machine) which points to an ...
bully's user avatar
  • 6,094
543 votes
29 answers
565k views

I've been experimenting with the new android build system and I've run into a small issue. I've compiled my own aar package of ActionBarSherlock which I've called 'actionbarsherlock.aar'. What I'm ...
Miguel's user avatar
  • 20.2k
807 votes
24 answers
561k views

I've always programmed Android with Eclipse and decided to start migrating to Android Studio. I decided to use the same SDK I already had for Eclipse, then: Started a new project Set minimum SDK 4.0 (...
Vini.g.fer's user avatar
216 votes
26 answers
174k views

If I run gradle assembleDebug from the command line, I am suddenly getting this error: UNEXPECTED TOP-LEVEL EXCEPTION: com.android.dx.util.DexException: Multiple dex files define Landroid/support/v4/...
xrd's user avatar
  • 4,091
136 votes
23 answers
138k views

I'm getting this error executing my Android app (I cleaned it and then built it, but the error is still present) Sync: OK Make Project: OK Clean: OK Run: Error Error:Execution failed for task ':app:...
Maverick.pe's user avatar
  • 1,917
633 votes
20 answers
216k views

Right now, I'm storing every XML layout file inside the 'res/layout' folder, so it is feasible and simple to manage small projects, but when there is a case of large and heavy projects, then there ...
Paresh Mayani's user avatar
166 votes
14 answers
242k views

I want to use OpenCV library in my app with Android Studio. I followed instructions found here but I get error Configuration with name 'default' not found What can be wrong? I use Android Studio 1....
Bartosz Bialecki's user avatar
477 votes
18 answers
1.1m views

I installed Android Studio 0.1.9. Today I got and update to version 0.2 and of course I updated. After the installation I restarted Android Studio but now I get this message: Project is using an old ...
7heViking's user avatar
  • 7,617
14 votes
4 answers
7k views

I can successfully build and run my Android app in my debug and release variants with no problem. Yet, when I try to run my new unit tests (I never had them before), I get the dreaded ...
John D.'s user avatar
  • 2,640

15 30 50 per page
1
2 3 4 5
422