I need some help here solving an issue similar to this one
Error building AAB - Flutter (Android) - Integrity check failed: java.security.NoSuchAlgorithmException: Algorithm HmacPBESHA256 not available
I cannot seem to specify the Java JDK version in my Android Studio. The option for Gradle projects is simply not there (see image below). Can someone please help me on how I can specify a specific version of Java within Android Studio (needs to be greater than 11).
Related
I am trying to accept flutter android licenses using flutter doctor --android-licenses but I keep getting the error in the image below.
I have combed the internet for about 2 days but not getting a workaround. Any help to solving this will be greatly appreciated.
You will have to install android commandline tools from the sdk manager. Then it will not cause the error again:
You can install and update each package using Android Studio's SDK Manager or the SDK manager command-line tool. All of the packages are downloaded into your Android SDK directory, which you can locate as follows:
This is because you are probably using a new version of JDK. Building Android applications require JDK version 8 and only 8.
Try removing current JDK from your environment variables (path and JAVA_HOME) and installing JDK 8 instead. Remember to add JDK 8 to both your environment variables path and as JAVA_HOME.
This will probably fix your problem.
I've been trying to generate an Eclipse project using libGDX, in order to use it with this tutorial. However, everytime I generate the project I get the error message:
Execution failed for task ':core:compileJava'.
Could not find tools.jar
The images below show the settings I use and the messages I get.
I'm using the most recent version of Eclipse and the Android SDK. I got the Android version of Eclipse through the installation program from the Eclipse website and I got the Android SDK through Eclipse. Everything is installed in the default folders. I've got the most recent versions of both the 32 and 64 bits versions of Java.
Could anyone tell me what I'm doing wrong?
PS. My question might be similar to this question: What exactly is “tools.jar” in the Android SDK?. However, the answer to that question only applies to Android studio users.
Check your installed JDK.
You have to set the system property "java.home" and the environment variable JAVA_HOME to a valid JDK.
Check gradle.properties file at the root of your project with the following property:
org.gradle.java.home=C:\\Program Files\\Java\\jdk1.8.0_74
org.gradle.java.home needs to point to a valid JDK location.
Without this file, you get the same error (Could not find tools.jar). With the file present, this is no longer an issue.
Just add this line to gradle.properties:
org.gradle.java.home=C:\\Program Files\\Java\\jdk1.8.0_131
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.
NOTE: I have already fixed this problem. I used the methods described in a previous question/answer discussion. Thank you for whoever tagged this as previously answered!
It an be found here: ADT 22.2 New App Wizard: Unsupported template dependency: Upgrade your Android Eclipse plugin
Today I just downloaded and installed Eclipse via the developer.android.com tutorials. I had almost initiated my first Android Application when I came across this error:
I don't understand the error. It does not specify a required version, and my version is the most up to date version. Neither the [Install/Upgrade] nor the [Check Again] buttons appear to function. I have also tried to delete and reinstall the Android Support Library via the SDK Manager multiple times.
Can any one help me? Thanks in advance!
Note - I do in fact have both the Android Support Library and Android 4.3 installed:
*Edited to add picture and note*
How did you create your project? Steps: New -> Android Application Project? If you've done this, you should check whether you have installed "Android 4.3" and "Extras->Android Support Library" in Android SDK Manager.
Go to the Android SDK Manager, then download the required Android version, in your case, version 18 which is Android 4.3.
Right click on the project -> properties -> Android -> select a platform like 4.0
It sounds like you don't have installed android 4.3 sdk(API level 18).
Please open eclipse->windows->android sdk manager and make sure your android 4.3(API 18) status is installed.
Download from http://dl-ssl.google.com/android/repository/tools_r22-windows.zip, unzip it and replace the /tools folder with this one to downgrade the sdk tools. There's a bug in version 22.
Sorry, but someone found that this is a duplicate. I replaced my sdk/tools/templates/activities folder with a more up-to-date one, which resulted in success. The steps and files can be found here:
(ADT 22.2 New App Wizard: Unsupported template dependency: Upgrade your Android Eclipse plugin)
Thank you for all who took time to try and answer my questions. It is much appreciated!
I am developing an android application which I have complied using API 14 initially, and now I am updating the API version to the latest one. when I debug the code then I am getting the error "Source not found". I am using Eclipse classic and developing on windows 7. I have searched a lot but didn't find a good solution so that I can get rid of from this problem. please help me or guide me how I can download the correct source code using windows 7. I have gone through different links such as android.opensourceror.org
but it is out dated.
You can attach android source code from Android SDK manager. Just check the option for Source for Android SDK option or using this plugin for Eclipse adt-addons