I've successfully used android studio when it was first released.
But after Update it started giving me errors for gradle
earlier I was getting "Could not resolve com.android.tools.build:gradle:0.5.+." error
I googled too much but the solution I found was to replace .gradle directory in C:/doc&settng/[username]/.gradle
and/or update in c:/doc&settng/[username]/.androidstudiopreview
But I could find .androidstudiopreview directory.
today i got notification for new patch available
after applying patch, the error changed to this.
Failed to import Gradle project: Could not GET 'http://repo1.maven.org/maven2/com/android/tools/build/gradle/0.5.6/gradle-0.5.6.pom'. Received status code 403 from server: Forbidden: APP signature match
Consult IDE log for more details (Help | Show Log)
Can anyone help me to get rid of this error?
I've android sdk tools 22.0.5 installed
android support repository, and android support library installed.
Related
I'm trying to open a project for an Android Studio tutorial book in Android Studio and running into a lot of problems. The latest problem is when trying to build the project, getting an error:
10:11 PM Gradle sync failed: Unsupported method:
SyncIssue.getMultiLineMessage().
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.
Consult IDE log for more details (Help | Show Log) (1 s 538 ms)
Any ideas what is going on here? Using Android Studio 4.1
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
I am very new to android studio.I have installed android studio and gradle in my system. I am not able to sync gradle with my project, i keep on getting this message "Error:Cause: invalid END header (bad central directory offset)" and i am not able to download android targeted versions in SDK, downloading fails showing error message "Download interrupted: bad record MAC".
i am stuck with this for 2 days.i am pleased to get any ideas from anyone.
You can try:
file->Invalidedata Caches/Restart
I have downloaded Facebook SDK and have installed it by console. After importing Facebook SdK samples when I am trying to run those samples I am getting error on console.
Console Output
[2014-01-16 19:20:02 - ProfilePictureSample] Installation failed due to invalid APK file!
[2014-01-16 19:20:02 - ProfilePictureSample] Please check logcat output for more details.
[2014-01-16 19:20:02 - ProfilePictureSample] Launch canceled!
After lots of googling I have tried every given solution,I have done clean and fix project properties,I tried to run it by deleting apk file and clean and build project again but its not working,I have changed min sdk version as well as target SdK version in manifest file.but its not running on real device as well as AVd.I am getting same error in every Facebook sample.
please help me ...thanks in advance
solution of above question is here.
add Facebook sdk as a library in samples by Right click on project->properties ->Android ->Add->Facebook Sdk.
Clean the project and run it.
(if it not solved then) then copy the android support v4.jar from FacebookSdk and paste it in your libs folder(replace previous jar file to this Facebook Sdk jar file).
clean and build the project and run it..
succesfully execute..
I installed Android 4.0 and updated the Eclipse plugin.
Now I cannot run any of my projects and get an error stating the following:
Error generating final archive: java.io.FileNotFoundException: C:\Projects\Android\HelloAndroid\bin\resources.ap_ does not exist
This is coming from a very simple "Hello World" app.
Anybody know how to get the resources.ap_ file generating again?
I ran into the same error (also referenced here) using Eclipse 3.7 (Indigo) after upgrading to ADT 14 and SDK 14 on all projects including newly created ones. I found a workaround someone posted on the ADT bug tracker, which is basically to switch Eclipse Settings->Android->Build->Build Output from "Verbose" to "Normal". The post is here.