|Failed to import Gradle project error creating new project with Android Studio|
I had same issue with the latest Android Studio () today, and I finally
found that configuring a https proxy for Gradle can solve the issue. I only
set a http proxy at the beginning. Gradle needs to sync some files via
HTTPS. Use IP address instead if hostname of proxy can't work.
|Import project into Android-Studio|
Managed to solve on my own.
Needed to alter the build.gradle file a bit so the
buildscript->dependencies will hold this:
Then used the "local gradle distribution" option with the 1.6 version I
downloaded and it worked fine.
|How to import Android Studio project in Eclipse?|
As the others say, a full import is not possible, but just try a manual
'import'. The key files for an Android project are the Java sourcecode (src
directory), the resource XML files and the Manifest. Just create a new
Android project in Eclipse and simply copy these files over. You may have
to create a new package structure, so construct the necessary packages and
copy each sourcefile over and refactor the package name if necessary. If
you use any additional libraries, you may have to manually import them as
|How to import apklib into Android Studio or IntelliJ project?|
I want to answer my own question after I found out recently. If we have
module B need module A library.
apklib is create as a library and can be use and read from maven to
reference. So if set module A in maven's pom.xml dependency, when mvn build
it will ask maven to look for apklib.
And as IntelliJ and Android Studio, just go to project structure set the
module to Android Library, and add module dependency, then like module B
can use from module A.
|Android Studio import project with gradle changes iml files|
The IDEA official documentation is clear about that :
Share all the files under .idea directory in the project root except
the workspace.xml and tasks.xml files which store user specific
settings, also share all the .iml module files.
Source : How to manage IntelliJ IDEA projects under Version Control Systems
EDIT : But, sharing iml files seems to be wrong. Best thing is to use a
similar gitignore file and to import the project in AndroidStudio for each
|Failed to import Gradle project on android studio|
This problem happens when we work with android sdk studio different from
what you should do is install Android Support Repository
|Import an Android Project from Eclipse to Android Studio and I have this error message "failed to find Build Tools revision 8.0.0"|
Your build.gradle is trying to use Android SDK tools 8 which isn't
installed on your machine.
If you look at your build.gradle file you probably have this line
buildToolsVersion "8". You want your build.gradle file to point to the
Android SDK tools that you currently have installed (preferably the
latest). Just open the Android SDK manager and see which tools you have
installed and change the buildToolsVersion "8" to the right version.
|Android Studio: how to import Android library project|
Go back to Project Structure window where you added the new module. Click
on your main module, go to Dependencies tab, click the plus icon and select
|Android Studio Import Project - Use gradle wrapper "Disabled Option"|
do the eclipse step where you export to generate the gradle build file
stop importing your project for now and create a new one.
close android studio.
navigate on your file system to the new project.
take the "gradle" folder in there and copy it in to your project.
try again. :-)
|Aptana Studio 3 - Rails project won't import|
New > Rails Project, uncheck use default location, point it to the
root folder of the project using the Browse button, and make sure that
the option to generate code is set to "I'll generate my own"
hope it will works
|Double facebook sdk import, in my android library project and in target project|
I faced the same problem, this is what i did. Hope it helps you too.
Remove all the libraries in your
Now go to libs and remove the library.(your project will show some errors,
Finally import the library that contains the sub library.
|Eclipse: How to import git project as library for Android Project which has to be pushed to Bitbucket|
If the library is a .jar file, you can simply paste it into the libs folder
of your app. Android should automatically add it to the build path. As
far as pushing/pulling from BitBucket goes, as long as you add the .jar
file in git the library will be committed like any other file.
|Add an Android Studio / IntelliJ project to a code.google.com project with git|
OK, so the best solution I've come up with is to create a local git
repository, create a code.google.com git project, and then manually connect
the local repository to the code.google.com project. Note that this
requires git to be installed on your development machine.
Create the app project in Android Studio.
Select the root project folder.
Select VCS > Import into Version Control > Create Git Repository
Select project folder to create a git repository.
Now the project is under source control.
Create a project at code.google.com using git source control.
Go to the Source > Checkout page of the project and get the clone URL.
Open a terminal and navigate to the project directory.
Modify the local git repository to connect the remote repository on
git remote add origin ht
|Android Studio: Importing project into existing project|
Try going to File -> "Import Module" instead of "Import Project". In
Android Studio, an entire window is a project. Each top-level item in that
project is called a module. Coming from the Eclipse world, it'd be:
Eclipse workspace = Android Studio project
Eclipse project = Android Studio module
|The import com.google.android.vending cannot be resolved in an imported android project|
You may want to review the steps this link. It goes through the steps of
adding it to your Android project, regardless of your IDE. Eclipse will
work just fine.
These steps take some time and effort, but I have successfully done this
|How can I import library at android-studio?|
Android Studio uses Gradle for building. Version 2.2 should pick up all
libraries specified in build.gradle file. However, If you change anything
in Project Structure dialog it won't update build.gradle file.
This file should NOT be empty. There is another empty build.gradle in the
project_root folder so do not confuse them. Add all libraries you need
inside dependencies closure. Do not confuse dependencies closure with
apply plugin: 'android'
//here is depenency from Maven Central Repository
//here is dependency from your local libs folder
|Import scribe-1.2.1.jar in Android Studio|
Edit your module's build.gradle file, just append one line in the
FYI: at this time Android Studio project setting did not affect the gradle
build, so you must edit it yourself.
there are a user guide for gradle android plugin.
|Facebook SDK import into Android Studio and add it in my app|
It does indeed have to do with Gradle structure. Effectively, you need to
create Gradle build files for the Facebook SDK. We wrote up a doc that may
be able to help you. Give it a shot and be sure to provide us feedback with
anything you found ambiguous or difficult, and I will look into it and
modify the doc accordingly.
Keep in mind that Android Studio is in its early stages as of this writing,
so it's possible that as the project progresses we may need to make changes
in the doc accordingly.
I also found that sometimes I just had to shut Android Studio down and
restart it before things would magically start working again.
|How to import MenuDrawer from SimonVT in Android Studio|
If all you need is a menu drawer that opens and closes, you dont need all
the configurations, and other stuff that come with the library, I would go
with Android's DrawerLayout. Its easy to use and you don't have all the
headaches and resource overhead that comes with setting up a library
project to use in your project.
|Android Studio gradle and libraries import|
I don't know how to solve your problem, but when I faced problem of third
party library use in Gradle build, I solved by following way.
Following is my structure of project.
I edited my build.gradle file which resides in src directory.
|import external library in android studio 0.2.8|
Step 1: Select Project > Right Click > Open Module Settings (F12) >
Projects Settings > Click Modules.
Step 2: Click your Project > you will see 3 tabs :
Step 3 : Select Dependencies tab. You will see green '+' button to the
right of 'Scope' title. Click on this and it will allow you to add Jars and
PS: make the scope of the added jars/libs as Compile
|How to import remote library in Android Studio using gradle?|
You can use:
or if you have the library copied to your project libs directory, you can
compile files ('libs/ nineoldandroids-2.4.0.jar')
however, you can check out my post on getting started with swipelistview:
|How to import a new project in android app properly?|
New->other->android->Android Project from Existing Code
point to the root dir(android-maps-extensions-1.3.1)
then select android-maps-extensions
this is a library project
then you need to add this library to your project:
right click on your project->properties-Android-> scroll to the bottom to
the Library section then hit add and select android-maps-extensions.
|Android Studio Import Module Gradle Build Error|
Do not add modules through the Studio interface. Always make the changes
directly in build.gradle and then reimport into Studio.
Also, update the plugin dependency to com.android.tools.build:gradle:0.4.+
to get the latest 0.4.* version.
|Import android project in ADT Eclipse from github|
The eclipse project files (.project and .classpath) are not part of the
github repository so you can't just import it into Eclipse.
Easiest way to fix that is probably to create a new Android project
yourself and then copy the files from the github repo into it.
|How to import android project properly into Eclipse?|
I think that you should check the error log...probably Eclipse won't let
you import it, with a message "Some projects cannot be imported because
they already exist in the workspace". If this is the case, using/creating
another workspace should fix the problem. If you don't want to change
workspace, you may want to check this post.
|How to import patch files in to android project|
Just run these commands,
$ patch -p1 < /smartcard-api.patch
$ patch -p1 < /uicc-OEM_SPECIFIC.patch
$ patch -p1 < /cts.patch
After that you can create the required jars.
The changes are there in the existing source files, so no point getting jar
|How to setup and test an Android Library Project with Gradle and Android-Studio?|
i think this tutorial will help you :
|Android Studio & Gradle: Add outside java classes to Android main project|
you might want to make your Dir a own module
add include 'Dir' to your settings.gradle
create a build.gradle inside your Dir directory with this content apply
now you can go into your main projects build.gradle and add to
dependencies: compile project(':Dir')
if your Dir uses android related stuff, you might want to use the New >
Module(right click on your project in Android Studio) Function of Android
Studio to create an Android Library.
But i haven't tested that feature yet. If Android Studio throws an
Exception when trying to use the New Module, you should try to update
Android Studio, in the latest Version it works for me.
You might also want to check the Gradle User Guide and the DSL Reference
both are very helpfull in getting into Gradle and understanding i
|Automatically versioning Android project from git describe with Android Studio/Gradle|
After some further reading and several false starts, I ended up with this,
added to the bottom of build.gradle in the project directory (that is,
MyAppProject/MyApp/build.gradle, not MyAppProject/build.gradle --
confusing, I know, but the former directory is projectDir in Gradle so
that's how I refer to it here). It depends on no external utilities other
than Git, which is assumed to be in the path, so it should work on any OS
(even though I used forward slashes in the paths, they get converted to
backslashes on Windows).
It could probably stand to be improved, I'm sure, as my understanding of
Gradle is pretty rudimentary and my Groovy may not be very idiomatic
(though that in particular is less of a concern). I have a feeling that my
approach is suboptimal because it involves generatin
|Android: How can I open an older android project in Android Studio?|
Look at this links.
How do I open my existing Eclipse projects in Android Studio?
|How to create the best Android app project structure with Android Studio and Gradle?|
You should look at the multiproject example for the layout attached in the
Essentially you want a top level settings.gradle that tie all the pieces
together. Ideally they should be in one single git repo to make your life
easier. However you probably can use symlink to tie them into a common
build repo that contain your top level settings.gradle.
|How do I migrate my Android Eclipse project to using Gradle and Android Studio?|
You should create a folder in you project's root and name it libs.
Then copy your jar file to that folder and add
compile fileTree(dir: 'libs', include: '*.jar')
to your build.gradle file.
If above won't work. You may need to try this post
|How to import Actionbar sherlock library in new latest version of android studio|
If your ActionBarSherlock library doesn't contain a build.gradle file, grab
it from here:
Save this file into the root directory of the library.
If you're referencing the library from outside of your project directory,
you should define where the library is in settings.gradle, like so...
project(':actionbarsherlock').projectDir = new File('/path/to/library')
and then right before that line, you should have: include
Now, in your build.gradle file, include the following...
Now you should be able to build with Gradle. If you're unfamiliar with
Gradle, start reading about it here: http://www.gradle.org/docs/current/use
|how to import zxing library project for android app in eclipse|
Checkout Integration ZXing library directly into my Android application
question and answers on Embed Zxing library without using Barcode Scanner
I'm quoting the answer of Sean Owen, one of the author's of Zxing library
from this answer:
" The complete source code is available from the ZXing project. You want to
core.jar from core/ and put it in your Android lib/ folder to include
decoder in your app. You do not want to include javase. You can look to
the code in
android/ as it is the source to Barcode Scanner, but as the authors we'd
not just copy and paste it."
Hope this helps.
|Android - Cannot import google-play-services_lib because the project name is in use|
project name already exist on workspace most of time may be named as
mainactivity (or other name) try to rename change existing project name and
after try to import it!
e.g following steps
first screen shot shows your same error
after click select all button shows actual error explains below screen
note this screenshot error message is Cannot import MainActivity because
the project name is in use after shows project name rename on existing
workspace on your eclipse after try again import it will work perfectly!
|Android copy existing project with new name in Android Studio|
The steps in the link you specified should also work for Android Studio.
Just make a copy (using a file manager) of the entire module folder and
give it a new name. Now open it up and use Refactor -> Rename (right
click on the item you want to rename) to rename your module and package.
See this for details about refactoring in IntelliJ/Android Studio.
|Can't import Android project into Eclipse - Finish button doesn't do anything|
I came across this problem yesterday.
I had recently updated the ADT plugin without updating the Android SDK
Tools and Platform-tools.
So make sure all of the above are up-to-date.
|Import existing Android project results in a lot "bugs" in JNI folder|
Go to Project Propriets >> C/C++ General >> Paths and Symbols and Add:
you can include de x86 and mips version too:
|Import existing Android project, eclipse popup error msg|
After recently working on a new application project, it came to a stage
where I had to download the project at home on my personal machine. So of
course I logged into our SVN and grabbed a copy.
After getting the project there was an error in the project:
Cannot nest 'Project/src/main/java' inside library 'Project/src
I knew previously that this error wasn’t occuring. As far as the project
classpath is concerned there was only one src path which correctly pointed
at the folder Project/src/main/java
After searching through the project I found out the issue – in the
.settings folder there is a file named:
You should find you have a line similar to the following:
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src"/>