android-studio-2.3

Android Studio “extract method” shortcut Ctrl+Alt+M not working

允我心安 提交于 2021-01-26 10:57:59
问题 The android studio shortcut for extract function is not working for me. If I press Ctrl + Alt + M nothing is happening and when I tried to remap it to the same shortcut, I noticed that android studio doesn't seem to recognize the shortcut at all. So I tested my keyboard and everything should be working. I even reinstalled AS no dice. 回答1: I found out that Nvidia Geforce Experience was capturing Ctrl + Alt + M shortcuts from android studio, even though I wasn't running any game, and didn't run

Warning: Dangling Javadoc comment

末鹿安然 提交于 2020-07-04 23:31:50
问题 Since I updated my Android Studio (2.3.1) and build tools (2.3.1), I'm getting warning, Warning: Dangling Javadoc comment for comments like, /** set name with format, {@Link FORMAT_NAME} **/ setNameText(getFormattedName(FORMAT_NAME)); As you can see, I use javadoc style comment for linking and others. I'm wondering if there are other comment alternatives that have linking feature. Thanks. 回答1: It looks like you are using a Javadoc comment when you call the method setNameText . Javadoc

Running app in Android Studio

倾然丶 夕夏残阳落幕 提交于 2020-06-29 12:05:53
问题 I have an Asus Zenfone 2 Laser and I'm using android studio to create apps. When I load an application stored in the hard disk of my computer for debugging, no problems, but when the application is stored in a USB device, at first android studio warns that there is already a version of the same app in my phone and asks if it has to uninstall it in order to install the new version; when I click the button to uninstall it, it doesn't install the new one... How can I fix the problem? Thanks 回答1:

Running app in Android Studio

江枫思渺然 提交于 2020-06-29 12:05:50
问题 I have an Asus Zenfone 2 Laser and I'm using android studio to create apps. When I load an application stored in the hard disk of my computer for debugging, no problems, but when the application is stored in a USB device, at first android studio warns that there is already a version of the same app in my phone and asks if it has to uninstall it in order to install the new version; when I click the button to uninstall it, it doesn't install the new one... How can I fix the problem? Thanks 回答1:

Running app in Android Studio

不羁的心 提交于 2020-06-29 12:04:05
问题 I have an Asus Zenfone 2 Laser and I'm using android studio to create apps. When I load an application stored in the hard disk of my computer for debugging, no problems, but when the application is stored in a USB device, at first android studio warns that there is already a version of the same app in my phone and asks if it has to uninstall it in order to install the new version; when I click the button to uninstall it, it doesn't install the new one... How can I fix the problem? Thanks 回答1:

Android Studio fails to install update (error : Failed to read or create install properties file.)

大憨熊 提交于 2020-06-24 07:02:46
问题 Screenshot of error I am running [ Android Studio 2.3 Build #AI-162.3764568, built on February 24, 2017 JRE: 1.8.0_112-release-b06 amd64 JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o] on Ubuntu 16.04. From last few days android studio gives me error on trying to update. I have no idea how to fix this. 回答1: I ran the Android studio as administrator and then it worked as it is a permission issue. 回答2: chmod 777 $ANDROID_HOME -R is not a good solution like @spark mentioned. I solved it by

Android AVD emulator scaling issue in windows 10

青春壹個敷衍的年華 提交于 2020-04-16 06:09:30
问题 I'm on windows 10, Andorid Studio 2.3.3, I created a an android avd with the below configuration but the display won't scale properly, the display will be only in a corner. Name: 4_WVGA_Nexus_S_API_23 CPU/ABI: Google APIs Intel Atom (x86) Path: C:\Users\user\.android\avd\4_WVGA_Nexus_S_API_23.avd Target: google_apis [Google APIs] (API level 22) Skin: 480x800 SD Card: C:\Users\user\.android\avd\4_WVGA_Nexus_S_API_23.avd\sdcard.img hw.dPad: no runtime.network.speed: full hw.accelerometer: yes

Executing tasks: [clean, :app:assembleDebug] ERROR - Android Studio 3

◇◆丶佛笑我妖孽 提交于 2020-02-24 11:51:09
问题 i am new of android studio. and i am making my first apps, in the previous version 2.3 i dont have problem or stuck when making apps. but when i upgrade to the new version 3.0 i got problem, and when i trying to rebuild apk. it stuck at Executing tasks: [clean, :app:assembleDebug] . same problem when i build apk, rebuild and clean up. anyone can help fix this ? I still cant fix this. 10 actionable tasks: 9 executed, 1 up-to-date Executing tasks: [clean, :app:assembleDebug] Parallel execution

Cannot find declaration in C++ code after upgrade to NDK 14

谁说我不能喝 提交于 2020-01-15 09:45:13
问题 I updated my Android Studio 2.3 to use NDK 14. Everything works as expected when you use the code (code compiles and the app is running as expected). However, for some reason, when you try to jump to the deceleration of any C++ object/function/variable you get a message that studio (regardless of the code): Cannot find declaration to go to Here is a screenshot of what I see: Edit: I just downgraded back to NDK 13b and the problem was solved. This is a workaround, but without a fix I would not

Android Studio 2.3 sdk manager tabs grayed out

好久不见. 提交于 2020-01-12 07:42:20
问题 Android Studio 2.3 --> Configure -> SDK Manager. These tabs are grayed out: SDK Tools, SDK Update Sites. Also, checkbox "Show Package Details" is grayed. The system updates normally. There are no error messages. I think this happened at some point with Studio 2.2. But the standalone SDK manager, which has been deprecated with 2.3, always worked. With 2.3, I can update what is there, but I cannot install/delete packages. I reviewed some of the previous reports of similar errors. I have tried: