android-studio-2.2

Espresso test recording feature in Android Studio 2.2

旧城冷巷雨未停 提交于 2019-11-28 16:47:17
问题 In Android Studio 2.2 there is supposed to be a test recording function? Where do I find it and how do I use it? 回答1: Update june 9th: It is now available with android studio 2.2 preview 3! Espresso Test Recorder Demo of the Espresso Test Recorder shown at IO is now included in Preview 3 Screenshot of my pc: Download it here or patch directly from android studio preview 2.2 Update may 30: Android Studio 2.2 preview 2 is out, but no 'Record Espresso Test' option yet. Unfortunately the Espresso

android studio 2.2 layout editor refresh button

送分小仙女□ 提交于 2019-11-28 09:36:25
can someone help me find the refresh layout button which was there before studio 2.2 to refresh the layout changes? Have searched every where but cannot find it.The problem is sometimes drawables are not refreshed and reflected in the preview window. twiceYuan I think it is a small bug, but I find a hack solution to resolve the problem. You can change a resource id to a wrong name. For example, you have a resource named ic_launcher . When you input ic_launcher1 , you can find the interface like this: Next, click the refresh link (sometimes, it says 'clear cache'). I tried changing the

Error:Could not find property 'assembleDebug' on project ':app'

孤街浪徒 提交于 2019-11-28 08:09:13
I am using 'com.android.tools.build:gradle:2.2.0-alpha6' and Android Studio 2.2 Preview 6. The build runs perfectly fine on Gradle 2.1.0, but to enable instant run it asks me to update Gradle plugin. On updating Gradle plugin, the build shows "Error:Could not find property 'assembleDebug' on project ':app'" . I already tried cleaning .gradle and .idea and reloading the project, but nothing works. Please help. find which task is depending on assembleDebug task changing the following did the trick for me at least: from: task findbugs(type: FindBugs, dependsOn: assembleDebug) to: task findbugs

Android Studio 2.2 preview1 errors

我们两清 提交于 2019-11-28 08:00:00
问题 So i'm trying to use Android Studio 2.2 preview-1 in Ubuntu 14.04 LTS. I'm using gradle-2.10 and gradle-plugin 2.2.0-alpha1 along with openJDK-8 . compileSdkVersion 23 buildToolsVersion "23.0.3" First the studio.sh didn't run and i found the solution to change #!/bin/sh to #!/bin/bash . Voila --it starts properly. But in build.gradle files, warning is shown-- 'dependencies' cannot be applied to '(groovy.lang.Closure)' and its not finding imported class from library project(includes a jar only

How to install the Android Studio 2.2 CMake package/tool?

流过昼夜 提交于 2019-11-28 03:47:15
问题 My recent Android Studio 2.2 preview 3 installation can't seem to find CMake. I tried installing it from the SDK Tools but there's no such package... 回答1: We won't be able to support CMake (or ndk-build) on 32 bit OS because it is not supported in CLion which is the tech we use for the C++ editor. The root cause is memory\address-space limits. Here's a helper page where I describe Android Studio C++ support including the 64 bit requirement: https://sites.google.com/a/android.com/tools/tech

Unsupported method: AndroidProject.getPluginGeneration() while running project

北城余情 提交于 2019-11-28 03:25:34
I'm trying to run my Project with Android Studio 2.2 but I get this error Unsupported method: AndroidProject.getPluginGeneration(). The version of Gradle you connect to does not support that method. I am using ButterKnife 8.4.0 My app gradle.file: buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:2.2.0' classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8' } } My module gradle file: apply plugin: 'com.android.application' apply plugin: 'android-apt' android { compileSdkVersion 23 buildToolsVersion "23.0.3" defaultConfig { applicationId "xxx

ERROR: resizing partition e2fsck failed with exit code 8

耗尽温柔 提交于 2019-11-27 21:07:50
I'm new to android studio. When I try to run my first programme in android studio on the emulator, I get this error. I have searched through other comments and have also tried decreasing my build.gradle from 24.0.0 to 23.0.3 as shown below, but it still doesn't work. I'm running on Nexus 5X API 23. android { compileSdkVersion 24 buildToolsVersion "23.0.3" } The error shown is: Cannot launch AVD in emulator. Output: emulator: WARNING: userdata partition is resized from 756 M to 800 M ERROR: resizing partition e2fsck failed with exit code 8 Hax is enabled Hax ram_size 0x60000000 HAX is working

enable Annotation Processors option in Android Studio 2.2

China☆狼群 提交于 2019-11-27 13:01:48
I'm trying to use java 8 in my project and for that I added the jack compiler. After enabling jack I started having problems with libraries that use Annotation Processing and looking in the web I read that I need android studio 2.2 and com.android.tools.build:gradle:2.2.0-alpha6 to compile libraries that generate code from annotations. I download Android Studio 2.2 preview 6 and converted my project to it. And after that I discovered that the apt gradle plugin is not supported anymore and then I needed to change every dependency that use apt to the use the new annotationProcessor option. Ex:

\\build\\intermediates\\res\\resources-anzhi-debug-stripped.ap_' specified for property 'resourceFile' does not exist

一笑奈何 提交于 2019-11-27 07:22:36
I updated Android Studio to version 2.0. The build failed and also takes longer than Android Studio version 1.5 to build. Every time I run my application, I clean and reload the project, but it's no use. The error message is: \build\intermediates\res\resources-anzhi-debug-stripped.ap_' specified for property 'resourceFile' does not exist. Having same issue ! So instant run is not compatible with shrinkResources 1) if use Android Studio 2.2 shrinkResources false buildTypes { release { signingConfig signingConfigs.release minifyEnabled false shrinkResources false zipAlignEnabled true debuggable

Could not resolve com.android.tools.build:gradle:2.2.3

蓝咒 提交于 2019-11-27 05:58:33
问题 I'm working on a mobile app project for work, but often when I attempt to run the application it gives me the following error: Error:A problem occurred configuring root project 'projectName'. Could not resolve all dependencies for configuration ':classpath'. Could not resolve com.android.tools.build:gradle:2.2.3. Required by: :projectName:unspecified No cached version of com.android.tools.build:gradle:2.2.3 available for offline mode. I have tried a number of different things including