I'm following the Udacity course on android programming, and I'm trying to set the icon for the app to the one provided for in the course. When I follow the instruction, the following error prevents me from continuing:
"Icon Name Must Be Set"
I have no missing field on the Configure Image Asset page, so I'm clueless, and googling doesn't seem to help. Anyone have an idea of what's going wrong?
If this helps, heres my gradle sync log
4:23:24 PM Gradle sync started
4:23:30 PM Gradle sync failed: failed to find target android-21 : C:\Users\Administrator\AppData\Local\Android\Sdk
Consult IDE log for more details (Help | Show Log)
4:23:30 PM NullPointerException: null
4:23:48 PM IllegalArgumentException: Invalid paths used when trying to generate an icon
I also get a `null' ide exception when I start up the project.
use Android SDK Manager to update Android API and then open the IDE and update Gradle.
Hopefully, you have found the answer by now, but I will post what seemed to work for me.
I was using Gradle version 2.10 and the source code for the Sunshine project seems to need 2.02 of Gradle. When I downloaded this older version, I no longer got the weird "Icon Name Must Be Set" issue.
To change the version of Gradle used :
Android Studio -> Preferences
Build, Execution, Deployment
Build Tools
Gradle
Select the option "User local gradle distribution" and navigate to the location where the gradle version you want to use is located.
Click apply and ok after. That should do it. It worked for me at least.
I am using a Mac (El Cap) with the latest version of Android Studio 2.1.1
Related
I am trying to update an existing Android app, but while generating a Signed APK the following error message appears: Algorithm HmacPBESHA256 not available
I have searched the internet for a solution, including here on StackOverflow, but I cannot find one anywhere. I know that the current keystore uses SHA1withRSA, but how to convert it to HmacPBESHA256 I would not know. Google Play support unfortunately can't help me either, as this question is too technical.
For the sake of clarity here is the full notification:
Execution failed for task ':app:packageRelease'.
A failure occurred while executing com.android.build.gradle.tasks.PackageAndroidArtifact$IncrementalSplitterRunnable
com.android.ide.common.signing.KeytoolException: Failed to read key 1 from store "/Users/KDApps/Documents/KDApps/original-signing-keystore.jks": Integrity check failed: java.security.NoSuchAlgorithmException: Algorithm HmacPBESHA256 not available
Make sure JDK is installed.
File -> Project Structure -> SDK Location -> Gradle Settings -> change the gradle JDK to the correct one.
The problem occurs due to Missing Java Environment variable or mismatch between Android jdk and already set java environment variable version. To solve this set jdk to environment variable version.
I solved this problem by entering
"File" -> "Settings" -> "Build, Execution, Deployment" -> "Build Tools" -> "Gradle"
and selected appropriate "Gradle JDK" version.
i also experienced the same thing, but when i change JDK to 16 it managed to debugenter image description here
and it worked when changing my jdk
enter image description here
I've tried a lot of things following different SO answers, but here's what worked for me at the end
I removed the JDK v11 I had initially (because from what I've read, 11 doesn't have the encryption algorithm), installed v16, then updated the JAVA version that gradle uses by going to:
Preferences > Build, Execution and Deployment > Build Tools > Gradle
then selecting Gradle SDK to v16
Android Studio
1st :
Upgrade your Gradle Plugin Version
In order to do this you must get a gradle version downloaded.
You can get version 7.0.2 https://downloads.gradle-dn.com/distributions/gradle-7.0.2-bin.zip then upgrade after in android studio.
You should get a popup notification to complete a gradle upgrade when you open android studio again.
RESTART ANDROID STUDIO
2nd :
Inside project root open,
"file" -> "settings" -> "build, execution, deployment" -> "build tools" -> "gradle"
Then update the Gradle user home
to your newly downloaded gradle location.
In my case I saved my download here - C:/Program Files/Android/gradle-7.0.2
RESTART ANDROID STUDIO
It seems to be an issue with different JDK versions as most people have pointed out.
I had a similar issue. I encountered the issue with JDK 8, tried different flavours(Oracle, Adopt...) but finally worked when I upgraded the version to JDK 14.
[It is an image which is showing errors that I want to solve
I am using android 2.3.3 I have changed many setups but some constant problems are apearing
Gradle project sync failed.
Rendor errors
install repository and sync project.
I do a lot search and found some ways I replace gradle folder with new version of gradle but failed to solve this.As i installed repository but error is still there.
Why all setups of android are showing same problem?
Remove all previous installation.
Install java JDK 8.
Install jre.
Download latest Android studio (https://developer.android.com/studio/archive.html)
Follow these steps. (https://developer.android.com/studio/install.html)
Can you specify your system configurations?
I am new at xamrin android app development. I have made basic menu drawer app in xamrin. But when I try to run this project it show following warning
Severity Code Description Project File Line Suppression State
Warning An unexpected error occurred trying to initialize Android Designer. Please verify the Android SDK path and the Java Development Kit path on Tools->Options->Xamarin->Android Settings menu. Please see the logs for more details. 0
Severity Code Description Project File Line Suppression State
Warning IDE0006 Error encountered while loading the project. Some project features, such as full solution analysis for the failed project and projects that depend on it, have been disabled. menu_drawer 1 Active
JDK path
C:\Program Files (x86)\Java\jdk1.6.0_21
And Android SDK Path
C:\Users\Suraj\AppData\Local\Xamarin\MonoForAndroid\AndroidSDK
Open Tools > Option > Xamarin > Android. Are the Android SDK and JDK available?
If yes, try updating your Android SDK and JDK.
If no, download and install Android SDK and JDK to your computer.
Hope it could help.
When I import or open a project it doesn't open correctly and in the event log I get the message "Frameworks detected: Android framework is detected in the project Configure". Searching in google it says to install the support library but it's already installed
SOLUTION
Refer to the answer to this question
I ran into the same problems while opening a project. Please make sure when the Android Studio do the conversion or build the Gradle files , you look into the Gradle's build file and check which particular version's SDK and build tools are required to build this particular project. Then also confirm from the SDK Manager (Tools->Android->SDK Manager) that tools of given version are installed.
I've just updated to the newest version of Android Studio, and started a fresh, empty project. After finishing the wizard, I opened the main Activity.java file, and there was a message that said:
Gradle project sync failed. Basic functionality will not work properly
I found that I should try the button Sync Project with Gradle Files. This produces another error:
Failed to refresh Gradle project. Could not find any version that matches com.android.support:appcompat-v7:+
Please install the Android Support Repository from the Android SDK Manager
I tried to open the Android SDK manager and got another error:
Please specify Android SDK
So I went into my Project Structure, which has two sections, 'app' and 'Android SDK'. Android SDK points correctly to the Android SDK directory, and app is blank.
What should I do?
I tried downloading the latest SDK bundle and pointing to that in the Project Structure instead, but that hasn't fixed the problem.
I had a similar problem. After updateing to AS 0.4.2 from 0.3.7 I received the error: "Gradle Project sync failed. Basic functionality will not work properly..."
What I did was to delete the content of .gradle folder and modify the gradle-wrapper.properties file:
distributionUrl=http\://services.gradle.org/distributions/gradle-1.9-all.zip
Now it works, I don't know if it's the solution for you, but be sure to backup files before deleting them :)
i know this answer may have been posted before but next time you get such an error after updating sdk,click on file->Invalidate caches/restart. This solution works perfectly for me.