android-studio-2.2

enable Annotation Processors option in Android Studio 2.2

℡╲_俬逩灬. 提交于 2019-11-27 04:04:14
问题 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

Android Studio: Gradle sync failed: Connection timed out: connect

风流意气都作罢 提交于 2019-11-27 03:13:00
问题 My Android Studio was working fine till morning, but since tonight I get error saying "Gradle sync failed: Connection timed out: connect. If you are behind an HTTP proxy, please configure the proxy settings either in IDE or Gradle.". I am not using any proxy server. Even the option for HTTP proxy is set to "no proxy". I have no idea how to get this working. I tried giving public access to Android Studio in firewall but it didn't work. Any help/solution is welcome. P.S. My Android Studio

android studio 2.2 layout editor refresh button

点点圈 提交于 2019-11-27 03:02:24
问题 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. 回答1: 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

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

风流意气都作罢 提交于 2019-11-27 02:11:23
问题 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. 回答1: find which task is depending on assembleDebug task changing the following did

Unsupported method: AndroidProject.getPluginGeneration() while running project

假如想象 提交于 2019-11-27 00:04:55
问题 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:

ERROR: resizing partition e2fsck failed with exit code 8

房东的猫 提交于 2019-11-26 20:33:22
问题 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:

Android Studio Error: Error:CreateProcess error=216, This version of %1 is not compatible with the version of Windows you're running

大城市里の小女人 提交于 2019-11-26 11:16:25
Installed Android Studio 2.2 Preview 2 and getting this error: Error:CreateProcess error=216, This version of %1 is not compatible with the version of Windows you're running. Check your computer's system information and then contact the software publisher Screenshot: I re-installed the JDK, still same issue. I even tried to use the embedded JDK but still having the same issue: user6442395 I had the same issue, but I have resolved it the next: 1) Install jdk1.8... 2) In AndroidStudio File->Project Structure->SDK Location, select your directory where the JDK is located, by default Studio uses

Warning: Do not place Android context classes in static fields; this is a memory leak (and also breaks Instant Run)

自古美人都是妖i 提交于 2019-11-26 10:27:20
问题 Android Studio: Do not place Android context classes in static fields; this is a memory leak (and also breaks Instant Run) So 2 questions: #1 How do you call a startService from a static method without a static variable for context? #2 How do you send a localBroadcast from a static method (same)? Examples: public static void log(int iLogLevel, String sRequest, String sData) { if(iLogLevel > 0) { Intent intent = new Intent(mContext, LogService.class); intent.putExtra(\"UPDATE_MAIN_ACTIVITY

Android Studio Error: Error:CreateProcess error=216, This version of %1 is not compatible with the version of Windows you're running

☆樱花仙子☆ 提交于 2019-11-26 02:19:39
问题 Installed Android Studio 2.2 Preview 2 and getting this error: Error:CreateProcess error=216, This version of %1 is not compatible with the version of Windows you\'re running. Check your computer\'s system information and then contact the software publisher Screenshot: I re-installed the JDK, still same issue. I even tried to use the embedded JDK but still having the same issue: 回答1: I had the same issue, but I have resolved it the next: 1) Install jdk1.8... 2) In AndroidStudio File->Project