android-studio

Android Studio - Company Domain Name

吃可爱长大的小学妹 提交于 2020-01-12 02:34:25
问题 In Android Studio when you create a new project, you are prompted to put down a domain name. I already know that you can make one up but what if you want to distribute your app on the Google Play store? Do I need to buy a web domain just to distribute my app even if I will never use my domain? 回答1: No you don't need to buy a domain name to distribute your app. The domain name is used by Android Studio to generate a package name. Your package name is just a unique identifier for your

IDE Error when creating a new activity in android studio 3.0.1

人盡茶涼 提交于 2020-01-11 23:38:39
问题 I am having problems to create new activities in Android Studios 3.0.1 for Windows 10, the issue is that until yesterday everything worked, but now it throws errors when trying to create a new activity and then, do not create it. Only create classes, or empty activities, but no other that appears in the gallery. The error message is: Inconsistent FILE tree in SingleRootFileViewProvider{myVirtualFile=LightVirtualFile: \targetFile, content=VirtualFileContent{size=69}}; nodeLength=137;

glTexImage2D: got err pre :( 0x506 internal 0x1908 format 0x1908 type 0x1401

五迷三道 提交于 2020-01-11 20:57:07
问题 When running my emulator with Android Studio I can't see anything on the emulator screen (everything is black). I get the following Event Log: Emulator:glTexImage2D: got err pre :( 0x506 internal 0x1908 format 0x1908 type 0x1401 I already tried to clean the project and rebuild it but nothing happened. I think it's something related just with the emulator. Does anyone know what's going on? 回答1: As @SirQuickWay's solution didn't work for me I had to change OpenGL ES Renderer and OpenGL ES API

NDK integration in Android studio

妖精的绣舞 提交于 2020-01-11 20:56:10
问题 Today I updated my android studio to 1.3 and I enter the NDK (android-ndk-r10e NDK version) path in local.properties (ndk.dir=C:\AndroidNDK\android-ndk-r10e\android-ndk-r10e) but I got this error. Error:Execution failed for task ':app:compileDebugNdk'. Error: NDK integration is deprecated in the current plugin. Consider trying the new experimental plugin. For details, see http://tools.android.com/tech-docs/new-build-system/gradle-experimental. Set "android.useDeprecatedNdk=true" in gradle

How to make RelativeSizeSpan align to top

一个人想着一个人 提交于 2020-01-11 17:15:08
问题 I have the following String RM123.456 . I would like to Make RM relatively smaller Make RM aligned to top exactly I almost able to achieve it by using spannableString.setSpan(new RelativeSizeSpan(0.50f), 0, index, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); textView.setText(spannableString, TextView.BufferType.SPANNABLE); The outcome looks like However, it is aligned to the bottom. It doesn't align to the top. I try to use SuperscriptSpan . It looks like It doesn't do what I want as SuperscriptSpan

Override resources with gradle depending on buildType

纵饮孤独 提交于 2020-01-11 15:34:05
问题 I want to override some strings in my res/strings.xml with gradle. I know that since Android Gradle Plugin 0.7.+ theres the possibilty to have a variant specific source folder. But my app has a lot of flavors and I don't want to add additionally variant specific folders. UPDATE 2014-01-17 What I want in detail: I have some variables in my Resources that are depending only by the buildType (e.g. "release"). First I thought my SOLUTION_1 (override data after resources were merged) is nice,

Where is adb.exe in windows 10 located?

瘦欲@ 提交于 2020-01-11 14:59:39
问题 I installed android studio 1.5 on windows 10. When I type in command line: adb I get command not found. Where can I get it from or where is it installed? 回答1: it is located in AppData hidden folder C:\Users\[user]\AppData\Local\Android\sdk\platform-tools From l33t's comment below %LOCALAPPDATA%\Android\sdk\platform-tools 回答2: You can find it here: %USERPROFILE%\AppData\Local\Android\sdk\platform-tools To save yourself the hassle in the future, add it to your path: Click 'Start'. Type 'Edit

Difference between Android Instrumentation test and Unit test in Android Studio?

放肆的年华 提交于 2020-01-11 14:47:50
问题 As of Android Studio 1.1rc there's Unit testing support and I'm wondering what's the difference between Android Instrumentation Tests and Unit tests. As I understand it: Unit tests are useful for testing code which doesn't call the Android API, and the Android instrumentation tests are rather integration tests to test Android API specific elements or GUI components. However if you use a framework like Robolectric or Mockito in your unit tests, you can test Android code (without the need of a

Why won't androidx support the navigation bar?

ⅰ亾dé卋堺 提交于 2020-01-11 14:36:18
问题 So I'm trying to get a navigation drawer done using this tutorial (https://www.youtube.com/watch?v=fGcMLu1GJEc&t=16s) however, I undersetand that something has changed in Android Studio since the tutorial was uploaded with AndroidX and toolbars and stuff, but I'm not sure what has changed. I've been trying for hours to understand the problem but I'm new to android studio so I'm clueless. The app just keeps crashing Basically, I just don't know what to import in regards to the toolbar to make

Error in Compiling : Android Studio

旧时模样 提交于 2020-01-11 14:19:24
问题 I am trying to modify an existing android project built on IntelliJ. I have searched and tried many things but still my error doesn't go :\ Error:(5, -1) android-apt-compiler: [main] D:\android\tinynote\app\src\main\res\values\theme.xml:5: error: Error retrieving parent for item: No resource found that matches the given name '@style/Theme.AppCompat'. What can I do ? Thanks in advance. Specifically, error is in theme.xml <?xml version="1.0" encoding="utf-8"?> <resources> <style name="Theme