Android Studio 2.2 for Mac Error unknown property 'compileReleaseJavaWithJavac' - android

I upgraded to Android Studio 2.2 yesterday since it's made available in the stable channel. An app that I had working properly in AS v2.1.3 now results in the following error whenever I try to Debug/Run the app.
A problem occurred configuring project ':app'. Could not get unknown
property 'compileReleaseJavaWithJavac' for project ':app' of type
org.gradle.api.Project
If I change Gradle Plugin version to 2.1.3 in build.gradle(Project), everything works again and I can run/debug the app without issue.
I have searched on SO and found similar posts but none of the suggested solutions worked for me so far. I'm developing on a Mac and using the embedded JDK shipped with 2.2.

Please try to remove the $PROJECT_HOME/.gradle directory after changing the gradle plugin 2.2.0, and clean and build again.

I upgraded my Mac to Sierra and now everything is working fine. I no longer get any error when I run/debug app on Android devices. I'm using Android Studio 2.2 with Gradle plug-in 2.2.0.
So for anyone experiencing similar issues with Android Studio 2.2 and Yosemite, try upgrading your OS and see it resolves the issue. Good luck.

Related

react-native-cli - Fails to run the android project

I'm trying to run a React Native project in my Ubuntu 16.04 PC using the react-native run-android command. However it gives me the following error.
The strange thing is that when I create and run an Android project using the Android Studio for the API level 23, it compiles and runs perfectly fine.
Can someone help me with this issue please?
Have you checked you have build-tool version 23.0.1 installed?
you can check it in your SDK manager
Upgrading the Gradle version solved my issue.
I went through the following steps.
Opened the android folder inside the React Native project using
Android Studio.
Accepted the prompt that shows to update the version
of Gradle.

why can't I use my android studio 2.3 Instant run features?

My AS is 2.3 official version
and I already open the Instan run on the settings
but it can't use,and the lightning symbol is always not light,just like this
I don't why this is,who has other ideas?
Make sure the Android Gradle plugin is version 2.3.0 and Gradle is version 3.3.
Else it wont work. Android studio should tell you that by default. Normally when you open your project or after a clean build.

Gradle project sync failure in android studio 1.2.2

I have an error i.e. error(5,0) Invalid revision:22.0.c3 when i do Gradle project sync and it fails by showing this message what should i do now I have android studio 1.2.2
Rather than trying to fix something in an outdated version. Upgrade your Android studio to the latest version. 2.1 as of today.
Old versions of android studio tend to have problems with gradle sync/build. You should upgrade your Android studio to v2.1 and try again. The problem you are facing will most probable eliminate after the upgrade.

Android Studio 1.0 RC 1 Gradle build issues - Could not run build action using Gradle installation

I'm getting error while importing gradle projects. The same when creating new project.
Using gradle from console builds project fine.
So I think that the problem somewhere in the android studio.
I was changing the OS(win 7 to win 8.1), java version(1.6, 1.7, 1.8), android studio versions(from 0.8 to 1.0), gradle versions(1.10, 1.12, 2.1, 2.2), using gradel wrapper and downloaded gradle zips.
Nothing helped.
I don't know how I can fix this, please help
Added logs of android studio
I've solved this problem - re-installed some of the environment and now it's working fine with jdk 8. The main change that I did - I've installed everything(JDK 8, android studio, Android sdk) to the default folders. Try this if you are facing the same issue

Failed to import Gradle project on android studio

I know that this has been asked for 10 times but I have tried all solutions have been proposed on stackoverflow but none of them worked for me.
I have tried these but no result:
Android Studio Stuck at Gradle Download on create new project
Android Studio error installing Gradle
Build issues with Gradle Android studio 0.2.1
This problem happens when we work with android sdk studio different from what you should do is install Android Support Repository
https://sites.google.com/a/android.com/tools/knownissues

Categories

Resources