Sir
I have a project having only src and res folder
And I know that it is targets api 22
And it need library Google play service and v7 compat .
How do I create a project in eclipse or Android studio having above things please help?
Refer to this for everything you need to know: http://developer.android.com/develop/index.html
EDIT:
In Android Studio, look in the toolbar for File->New->New Project. Android Studio will guide you through the process and you can specify your target API and things from there on.
Google does not develop the ADT plugin(the required plugin so you can develop android in eclipse) and they recomend you transfer to Android studio. I have had that same problem with appcompat crap and it is solvable in two ways(as far as I have seen):
1: Use Android Studio instead, as it really truly supports all android related dev requirements, including app compat.
2: In your project, set minimum API level to Android 4.0.3 or above. This way you prevent the requirement for appcompat.
I recently transfered from Eclipse to Android Studio, and the transition was easy, and once I found out how I could use the Eclipse keybindings, it was just the GUI that was different. It is really easy geting used to Android Studio, and I recomend you start using it as soon as you can. It will solve most of your problems related to appcompat and other libraries that needs to be added to support earlier versions of Android
As you see on the image, there is a "Minumum required SDK". The minimum SDK and target SDK are two different options, and target should be the newest SDK, while minimum should be(in my opinion) Android 4.0.3 or higher. According to Google, this allows you to reach about 90% of all Android users
EDIT
Using Android Studio, as long as the SDK has everything installed and Android Studio is as new as possible, it will add appcompat v7 automatically without issues. Eclipse's ADT plugin is outdated and probably doesn't support appcompat anymore. I personally preffer eclipse, but due to android issues, I had to move over to Android Studio
Related
I have a Unity project that uses google vr. Unfortunately, there are some incompatibilities with the newer versions of tools and platform tools in the android sdk.
I think I can just have a separate android sdk that has the older, compatible versions of these folders and put it in my Unity project. This would allow me to keep the android sdk associated with my Android Studio projects up-to-date and keep my Unity project working. BUT, it means having two copies of the android sdk... which are big (It said ~30G when I started copying my android sdk).
Is there a more elegant solution that would not take up so much space?
The Android SDK is not particularly large: you can choose which parts of it you need, and install only those.
One of the things that make it so large is Android device images (emulators). If you don't need those, don't install them and it should take less space on your hard drive.
what u need to do is to specify android sdk in Edit-Preferences-External Tools
I have seen from this question that Intellij Idea (Ultimate) comes configured with all Android Studio plugins.
But I reckon Android Studio also comes with a preconfigured Android SDK.
I believe Intellij doesn't come with Android SDK does it ? So should I install Android SDK normally or are there special things to do to make it work nicely with Intellij ?
You need to download and extract the SDK manually.
Make sure you enable android support:
File->Settings->Plugins->Android Support
For better workflow I recommend adding the android specific actions to the menu bar:
File->Settings->Appearance & Behaviour -> Menus and Toolbars
More information can be found here:
https://confluence.jetbrains.com/display/IntelliJIDEA/Android+Development
I am on Windows 8. I have some questions regarding Android SDK:
Can both IDEs share a common Android SDK?
Will there be any issues in updating IDEs?
Generally, yes, it's safe to share a common Android SDK for both Eclipse and Android Studio. Updating IDEs won't affect the SDK at all.
Take note when updating/deleting packages in Android SDK Manager: you might use some packages (e.g. specific API version) in a particular IDE (past example: Android "L" Developer Preview in Android Studio). Updating/deleting them may break the project that use them, and it might be difficult to fix the issue. However, for already-stable APIs like Android KitKat (API 19) and below, there won't be any issue when updating them.
Additional note: Android project created in either Android Studio or Eclipse is not really compatible to each other due to different project structure and technology. Therefor, it's better to always use the same IDE for projects that are created in it. If you want to test both IDEs on same project, it's better to export the project from Eclipse, instead of from Android Studio as it's easier.
I want to have actionbar in my Android Project using android.support.v7.appcompat; and use it in android 2.2 API Version 8.
I Installed Android support library from SDK Manager, and also added the android-support-v7-appcompat from /extras/android/Compatibility/v7/
but the current version of this project is 4.2 (the last version of SDK I have already downloaded). When I add this project as a reference to my project I get error (my resurce file (R) has error and couldn't use R.layout.main)
how can I solve my Problem and use support.v7 ActionBar?
if Change it to Android 4.2; I don't have problem
You are forcing us to have to guess what "it" is.
If "it" is your build target (e.g., Project > Properties > Android in Eclipse), please set that to something like 4.2. This does not control what versions of Android your app runs on. Set your android:minSdkVersion to be 8 (for Android 2.2), as that is what controls what versions of Android your app runs on. Lint will tell you when you are using things that are legal for your build target, but newer than your android:minSdkVersion, so you can make sure that you are using those things appropriately.
I wonder if there is any difference between using the Android Studio, Google offer to use, and use the IntelliJ Base IDE, and install the Android plugin?
Would it effect the project and module handling?
Would it effect facets?
I've been using IntelliJ IDEA 12 for Android projects for a long time. Android studio has a lot of beneficial additional Android integration, such as:
Inline Lint API checks
Drawable and string previews
Better layout editor
Built in Gradle support
Better DDMS integration
But you can certainly just use the community edition of IntelliJ 12 for Android projects, and for production projects, I would say it's preferable at this time until Android Studio stabilizes. Also, I believe IntelliJ 13 will essentially include all of the Android functionality that Android Studio does, from what I've heard.
This is useful FAQs about Android Studio vs Android Plugin in IntelliJ IDEA.
It is clear to me that
The EAP (Early Access Preview) of IntelliJ IDEA 13, which includes all of the Android Studio features except for the redesigned new project wizard and the App Engine cloud endpoints integration, is available now.
http://blog.jetbrains.com/idea/2013/05/intellij-idea-and-android-studio-faq/
As of today, Android studio actually functions, so I guess this would be my immediate solution. plus I'm not even sure the Android plugin would support all the features as Android studio will, and that there would not be any conflicts... better safe then sorry.