Error:Unsupported method: BaseConfig.getApplicationIdSuffix().
The version of Gradle you connect to does not support that method.
To resolve the problem you can change/upgrade the target version of Gradle you connect to.
Alternatively, you can ignore this exception and read other information from the model.
I am trying to use ROSJava in Android Studio 3.0.1 but following the installation instructions given here leads to this error in Android Studio. Please advise.
I managed to solve the issue by using Android Studio 2.x.x instead of the newer 3.x.x version.
Related
I am trying to run the mlkit demo application from github on my local setup in Android studio , but when i am trying to build i am getting below error
"Cannot determine path to 'tools.jar' library for Android API 26 Platform (C:/Users//AppData/Local/Android/Sdk)"
I have tried installing jdk 8 which has tools.jar and put the java home path to the same jdk path but still error persists
Also when i try for android app bundle i get another issue as gradle plugin should be 3.2 or higher although my gradle plugin is higher than 3.2
Any help is appreciated
When I added Library in my Project And Library has a Google service
Old plugin version is 4.1.0 of Google Service in my Library
Verify gradle can configure itself, project builds
Set plugin version to 4.2.0 of Google Service
The only visible message is Cause: java.lang.NullPointerException
Gradle Version is 3.3.1
Please tell me what can I do in this situation ?
LogCat
Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/4.10.1/userguide/command_line_interface.html#sec:command_line_warningsCONFIGURE FAILED in 11s
ERROR: Cause: java.lang.NullPointerException
if you want to out from this error
so please backward of your google service version from 4.2.0 to 4.1.0 this is jugad not a solution
Error is gone......:)
There are several questions with solutions to this, but I'm not getting any luck with them.
I'm using IntelliJ (rather than the raw Android Studio). As far as I can tell I have the latest version of Gradle. I've never used Gradle before, so I'm not totally sure.
Error running app: This version of Android Studio is incompatible with the Gradle Plugin used. Try disabling Instant Run (or updating either the IDE or the Gradle plugin to the latest version)
It might be that Gladle is indeed out of date. How can I check and confirm or fix this?
If it's not that, what else can it be?
(I'm using the latest version of IntelliJ (2016.2.5) RUNNING ON Windows 10)
P.S. I have tried disabling Instant Run, with no effect.
You need to find out your gradle plugin version and check the compatibility with your IDE here. And here you can find which code base of Intellij Idea used in specific Android Studio version.
But I suggest that you should use Android Studio. GL
I am trying to include firebase SDK in my Android Studio Project. But it giving me an error. I am using latest JDK version (1.7.0_71) and it is asking for upgrading higher version to (1.7.0_67).
I need help for basic firebase setup SDK on android. I tried to setup it by the reference of following link: https://firebase.google.com/docs/android/setup#add_the_sdk.
I am getting following error: Please check attached screenshot
I had the same problem trying to GCM to an old android project.
The solution for me was to also add
classpath 'com.android.tools.build:gradle:2.1.2'
to the top-level build file dependencies, just before classpath 'com.google.gms:google-services:3.0.0'. For the old android project, this dependency only existed in the module-level build file.
Make sure you are using Android Studio 1.5 or above. Just saw a guy who had the same issue and he was using android studio 1.0.1
Updating the Android Studio will fix it for you. Also check other pre-requisites.
Prerequisites from official documentation are as follows:
A device running Android 2.3 (Gingerbread) or newer, and Google Play services 9.2.1 or newer
The Google Play services SDK from the Android SDK Manager
Android Studio 1.5 or higher
An Android Studio project and its package name
First of all complete all the steps mentioned in a link you had followed for Firebase
And note that it requires active internet connection so please check internet connection and add both project and app level dependencies as per suggested in link of Firebase you had used in question
Also it is best to use JDK version 1.8 and above because oracle officialy ended support for those versions. If you are working with Firebase Api which is quiet new so i would highly recommend as it is also recommended by most professionals including developers at Google.Or if you want to go with JDK 1.7 then update it to latest Jdk 7u80 or 7u79 at least because it has least issues comparing to older versions.
The best solution is use JDK version 1.8 and follow all the steps in link https://firebase.google.com/docs/android/setup#add_the_sdk
Ensure that you have the google-services.json file, with the client id: <effective package name>, in the app directory. This you download from the Firebase console when you add an app.
I receive errors when trying to import my Cordova based, eclipse exported "build.gradle" file, when importing into Android Studio:
"Gradle version 1.6 is required. Current version is 1.9"
However, upon changing the version using a local gradle distribution I receive the following:
"You are using an old, unsupported version of Gradle. Please use version 1.8 or greater."
Anyone have any ideas how to resolve this?
Stumbled upon the same issue, you should check this link where everything is pretty well explained:
http://rexstjohn.com/exporting-android-project-eclipse-android-studio-0-4-0/