IntelliJ 12 does not generate the needed files to start Android Development.
I've setup both JDK and SDK and intelliJ seems to see the correct paths.
I am coming from Eclipse which generates everything you need to start pretty much out of the box.
I've tried...
Double triple checking file paths.
Searching...alot of searching.
Making new files from scratch.
Making hello world program, still doesn't generate needed res folder and AndroidManifest.xml file.
Changing file path directly to AndroidManifest.xml's containing folder.
The one thing Eclipse provides that is missing from IntelliJ is and Android SDK install wizard. In other words, you would have to preinstall hte Android SDK from Google prior to starting with IntelliJ. Other than that IntelliJ actually provides more out of the box than Eclipse. (Especially considering you have to manually install the Android plugin before you get the Android SDK install wizard.) Go to the Google Android developer site to find the Android SDK and once you've done that you should be able to get up and running pretty quickly with IntelliJ. Start a new project and select Android. This should walk you through a new project wizard which will setup the necessary res and gen folders for you.
I've put together a screencast on Android development using an Eclipse stub project here: http://bit.ly/Zu6q8i
Related
How can I share a project/working directory between two Android Studio installation in two different computers? The shared repository is a file sharing cloud service like Dropbox.com or box.net.
The reason I want to do this is that I have a desktop and a laptop each with Android Studio. I want to be able to seamlessly do development work between the two systems without having to checkin or checkout code in a code repository.
I don't plan to run the two Android Studio concurrently. This is just for me - one user.
I used to be able to do this with Eclipse ADT but with Android Studio I am getting multiple errors - missing libraries, etc.
Any suggestions on this use case is also welcome.
Thanks in advance,
Ray
It is actually working, to begin with. It was an oversight on my part. I needed to download the latest version of Android Studio (including the updates). Since applying updates I can open the project in another device by referencing the project working folder in the shared folder (in this case Box.net). I just get an initial prompt on the SDK location, that it is unable to find the original location. But it did offer to use the SDK location on the current computer.
When using the current device's SDK folder it will say that it will "modify the project's local.properties file." I click OK on this and it's all good.
This is what I wanted to do. But I'm looking at GitHub now. Thanks.
Please don't confuse this with moving Android Studio Projects.
I'm about to buy a Surface Pro 3 (i7 or i5) for college and to program with IDEs. I have a laptop that I am currently using. It has all my Git (BitBucket) settings, shortcut preferences, UI look and much more. I don't want to set this up again because of how long it took me to set all this up (Sum total of days). I was just wondering if I could export the settings by flash drive or a folder I could just copy to the new Laptop and BAM!!! everything was as I left it.
I know I can do this with Eclipse but not sure for Android Studio. Thanks for help.
Separate but kind of the same::
I was just wondering if I could use the same SDK Folder with all the API, Tools and Extras for both Eclipse and Android Studio. I used to use Eclipse until I found out recently that Google would soon stop supporting Eclipse IDE for Android. I have very complicated projects in my Eclipse IDE so I can't export them to Android Studio or I would have.
So I was just wondering if it would be safe to use the same SDK folder for Eclipse and Android... OH!!! and Visual Studio 2015 (I wanna start messing with this since you can now use this to program Android Apps with C#)
Try the option File > Export Settings on your old laptop and then save it to a jar file.
Then copy the jar file over to your new laptop and then use aFile > Import Settings to import the jar file.
You can move/backup it manually using tutorial of changing android studio settings location
The best option to share AS settings is using IntelijIdea settings repository
The feature is supported by Android Studio. You may create and attach this git repository to any IDE copy and every workstation.
The local/remote settings are synced automatically.
On the other hand, a particular project settings should be shared by using a git tree. Modify project settings profile by adjusting your team's code style conventions, for example. Then do not ignore .idea/codeStyles folder and share it with git.
Other team members after cloning/sync should also switch code style to project.
I am trying to migrate from ADT to Xamrin.
I have installed Xamarin on Windows.
I have installed sdk. But when I try to download tools and sdks from SDK manager I get and error like this:
But since I already had downloaded everything when I was using ADT, I copied the sdk folder to the new computer I have Xamarin on.
But Xamarin does not seem to be able to locate sdk.
I have installed Android sdk here:
When I go to tools->options and I enter the address of the sdk folder, the red cross does not go away. I tried entering all subfolders in sdk folder.
What am I supposed to do?
I've been dealing with this the whole day. No usefull link or guide since Xamarin is not stoll widely used. Any help is appreciated.
First of all, it's a good idea to remove all spaces from pathes.
I use C:\Android as my base path, c:\Android\SDK, c:\Android\NDK etc. I had some serious problems with Xamarin and spaces / accented characters in path in previous versions.
Furthermore there's an Access Denied on your path in the first screenshot, add read/write rights recursively for the folder c:\program files (x86)\Android (Everyone - Full control if anything fails)
Just starting with Phonegap and having some trouble understanding the directory structure and setup (on Windows).
I have been able to install and setup phonegap, jdk, android sdk, ant, etc. Using the command line I can now create a new project, edit the source files in www , build it and run it on my phone, Android Emulator and even Genymotion .
But the one thing that I just can not seem to understand is how I could edit and run the Phonegap project from within Intellij IDEA. All examples and how-tos I can find use the older Phonegap 2.9 structure, which is quite different from 3.0.
I enabled and configured all plugins, etc. I then try to import the existing project folder as a new project in IDEA, but it says "Source files for your project not found".
But when I build the project first with phonegap build android using the CLI, and then try to import it in IDEA, source files are found and I can continue the import of the project. But the Project Structure then seems to point to source files in platforms/android (platforms/android itself and also platforms/android/gen and platforms/android/src , I have no idea what to choose, so I choose all). I then click Next a couple of times until the Android project is created. After changing Project Language Level to 5 (no idea what this means) , I can now run the project from within IDEA.
But... changes that I make in www (in the root) don't end up in the compiled project!
So do I have to copy all files manually to platforms/android/assets then ? (the command line phonegap builder did not require this). Or do I have to edit the files in platforms/android/assets/www directly ? (which seems odd, since I would like to be able to only maintain the same code for all different platforms).
What do I need to do to achieve this in IDEA?
Somehow I think some things in Project Structure are wrong, but I have no idea what all this means (Modules, Libraries, Facets....).
Where should the manifest file be located, and the resources, and assets and libs?!
Could anyone point me in the right direction?
After phonegap create & build , there is a whole Android project located in %my_project_root%\platform\android
if you don't have the Android SDK at left, use the green icon to add one.
That's all
We don't need to modify manually the code under %my_project_root%/platforms/* but only under the %my_project_root%/www/* and %my_project_root%/merges/*
After running
phonegap build android
it automatically replaces platform specified code.
I found solution for me the next way:
After importing source code to IDEA, I added new web module which points to the %my_project_root% to be able to see all needed directories.
Also I created new IDEA command line tool with alias phonegap and tool path /usr/local/share/npm/bin/phonegap.
So before running default android running configuration I run phonegap build android just directly from IDEA (I think it's more convenient) and then run usual android run command to deploy the app to emulator or real device.
I hope this stuff will help you.
I posted this question on the IntelliJ community forums but it seems as if they aren't very active so I'll just post it right here on S/O. I'm new to IntelliJ and I'm switching to use it from Eclipse which was really buggy and not useful to my needs. However, I'm attempting to build an Android project in IntelliJ Idea and it is only creating a .idea folder and the src directory without any inner files in them like it should. I've got the Android-SDK properly installed and I'm using JDK 1.7 and I'm even following the directions to properly start an Android project from the IntelliJ Wiki (found here) but it still leads me to no success. It seems as if I've got the Android Support plugin already installed with my program but then again I'm not really sure. Can I get some help please so I don't have to revert back to Eclipse again? Thanks.
Try to delete Android SDK and install it again, then download at least one Platform. IDEA runs SDK tools to create Android project template, for some reason it's failing on your system.
Check if it works better with JDK 1.6.
See the screencast that I've just recorded.