Tag: android-studio

What does the Invalidate Caches/Restart do in Android Studio?

I have seen many answers suggest that one should Invalid Caches/Restart in order to improve the performance of Android Studio, whether it’s memory or CPU. It also can be used to set up correct themes. I was wondering what it actually does though, since it seems to be the solution to so many problems.

Android Studio Signed APK ':app:transformClassesAndResourcesWithProguardForRelease'

When I try to generate signed in Android Studio, I’ve got the following error : Error:Execution failed for task ‘:app:transformClassesAndResourcesWithProguardForRelease’. java.io.IOException: Please correct the above warnings first. Already make some research and find that for example : Error:Execution failed for task ':android:transformClassesAndResourcesWithProguardForRelease' I followed the advice, it didn’t works. So, I tried to update my […]

Unable to resolve class in build.gradle using Android Studio 0.60/Gradle 0.11

Established app working fine using Android Studio 0.5.9/ Gradle 0.9 but upgrading to Android Studio 0.6.0/ Gradle 0.11 causes the error below. Somehow Studio seems to have lost the ability to resolve the android tools import at the top of the build.gradle file. Anyone got any ideas on how to solve this? build file ‘Users/[me]/Repositories/[project]/[module]/build.gradle’: […]

How to fix error running ./gradlew check connectedCheck, after update AndroidStudio to 0.4.0?

After the update of the AndroidStudio, I updated the gradle to 1.9 in the wrapper and to 0.7.+ in the dependencies of the build.gradle. Since then, I get this error when running ./gradlew check connectedCheck FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ‘:app:lint’. > Lint found errors with […]

AndroidStudio Gradle: how to configure buildTypes, and check for which buildType when building?

How can I check if a buildType is debuggable in my build.gradle? I want to do something like: if(debug) { file.write(“xxxxx”) } in my build.gradle Also, how can I build a debug and release buildType from AndroidStudio? I don’t mean from command line by typing ./gradlew assembleRelease or assembleDebug, I mean from the IDE itself […]

Where to put own properties file in an android project created with Android Studio?

I just started to use Android Studio. I don’t know where to put my own properties file since there is no assets folder in the project structure. The posted snippet works fine in eclipse, but it doesn’t in Android Studio. Code: Properties prop = new Properties(); try { //load a properties file prop.load(new FileInputStream(“app.properties”)); //get […]

Android Studio emulator is not working

i´ve searched about an awnser for this problem, tried many things, but still it doesn’t Work. I’m using a win7 64-bit version. I’ve set the ANDROID_SDK_HOME variable and… nothing. With the path: C:\Users\Nuno\Favorites\.android\avd The error is this: Cannot launch AVD in emulator. Output: PANIC: HOME is defined but could not find PhoneTest.ini file in $HOME\.android\avd […]

Parse.com: with parseUser, how can I save data in a column I created in parse from the class?

I am using Android Studio for my app and Parse for my database… and on the create an account page I have, it allows the user to enter in first name, last name, email, username, and password. But my code is using parseUser… I don’t know how to set the first and last name in […]

Android Studio Can't Create new Android Project

I’m using the most recent Android Studio and today my Mac crashed. After rebooting, I opened Android Studio and now all of my projects are erroring out with the Android URI not being found. They won’t build, won’t make, nothing. If I create a new Project, Android project is not one of my options, just […]

Portable Android Studio

I want to install android studio on my portable usb hard drive to run andoid studio in my school without install. Its is possible? Or maybe exist a portable version of android studio ? Thanks

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