android-studio-2.2

On Android Studio 2.2.3 Gradle sync failed: Cause: error=13, Permission denied on Linux Mint 18

断了今生、忘了曾经 提交于 2021-02-18 22:33:07
问题 On Android Studio 2.2.3 when I am creating a new project or opening previous projects then the following pop ups: Gradle sync started 7:55:26 AM Gradle sync failed: Cause: error=13, Permission denied Consult IDE log for more details (Help | Show Log) what should I do? Please help. This is important. 回答1: On Android Studio folder, do chmod 777 * -R I think this not the best answer but it worked for me. 回答2: I solved this by going to the directory that contained the android-studio folder, which

\build\intermediates\res\resources-anzhi-debug-stripped.ap_' specified for property 'resourceFile' does not exist

ぐ巨炮叔叔 提交于 2020-01-18 21:09:12
问题 I updated Android Studio to version 2.0. The build failed and also takes longer than Android Studio version 1.5 to build. Every time I run my application, I clean and reload the project, but it's no use. The error message is: \build\intermediates\res\resources-anzhi-debug-stripped.ap_' specified for property 'resourceFile' does not exist. 回答1: Having same issue ! So instant run is not compatible with shrinkResources 1) if use Android Studio 2.2 shrinkResources false buildTypes { release {

\build\intermediates\res\resources-anzhi-debug-stripped.ap_' specified for property 'resourceFile' does not exist

[亡魂溺海] 提交于 2020-01-18 21:08:08
问题 I updated Android Studio to version 2.0. The build failed and also takes longer than Android Studio version 1.5 to build. Every time I run my application, I clean and reload the project, but it's no use. The error message is: \build\intermediates\res\resources-anzhi-debug-stripped.ap_' specified for property 'resourceFile' does not exist. 回答1: Having same issue ! So instant run is not compatible with shrinkResources 1) if use Android Studio 2.2 shrinkResources false buildTypes { release {

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

拟墨画扇 提交于 2020-01-02 19:11:11
问题 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

Back button in android webview within a fragment

余生颓废 提交于 2019-12-31 05:42:12
问题 I have created a webview within a fragment however when I am trying to press the back button, it is killing the app instead of going back. What i want is to go back when i press the back button and if i am already on home page the back button should kill the app. I have tried using all the solution in the given link. How to add "Go Back" function in WebView inside Fragment? Please help. 回答1: You can override the Activity's onBackPressed() method and check if there is any previous fragment in

How to put an update notification for your android app then the users will be directed to Google Playstore?

帅比萌擦擦* 提交于 2019-12-25 07:18:05
问题 For android mobile programmers I have a question. I want to put a notification for our mobile app, if the user click the update and agree to it. It will direct them to Google Playstore and then they will manually click the update button in playstore. I want to clarify if we need to make a web back end for the update notification or some methods or classes for the mobile itself to alert the users to update it manually without the help of the web back end. Thanks in advance. 回答1: Google Play

Android Studio 2.2.2: Failed to resolve Google Play-Services

前提是你 提交于 2019-12-24 05:47:09
问题 I was trying to create a demo project based on Google Map, for this I was using MapsActivity provided by android studio. Everything is fine excluding the Google Play services. Android studio is failed to resolve play-services and throwing an error- Error:(27, 13) Failed to resolve: com.google.android.gms:play-services:9.4.0 Install Repository and sync project Show in File Show in Project Structure dialog Project Gradle // Top-level build file where you can add configuration options common to

Exception in plugin Android Support, Worker exited due to exception

最后都变了- 提交于 2019-12-23 16:51:33
问题 I just updated to Android Studio 2.2.2 (stable) on Linux and now I get constant crashes. Already tried: Invalidate Caches / Restart Clean Project Removing gradle cache: rm .gradle/caches/* -rf Removing Android Studio config directory: .AndroidStudio2.2 Worker exited due to exception: Method getName in class org/jetbrains/android/dom/resources/ResourceElement has illegal modifiers: 0x411 java.lang.ClassFormatError: Method getName in class org/jetbrains/android/dom/resources/ResourceElement has

How to add extra test runner parameter in Android Studio 2.3 instrumented tests

半城伤御伤魂 提交于 2019-12-23 07:11:07
问题 In Android Studio 2.3 there is no field that allows user to setup additional test runner parameters in Edit configuration window for Android Instrumented Tests , however this option was present in 2.2.x version. Is there any other way in new AS (except from running test manually from command line) to add extra runner parameters to espresso tests? edit: I've filled an issue on bug tracker: https://code.google.com/p/android/issues/detail?id=231797&q=instrumentation&sort=-opened&colspec=ID

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

梦想与她 提交于 2019-12-22 08:24:45
问题 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! 回答1: Try to change the default android plugin version 2.2 alpha to 2.1 stable. classpath 'com.android.tools