android-studio

Android Studio app icon

烂漫一生 提交于 2020-01-23 11:52:53
问题 (I've updated the post) Here's how I have my proyect: Manifest: android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:roundIcon="@mipmap/ic_launcher_round" android:label="@string/app_name" Mipmap: Created by New > Image Asset I selected Launcher Icons (Adaptative and Legacy) Icons Also, when I open any of them I see the icon I want: Icon Now, the launcher icon works just fine: Launcher Icon The problem I'm having is that it does not want to update the icon that is displayed

How to generate output APK file with Customised name in Android Studio?

≡放荡痞女 提交于 2020-01-23 09:46:26
问题 I want to generate output apk file using customized name. Eg. By default, android studio generates "app-debug.apk" file. But I want it to be - "MyAppName_myCurrentProdFlavour_vMyVersionName.apk" How to do this using build.gradle file of module 回答1: Easiest way Before app_debug.apk After com.pcvark.jobtest-v1(1.0)-debug.apk android { .. defaultConfig { ... setProperty("archivesBaseName", applicationId + "-v" + versionCode + "(" + versionName + ")") } Tip You can also set versionNameSuffix for

Intel HAXM is required to run this AVD Your CPU does not support VT-x

南笙酒味 提交于 2020-01-23 07:32:45
问题 I know there are a lot of similar questions out there, and I am new to Android world. I get the following errors as I try to run app (Shift + F10) Intel HAXM is required to run this AVD. Your CPU does not support VT-x. Unfortunately, your computer does not support hardware accelerated virtualization. Here are some of your options: User a physical device for testing Develop on a windows/osx computer with an intel processor that supports VT-x and NX Develop on a linux computer that supports VT

Intel HAXM is required to run this AVD Your CPU does not support VT-x

和自甴很熟 提交于 2020-01-23 07:32:42
问题 I know there are a lot of similar questions out there, and I am new to Android world. I get the following errors as I try to run app (Shift + F10) Intel HAXM is required to run this AVD. Your CPU does not support VT-x. Unfortunately, your computer does not support hardware accelerated virtualization. Here are some of your options: User a physical device for testing Develop on a windows/osx computer with an intel processor that supports VT-x and NX Develop on a linux computer that supports VT

Terminal not registering typing in Android Studio

霸气de小男生 提交于 2020-01-23 06:56:22
问题 When I open the terminal in android studio and type, nothing registers and the cursor stays put. The screen shot caught the cursor between flashes but it stays right by the > after app. Someone else had the same issue 4 months ago here : Android Studio terminal issue But no one came forward with solutions. Anyone know how to fix this? 回答1: This behavior is a problem related to an incompatibility between IntelliJ (and then Android Studio) and the new windows 10 console (https://youtrack

Unsupported Modules Detected: Unfortunately you can't have non-Gradle Java modules and Android-Gradle modules in one project

我与影子孤独终老i 提交于 2020-01-23 04:46:10
问题 Unsupported Modules Detected: Compilation is not supported for the following modules: MemorandamApp. Unfortunately, you can't have non-Gradle Java modules and Android-Gradle modules in one project. This Error caused to erase my files. Newly opened files are affected by this problem. 回答1: 1- close the project 2- close Android Studio IDE 3- delete the .idea directory 4- delete all .iml files 5- open Android Studio IDE and import the project The answer is taken from HERE 回答2: Switch to project

Android studio 3.1.4 - failed to download samples index (when trying to download google code samples)

大城市里の小女人 提交于 2020-01-23 02:54:09
问题 I have tried both on a windows 10 machine and Ubuntu (18.04) with the latest release of Android studio I am unable to download Google Code Samples. the error states 'Failed to download samples index, please check your connection and try again'. the fix suggested for an earlier instance of this issue from 2015 to change proxy settings from 'no proxy' to 'auto detected' doesn't seem to work with the latest (3.1.4) release of Android Studio. Update : Apparently this is an active issue at the

Library Project in Android Studio

若如初见. 提交于 2020-01-23 02:46:10
问题 I just installed Android Studio and wondering how I could create an Android Library project. The solution shared in this post does not work anymore. Update: I am not sure if this is enough to create a library project, but this are the steps I have done: Create a normal Android Project without an Activity Change apply plugin: 'com.android.application' to apply plugin: 'com.android.library' from build.gradle Delete the line applicationId "..." from build.gradle If you would like to create a

Android emulator running extremly slow on ubuntu 17.04 compared to windows 10

不想你离开。 提交于 2020-01-23 01:38:05
问题 I have tried installing kvm from this link: https://help.ubuntu.com/community/KVM/Installation But even after trying this the emulator is slow when running in Software GLES 2.0 mode and when I select Hardware GLES 2.0 as Graphics I am not able to launch the avd. It shows starting avd for a few seconds and then nothing happens after that. Is there something I am missing here ? 回答1: So, the problem is that Android SDK cannot find the OpenGL config and libs. Google distributes OpenGL libraries

Why does the Jama matrix inner dimension agree in the first iteration, but later it does not?

吃可爱长大的小学妹 提交于 2020-01-23 00:48:10
问题 Following Jama Matrices are defined in my code: P: 3*3 Matrix I: 3*3 identity Matrix K: 3*2 Matrix H: 2*3 Matrix Q: 3*3 Matrix Following is my code snippet: private Matrix getP() { P= (I.minus(K.times(H))).times(Q); Log.d("csv", "P is calculated"); return P; } While running the code, at first iteration it works, i.e, P is calculated is printed at the Logcat. However, it happens only once and the application gets stopped. Following is the error: java.lang.IllegalArgumentException: Matrix inner