I was only able to find guides on how to import an Eclipse project into Android Studio. But I am not using Eclipse, I am using IntelliJ IDEA.
How do I generate the new Gradle build files for my project?
EDIT:
To clarify. I know how to setup Gradle manually. But that's not what I am asking for. The question is: Am I able to let the Android SDK generate the Gradle files for me? Like the ADT does... But since I'm not using Eclipse, I don't have access to the export feature of ADT!
Have you started Android Studio yet? Because importing IDEA Projects is one of the possible selections you can choose in the beginning.
If you passed that initial state already, just go to File -> Import Project and select the folder of your project that you want to import. The rest is straight forward and pretty bullet proof as both are basically IDEA :D
Okay for everyone who needs to do this:
It's not possible.
But if you want to create the neccessary Gradle build file manually. Here it is: https://gist.github.com/Goddchen/5600345
You need to "Import Project (Maven, Gradle, ...)" and then select not the folder, but 'settings.gradle' instead. Then Android Studio will do everything by itself.
Related
Hey I am trying to build an android application regarding google adsense.
I want to import the android sample.
https://github.com/Ishaan-Kumar/googleads-adsense-examples
Since I am only interested in android I want to import only this.
https://github.com/Ishaan-Kumar/googleads-adsense-examples/tree/master/android
I tried to import via VCS in android studio by url https://github.com/Ishaan-Kumar/googleads-adsense-examples.git
But it imported the whole project including all the platforms(PHP,dontnet,ruby).
The thing is I want the android only plus the android files are not detected (I think there is not gradle file in here)
How do I overcome this problem?
Often programmers explain that in there Git Page, some time don't explain. like it
Many way to import Github project into your android studio project like this ways
use zip git file Like this Step Answer [here]
use clone or git in android studio See this
use JitPack site for better performance and jump filters can help you
But
some programmers in Github don't like customizing them project
they try to damage files or redirecting for block modify
Step 1: Download Zip. Don't Fork the project or use git command or VCS in android studio.
Step 2: Open Android Studio->New Project->Open->Select android directory.
Step 3: Android Studio tells you this is a eclipse project (Convert it to gradle blah blah). Hit Next. This is the time I came to know this is an eclipse project and why android studio is not detecting it.
Step 4: Done.
PS: Thanks to comments(Comment Author has deleted his comment).
I'm facing a very serious problem. I've cloned a git repository from https://android.googlesource.com and can successfully import a project in eclipse (say, platform/packages/apps/Contacts). But, the project shows a large number of errors due to Private Android classes being referred by the source code. I need to have a compiled version of the source code by any means.
Does any one have an idea on how to solve this issue? Any kind of help is greatly appreciated
Try these steps:
1) Clean your project.
2) Check your projects build target. Right click your project , go to properties > Android and make sure the appropriate android API is checked.
3) If the imported project uses Google APIs, make sure you have Google APIs installed and your project build target is set to it.
The phonegap create still makes a phonegap project but the eclipse no cannot see projects when you select import and browse to the folder. It says "No projects are found to import".
It worked fine before though because made projects before.
Why does this happen?
UPDATE:
Seems the problem is with my eclipse since tried to give the created phonegap project to a colleague and it is recognized in his eclipse. For some reason my eclipse stopped recognizing phonegap projects.
#jhdj Delete all the existing projects in the eclipse ide and import the project which you want i hope you will get it,
file->import->android->existing android code into workspace
hope this works,b/c it worked for me.
You can try.
Check are you trying to import from the right directory. You are looking in some wrong
directory.
There are so many posts available in So only for this kind of problem refer them.
No projects found to import
No projects are found to import - Helios eclipse
Why "no projects found to import"?
You also have an alternative which I was using when I was working on linux fedora.
Otherwise look into this tutorial to build phonegap application in eclipse itself
http://www.adobe.com/devnet/html5/articles/getting-started-with-phonegap-in-eclipse-for-android.html
See this section -- Creating the project in Eclipse
The tutorial is for the cordova-1.5.0.js version.
You can use the latest version or may the versuion you wan to use there is no problem in doing that at all.
I'm recently started working on a school project using IntelliJ IDEA to develop an Android app. Most of the guys in my team (me included) are used to the way visual studio organizes project into .sln files. We've had all sorts of frustrations with IntelliJ mostly because we don't understand how IntelliJ organizes projects. We finally got the project to load reliably without having to make changes to each developers set up by following the steps here:
http://devnet.jetbrains.net/docs/DOC-1186. However, now anytime we get latest the Run/Debug configurations disappear. Anyone having the same problem?
Thanks,
Check this answer.
Make sure that you are sharing your configurations and files from the .idea/runConfigurations directory are added to the version control.
I am new to both Java development and Android development. Did a couple of regular Java projects in NetBeans and liked the IDE. Then tried Eclipse and did not like it. I am trying to develop for Android using the NBandroid plugin but ran into a strange problem.
All I want is to add an external JAR to the project. Say, I have a jar in c:\foo\bar.jar (I am on WinXP by the way). For a regular project in Netbeans, all you do is right-click on Libraries, select Add Jar/Folder and you're good to go.
I can't do it in my Android project. I click on Libs but nothing happens. If I am doing something wrong, what is it?
If I am doing it right, can I manually override this by entering the JAR info into the build file(s)? I tried this by looking at the build files for a regular project in NetBeans but could not map it easily into the Android project since the build file structure seems to be different.
If I can't figure this one out, I will have to abandon NetBeans and go back to Eclipse, but I want to give it a shot. Can you provide any advice? Thank much in advance!
This is an old question, but in case anyone stumbles over it, you can manually drag .jar files into the "/libs" subfolder of your Android project's folder using an operating system file manager like Windows Explorer, and they will show up inside NetBeans under "Libraries" as if you added them the usual way.