android-studio-3.0

Execution failed for task mockableAndroidJar, mockable-android- . jar already exists

廉价感情. 提交于 2019-12-19 06:55:09
问题 I am facing issue with Android Studio 3, gradle android plugin 3 with build target 27 and support lib 27.0.0 Error:Execution failed for task ':module:mockableAndroidJar'. > Output file [[...]/build/generated/mockable-android-27.v3.jar] already exists. I have to clean or manually delete all mockable-android jars from the generated folder time to time. So this means instead of getting better build times, I have to clean the project most of the times. 回答1: Simply cleanup the existing jar before

Android SDK (Nexus 5X API28 x86) stopping at preparing for setup

我怕爱的太早我们不能终老 提交于 2019-12-18 20:05:24
问题 I've recently picked up the Android SDK and I'm attempting to configure an SDK to test programs and maybe do some basic Java app programming on. My problem is that it apparently won't finish its setup. Apart from the freeze, that the start button is grayed out and I do not have access to the Google Play store. I do have access to the Google Play Music and Movie stores. My main issue with testing any apps to confirm that this would be workable for development is that I have no access to the

Android Studio 3.1 does not render xml file due to a java class missing

夙愿已清 提交于 2019-12-18 11:55:21
问题 Always shows me the error in the massages java.lang.ClassNotFoundException: android.view.View$OnUnhandledKeyEventListener My project is literally hello world and I just open android studios and click on the empty activity and then wait for the build to finish but it doesn't render the app. I reinstalled android studios and JDK10. but it doesn't work. the project shows fine in virtual device and i can even edit hello world to any string, but in XML view, it just shows a white screen . here is

android studio 3.0 Canary 1 : project refresh failed

允我心安 提交于 2019-12-18 05:53: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 {

android studio 3.0 Canary 1 : project refresh failed

自古美人都是妖i 提交于 2019-12-18 05:52:22
问题 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 {

Unexpected auto-formatting of XML layout in Android Studio

帅比萌擦擦* 提交于 2019-12-17 22:49:14
问题 I am using AS since 4 years. After last update I observed unexpected auto-formatting of XML layout (while typing and with Code -> Reformat Code too). Here is an example: When I started typing relative layout, it expanded start tag, width property, height property and closing tag in the same line. Properties starts after indentation. No space between views after reformat. Question Is this a feature in new AS? then how can I revert it back? Did I change some setting? What setting should I

Failed to load AppCompat ActionBar with unknown error android studio 3.0

浪尽此生 提交于 2019-12-17 20:51:19
问题 After updating android studio to version 3.0, I can't preview layout of my app, I get the error like: 'Failed to load AppCompat ActionBar with unknown error'. How can I fix this? but if I run the app on my device phone, its run normally. This is my Gradle file: apply plugin: 'com.android.application' android { compileSdkVersion 24 buildToolsVersion '26.0.2' defaultConfig { applicationId 'com.halloo' minSdkVersion 16 targetSdkVersion 24 versionCode 1 versionName "1.0" testInstrumentationRunner

android studio 3.0 error: style attribute '@android:attr/windowEnterAnimation' not found

久未见 提交于 2019-12-17 18:54:12
问题 I had followed steps of migrating to android studio 3.0 updgradation. build.gradle flavorDimensions 'dimensionless' D:\R\merchant\projapp\popuplibrary\build\intermediates\bundles\debug\res\values\values.xml Error:(28, 5) error: style attribute '@android:attr/windowEnterAnimation' not found. C:\Users\user.gradle\caches\transforms-1\files-1.1\appcompat-v7-25.3.1.aar\f7bb6db2aa55d14683d1c9ddd8d49e03\res\values\values.xml Error:java.util.concurrent.ExecutionException: com.android.tools.aapt2

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

不问归期 提交于 2019-12-17 18:44:46
问题 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(

Android Studio 3.0: buildToolsVersion not found in gradle files

自作多情 提交于 2019-12-17 18:27:55
问题 I recently installed new stable version of Android Studio (v3.0). Then created a new project and there was not any problem. But saw there is no buildToolsVersion field in the app-level build.gradle file. Even I searched all project files ( Ctrl Shift F ), but didn't find anything! What does this mean? And how can I determine what is the version of Build Tools in my app module? build.gradle (Project): // Top-level build file where you can add configuration options common to all sub-projects