android-studio

Why is the Android Studio emulator giving me a framebuffer error on startup?

六眼飞鱼酱① 提交于 2020-01-15 10:09:34
问题 I'm on a Windows 7 PC. When I run the Android emulator from Android Studio on the command line, I get this error: Failed on eglChooseConfig Could not initialize emulated framebuffer I can fix it by selecting software rendering, but that's really slow, and the GPU emulation was working a couple days before; it just suddenly stopped working. I've tried changing it not to use multi-core CPU since it's labelled experimental, but I get the same problem. Update: I just upgraded from AS 2.3.3 to 3.0

Why is the Android Studio emulator giving me a framebuffer error on startup?

依然范特西╮ 提交于 2020-01-15 10:09:19
问题 I'm on a Windows 7 PC. When I run the Android emulator from Android Studio on the command line, I get this error: Failed on eglChooseConfig Could not initialize emulated framebuffer I can fix it by selecting software rendering, but that's really slow, and the GPU emulation was working a couple days before; it just suddenly stopped working. I've tried changing it not to use multi-core CPU since it's labelled experimental, but I get the same problem. Update: I just upgraded from AS 2.3.3 to 3.0

how to set image inside framelayout

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-15 09:58:48
问题 I want to set image inside the FrameLayout but is overlapping the framelayout's background 回答1: This is sample example, https://snag.gy/IrawbT.jpg item last put on the stack will be drawn on top of the items below it. This layout makes it very easy to draw on top of other layouts, especially for tasks such as button placement. To arrange the children inside of a FrameLayout use the android:layout_gravity attribute along with whatever android:padding and android:margin you need. <FrameLayout

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

ClassNotFoundExeption

五迷三道 提交于 2020-01-15 09:26:07
问题 I'm new to android so might be missing something obvious. I'm running af small service simulating some calls, but having trouble with the service occasionally restarting mid task. It's not always the same task, and sometimes it doesn't happen at all. the errors produced when the service restarts: 10-13 13:49:14.469 20691-20691/test.callsimulator E/art: ClassLinker::FindClass not found:Lcom/android/tools/fd/runtime/Server$SocketServerThread; 10-13 13:49:14.481 20691-20691/test.callsimulator E

Error:Execution failed for task ':app:processDebugAndroidTestManifest'

和自甴很熟 提交于 2020-01-15 09:16:09
问题 this is what happened when i update buildToolsVersion from 26.0.1 to 26.0.2 . Error:Execution failed for task ':all:processDebugAndroidTestManifest'. Manifest merger failed : Attribute meta-data#android.support.VERSION@value value=(26.0.2) from [com.android.support:cardview-v7:26.0.2] AndroidManifest.xml:25:13-35 is also present at [com.android.support:support-v13:26.0.1] AndroidManifest.xml:28:13-35 value=(26.0.1). Suggestion: add 'tools:replace="android:value"' to element at

Android Studio not working after update 1.3.0

余生颓废 提交于 2020-01-15 07:09:44
问题 I've been running Android Studio on Windows 7 since January and haven't performed an update until today. I started having a problem last week in which AS caused my computer to crash every time I tried to run my application, so I decided to finally stop ignoring the popup which told me updates were available. After downloading and running the file from the Android site, I'm seeing a plethora of error messages along the lines of: Unable to save settings. Failed to save settings. Please restart

How instagram or direct not change shape in icon launcher to circle in android oreo

与世无争的帅哥 提交于 2020-01-15 07:07:18
问题 How instagram not change shape in your icon to different mask (circle square, teardrop) in Android oreo. screen shot of device with instagram installed: I create the design of icon that Android indicate in this page Designing Adaptive Icons screen shot of device with Direct installed: This the code! <?xml version="1.0" encoding="utf-8"?> <adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> <background android:drawable="@color/ic_launcher_background"/> <foreground android

Default Activity Not Found - Bug in Android Studio 3.3

…衆ロ難τιáo~ 提交于 2020-01-15 06:38:32
问题 When I create a new project in Android Studio 3.3, it shows an error at Run -> Edit Configurations saying default activity is not found. <?xml version="1.0" encoding="utf-8"?> <android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".MainActivity"> <TextView

How to import project files without Gradle files into Android Studio

淺唱寂寞╮ 提交于 2020-01-15 05:58:07
问题 I want to import a project into my Android Studio. It works well in Eclipse when my friend gave it to me. But I couldn't import it into my Android Studio. And all the tutorial told me that I should add/edit the Gradle files when there is no Gradle files in this project. So what am I going to do without having to download the Eclipse IDE? Many thanks. 回答1: You can export the project from eclipse to a gradle project. Right clicks your project. Clicks the 'export' in the popup menu. Choose