android-studio-3.0

Runtime errors with library package - Android Studio Canary 6 & Canary 7

六月ゝ 毕业季﹏ 提交于 2019-12-13 08:47:33
问题 I'm unable to run the project in Canary 6 and Canary 7. Gradle build succeeded. At compile time it didn't show any errors. At runtime its showing errors with all library classes(gradle dependency, jar dependency). Some of them are, error: package retrofit2 does not exist error: package android.support.v7.app does not exist error: package com.google.gson does not exist. Error: Note: @BindView field with unresolved type (PercentRelativeLayout) must elsewhere be generated as a View or interface.

Preview is unavailable until a successful build… Gradle sync taking to much time

大城市里の小女人 提交于 2019-12-13 03:54:33
问题 I'm using latest android studio in Linux mint 18 the preview is not showing and gradle sync taking to much time.. Whenever I give build gradle in terminal after a minute it's showing build failed and giving suggestions run with --stack trace 回答1: Sync your project with gradles. from: File --> Sync Project with Gradle Files 来源: https://stackoverflow.com/questions/48786516/preview-is-unavailable-until-a-successful-build-gradle-sync-taking-to-much-ti

Execution failed for task after updating android studio to 3.0

自闭症网瘾萝莉.ら 提交于 2019-12-12 13:26:52
问题 When I updated my Android Studio 3.0, I get an error unable to merge with dex. Then I added mutiDexEnabled true and also added com.android.support:multidex:1.0.1 in build.gradle . Then I'm getting the error below: Error:Execution failed for task ':app:transformClassesWithMultidexlistForDebug'. java.io.IOException: Can't write [C:\Users\user\AndroidStudioProjects\KnightFox-IN BUDGET\app\build\intermediates\multi-dex\debug\componentClasses.jar] (Can't read [C:\Users\user.gradle\caches

Android Studio 3.0 Canary 4 Emulators Stuck in Reboot

99封情书 提交于 2019-12-12 13:05:13
问题 So yesterday I was using my TV, Mobile and Wear emulators (on Android Studio) just fine. Today in the morning an update came and I went and downloaded it. That's all I did. Since then my TV and Mobile emulator are stuck in rebooting, and I can't get them to do anything beyond that. My AVD are both on API 23. This is my error log: Emulator: coreaudio: Could not lock voice for audioInputDeviceIOProc Emulator: Reason: Invalid argument I can't find anything related to these error messages and the

Butterknife gradle error on Android Studio 3.0 due to android-apt plugin

孤街醉人 提交于 2019-12-12 10:54:04
问题 After upgrading to Android Studio 3.0 I had some issues with gradle that I was able to fix checking on the developers website However, I was not able to find how to fix the issue with the apply plugin: 'android-apt' I have tried several things such as removing it from the project gradle and add it to the app gradle as annotationProcessor 'com.neenbedankt.gradle.plugins:android-apt:1.8' . also removed the apt, etc, etc. Anyway, Studio is complaining about it. Any help is greatly appreciated.

Can't rename resource (layout) files (Android Studio 3.0 Beta 3 is installed)

天大地大妈咪最大 提交于 2019-12-12 07:39:15
问题 Beta 3 doesn't allow to rename resource files such as layout files. It does show the renaming dialog, but when trying to apply changes it reads the following error message: Refactoring cannot be performed File .../myapplication/R.java is read-only Also I have Beta 2 version in a neighbor directory and renaming works perfect. Any ideas how to fix that? UPD: I reported the bug (#65079508), and now it is marked as a duplicate of 65032914 https://issuetracker.google.com/issues/65032914 So, the

Is it possible to discover and run third-party Android Instant Apps on an emulated device?

旧街凉风 提交于 2019-12-12 07:30:42
问题 I'm currently trying to learn about Android instant apps. Since I don't own any real devices that support them, I'm using the emulator (from Android Studio 3.0 Canary 9). I can successfully run "toy" instant apps (like this) on my emulated Nexus 5x (with Play Store), so I believe that my development environment is configured correctly. However, I was curious to learn about the discovery process for third-party apps, and find out what the user experience is like. Lacking a suitable device of

Error:Execution failed for task ':app:javaPreCompileDebug'. Android 3.0+ lombok

两盒软妹~` 提交于 2019-12-12 04:46:38
问题 I want use lombok in Android Studio 3.0 I get error Error:Execution failed for task ':app:javaPreCompileDebug'. > Annotation processors must be explicitly declared now. The following dependencies on the compile classpath are found to contain annotation processor. Please add them to the annotationProcessor configuration. - lombok-1.16.18.jar (org.projectlombok:lombok:1.16.18) Alternatively, set android.defaultConfig.javaCompileOptions.annotationProcessorOptions.includeCompileClasspath = true

Android Studio: Failed to configure project

核能气质少年 提交于 2019-12-12 04:07:36
问题 I am unable to run my app due to the error below. When I try to clean or rebuild the project, I still get the same error. Error:A problem occurred configuring project ':app'. Failed to create directory '/home/sukumar/.gradle/caches/3.3/scripts-remapped/build_9z8fmh3h5n5zou3vkratrypnt/2nngi2eh7ayb88x5py6bqkz9r/cp_proj1efd45104ffa2d33563b85b9edda76e3' What is the problem and how can I solve it? Thanks. 回答1: I closed android studio and then deleted the .gradle folder. Then I reopened android

Program type already present during compile

天大地大妈咪最大 提交于 2019-12-11 18:32:17
问题 I have some strange situation during build time. Here is message: Program type already present: org.simpleframework.xml.Attribute dependencies { implementation 'com.android.support:multidex:1.0.1' implementation 'com.android.support:appcompat-v7:25.4.0' implementation 'com.google.android.gms:play-services:11.8.0' implementation 'com.google.gms:google-services:3.3.1' implementation 'com.facebook.fresco:fresco:0.6.0' implementation files('libs/activation.jar') implementation files('libs