android-studio-2.2

Show Gradle Console when running task

一笑奈何 提交于 2019-12-08 17:06:10
问题 How do I get the gradle console to show when I run a gradle task in Android Stduio? When I execute the task, the run dialog pops up but the console does not. I want to be able to see the gradle console so that I can see the output, but I don't want to permantly see the gradle console (pinned mode) as 95% of the time I'd rather have the real estate for the editor. 回答1: On your run window you might see this button: Just press it: And there you go 来源: https://stackoverflow.com/questions/39794207

Android: FirebaseUser, AuthCredential and others not found after Android Studio upgrade to 2.2 with com.google.firebase:firebase-auth:9.4.0

孤街醉人 提交于 2019-12-06 04:44:57
I just upgraded Android Studio to version 2.2, I'm on the stable channel. I then adjusted the build.grade file by bumping the version of compile 'com.google.firebase:firebase-auth:x.x.x' to 9.4.0 , which is currently the latest version. After syncing the project I am no longer able to use import com.google.firebase.auth.AuthCredential; import com.google.firebase.auth.AuthResult; and import com.google.firebase.auth.FirebaseUser; The online docs for Firebase don't mention anything related to this issue. What could be going on here? Currently New Version Released com.google.firebase:firebase-core

Android Studio Turn Off Documentation Popup

流过昼夜 提交于 2019-12-05 17:39:13
问题 I've been fighting this for a while now. It's gotten really irritating. I've tried turning off File->Settings->Editor->General->show quick documentation on mouse move File->Settings->Editor->CodeCompletion->autopopup code completion File->Settings->Editor->ParameterInfo->autopopup in (ms) Dragging the documentation window to the side. And none of these have worked. I'm using Android Studio 2.2.3 on Ubuntu Linux. What am I missing? Thanks! 回答1: This option File->Settings->Editor->General-

Default pressed MenuItem with 9-patch border after Android Studio 2.2

白昼怎懂夜的黑 提交于 2019-12-05 14:36:35
After updating to Android Studio 2.2 and Android Plugin to 2.2.0-alpha1, I noticed that when I press a MenuItem, it gets a black border. I presume that this border is caused by a problem with its 9-patch pressed background. Is this a known issue? This is the pressed state. The default state works fine. Obs: I am testing on a real device and I had never experienced this issue. Thank you! Try to change the default android plugin version 2.2 alpha to 2.1 stable. classpath 'com.android.tools.build:gradle:2.1.0 Update : try latest version ( 2.2 ) when it become stable one 来源: https://stackoverflow

Android Studio “Error Running Git” , 'Empty git --version output:'

巧了我就是萌 提交于 2019-12-05 14:23:54
问题 I have looked at the other posts and have made certain that the path is correct to the executable file, as shown below. I can launch git from from this path outside of Android Studio. The current project is the "sunshine-version 2" from Udacity and it is a version or two old, but this should not affect the VCS from launching. I have read the other posts concerning this issue, but none have resolved this issue. Also, when Android Studio gradle runs, it will open git in several windows and then

What is the difference between Defined Methods and Referenced Methods in Android studio Apk Analyzer

懵懂的女人 提交于 2019-12-05 05:45:43
One of the new features in android studio 2.2 preview 1 is APK Analyzer and when you try it it give you statistics Defined Methods and Referenced Methods example output: This dex file defines 4118 classes with 28823 methods,and references 35206 methods Defined methods are methods that you have written, or are using correctly based on the given situation. If a method is referenced, it only means that you (or other methods/objects in your code) are calling them. However, just because a method is referenced doesn't mean that their is anything defined for it, or it could be defined incorrectly. If

Failed to connect to Firebase from Android Studio Assistant

我的梦境 提交于 2019-12-05 02:10:53
I am trying to connect to Firebase from Android Studio Assistance but getting following error despite having internet connection. Michael Gribben The quickest way to get around this is to create (or upgrade your project to enable Firebase) in the Firebase Console first; then connect your app through the Android Studio tool again. This is a generic failure message so to help us investigate it would be great if you could provide the detailed error message from the Studio log. You can find this by going to ' Help > Show Log ... '. This Error occurs when you reach total number of projects limit on

Gradle build failed - unable to unzip

♀尐吖头ヾ 提交于 2019-12-04 21:58:34
问题 I am doing a project using android studio.Recently it showed an error that your SDK is missing or out of date so, I downloaded SDK once again.Now it shows an error that Gradle Build failed The error is mentioned below: `Error:Execution failed for task ':app:prepareComAndroidSupportAnimatedVectorDrawable2531Library'. > Unable to unzip '/home/nandha/Android/Sdk/extras/android/m2repository/com/android/support/animated-vector-drawable/25.3.1/animated-vector-drawable-25.3.1.aar' to '/home/nandha/

Android Studio 2.2 update: aligned APK (zipAlign) not generated using the new Gradle Plugin 2.2.0

拈花ヽ惹草 提交于 2019-12-04 09:19:47
问题 After updating Android Studio to version 2.2 I also got an update for the Gradle Plugin (it was 2.1.3): ... classpath 'com.android.tools.build:gradle:2.2.0' ... I see the unaligned variant APK file but other variants are not generated anymore. I tryed to enable the zip align: buildTypes { release { minifyEnabled false zipAlignEnabled true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' signingConfig signingConfigs.release } debug { applicationIdSuffix '

Android Studio 2.2 not displaying view properties

有些话、适合烂在心里 提交于 2019-12-04 05:42:09
问题 After upgrading my android studio to version 2.2 i'm getting following error when i click on a view in layout designer to see it properties: Exception in plugin Android Support Moments Ago. Missing attribute definition for focusable java.lang.IllegalArgumentException: Missing attribute definition for focusable at com.android.tools.idea.uibuilder.property.NlPropertyItem.(NlPropertyItem.java:88) at com.android.tools.idea.uibuilder.property.NlPropertyItem.create(NlPropertyItem.java:72) at com