android-studio-3.0

Why I'm Getting Duplicate Class When Running My Android Project

筅森魡賤 提交于 2019-11-29 15:16:07
I'm in the process of adding a navigation drawer to my app. and I'm getting errors. The app gradle synchs just fine. but when I run the app I get a bunch of duplicate class error. I think it might be because I have conflicting dependencies added and that I'm using v7 28.0.0 and some of the errors mention app: v4. all the examples I've seen online use v7 28.0.0 eventhough I have this in main_activity.xml which uses v4. don't know if it's got something to do with the error. android.support.v4.widget.DrawerLayout Caused by: com.android.ide.common.workers.WorkerExecutorException: 1 exception was

Android Studio “error: failed to read metadata” after update to 3.0.0

蹲街弑〆低调 提交于 2019-11-29 15:00:16
问题 I've updated Android Studio to v3.0.0 and now I cant build my project. Android Studio add .flat to resources file names on build and the build crash because it can't recognize the .flat extension. I've tried to clean the project and rebuild it but I still get this error. I don't have any idea of what could cause this. I hope someone can help me solve my problem cause since Studio can't do a successful build, it can't find my dependencies and I can't work. Gradle Console Output Executing tasks

android studio 3.0 Canary 1 : project refresh failed

戏子无情 提交于 2019-11-29 10:14:45
I tried to load my project in this new Android Studio 3.0 Canary 1 . It was running perfectly in my previous Android Studio Version 2.4 preview 7 This is the error I am facing: Error:Could not resolve all dependencies for configuration ':sample:devCompileClasspath'. Project :sample declares a dependency from configuration 'devCompile' to configuration 'dev' which is not declared in the descriptor for project :library. My gradle configs are as below: Project Level Build Gradle: buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:3.0.0-alpha1'

Android Studio Logcat Search

江枫思渺然 提交于 2019-11-29 10:01:36
I am facing a strange problem with android studio. In logcat monitor, there is not much space for search box. I am not able to find out any option to make it larger. is there any way to make this larger? Actually the problem is with the device name, which is too long and due to this it squeezes the Logcat search. So to the solution I got for this name issue is to change the device name (whether its Genymotion or AVD). So to change your device name follow below steps : For AVD : Go to Tools --> Android --> AVD Manager --> Select your device and then change the device name to shorter one. For

Android profiler not supported for Kitkat devices/google glass in android studio 3.0

霸气de小男生 提交于 2019-11-29 06:14:02
问题 From android studio 3.0 Android Monitor turned to Android profiler . But, when using google glass device or other android kitkat devices it's showing below message in android profiler window: Device not supported. Android profiler requires a device with API 21(Lollipop) or higher. What's the solution for Kitkat devices to use the latest Android Profiler once android studio 3.0 available for update in stable version? 回答1: It seems that the Android Device Monitor (Tools->Android->Android Device

Android Studio 3.0 - Logcat window can not show filter input control

时光怂恿深爱的人放手 提交于 2019-11-29 05:32:13
I can not type a text filter in the logcat input text control on Android Studio 3.0.1, because it is too small. My screen is big enough. I did an event switch to fullscreen but this did not solve the problem. See the screenshot below. Has anyone seen this problem? How do you solve it? Try clicking on the setting (cog-wheel icon) inside the logcat window and select the windowed or the floating modes, and then try to stretch the window size as long as you can use CTRL+F in logcat to find or filter logcat. then a new search bar comes below to that bar you can filter there. This issue is regarding

Problems with using tensorflow lite C++ API in Android Studio Project

一个人想着一个人 提交于 2019-11-29 05:02:08
I am currently working on a project regarding neural networks. For this, I want to build an Android Application which should use tensorflow [lite] to solve some object detection / recognition problems. As I want the code to be as portable as possible, I want to write most of the code in C++, thus using the C++ API of tensorflow lite over the Java API / wrapper. So, I modified tensorflow/contrib/lite/BUILD and added the following to be able to create a shared tensorflow library. cc_binary( name = "libtensorflowLite.so", linkopts=["-shared", "-Wl"], linkshared=1, copts = tflite_copts(), deps = [

Does Android Studio 3 support Java 9 for Android development? If so, what features of Java 9 are supported?

老子叫甜甜 提交于 2019-11-29 04:39:18
问题 I'm going to install Android Studio 3 in order to develop an Android application. I'd like to know if it is possible to use Java 9 for Android development? If so, does it support all of the Java 9 features? 回答1: As far as I know, the IDE itself supports Java 9. This means you can write a Java 9 desktop program, or run the IDE with JDK 9. However, Android itself does not support Java 9 (yet). You can still download JDK 9, although I have seen some questions on problems related to Android

Missing project.gradle in Android View

筅森魡賤 提交于 2019-11-29 02:55:25
问题 In Android Studio, project.gradle file is not show when in Android View, but is when in Project view Android View Project View How can I fix this ?? 回答1: From the Gradle Tool Window in Android Studio (View > Tool Window > Gradle) , Right click on the the project's Gradle config with (root) next to its name. Click on Ignore Gradle project , and right click again then click on Unignore Gradle project . 回答2: The trigger to this 'buggy' phenomenon actually lies outside your project folder.

Android Studio 3.0 Layout Preview render issues

帅比萌擦擦* 提交于 2019-11-29 00:37:35
I just updated my Android Studio to latest 3.0 and then the Layout Preview is not working anymore. I have tried open up different projects and they all have the same render issues. As I checked, I don't see any compile errors or gradle issues. So far, I tried Build Project Refresh Layout Clean Project Invalid Caches / Restart The following attached screenshot shows that some classes cannot be initiated but I dont get why and how to fix them. Thank you very much. Any hints could help. Updates: It seems there is a duplicate case at Render error in Android Studio 3.0 Layout Editor but mine