Intellij cannot select rendering target - android

I have been using Android Studio, that worked like a charm. Then I reinstalled my computer and switched to IntelliJ, but I kept the SDK on SD card so I don't have to re/downloading it.
It works, I can build an app, but layout editor is not working. I cant select rendering target.
Here is what I see.
When I open the dropdown menu to select rendering target it says just: <null>.
Any ideas?

First download proper SDKs in the SDK manager, and then you need to select the device on which you want to preview. To do so, click on the icon of the two little phones left of the AppTheme above the editor.

You need to have properly configured the IntelliJ project with the Android SDK.
Check your Project Settings at Ctrl+Shift+Alt+S.
Also check your Gradle settings to see if your SDK version has been defined there.

Related

Android Studio doesn't show the Android Tab in the Tools dropdown menu

I am trying to run a project created by a colleague, so he zipped up the file and I downloaded it on my computer. I already viewed this link about the issue, however the reported solutions workn't for me. Here is a screenshot regarding my settings for SDK Tools, SDK Platforms and the dropdown menu in question. I have tried turning it on and off again.
Now android studio doesn't support the android tab anymore. You will have to set your requirements from project settings and set emulator using AVD manager. Below attached image will help you navigate through those steps:

Can't set up an avd to use for an emulator in Android Studio

So just now I decided to switch over to Android Studio from Eclipse, everything seems to be fine except that I can't even find the menu to add a new virtual device.
On the Android dev website it says it should be in Tools>Android>AVD Manager or to execute "android avd" from the tools directory, but I don't have a tools directory.
I installed it with pretty much all the default settings so i don't know how it's not there.
Fixed itself sort of. I tried running a project and android studio had a message come up there that allowed me to install the part that was missing, I don't know why I didn't have it at the beginning though.

Android project in Eclipse is missing the Android 4.2.2 library folder

SOLVED - After doing what you all helped me with, a restart of Eclipse fixed it. Thanks
One of my Android apps in Eclipse is showing red errors for all my lines of code, and when I looked to find the problem, there was no Android 4.2.2 library in the project. I don't know where it went, but I'd like to know how I get it back.
It also says "Unable to get system library for project" in the library tab of Build Path.
If these responses don't work, I might just create a new project and put back in the required files.
If the other answers don't help, try right clicking the folder of your project and then going to "Android Tools", then "Fix Project Properties". If you happen to delete your dependencies in the Package Explorer in Eclipse, this will bring them right back!
Try these steps:
Right Click on Project->Properties->Android->Select 4.2.2 in your target name
If there is no 4.2.2 in your target then you probably need to download 4.2.2 api from sdk manager.
Right click on the project ==> Select Android ==> Select Android 4.2.2.
Try downloading other built target, e.g. Android 4.3, so you can do this:
Select other project built target (e.g. Google APIs 4.3), click OK.
Repeat the same steps to select Android 4.2.2.

Android tools doesnt show up on Eclipse

I've installed the latest JRE, eclipse and I have the ADT plugin installed in eclipse. Somehow the android tools don't show up in the window. Instead, there are blank spaces where it should've been. Any help would be appreciated.
Thanks
Switch to the Java perspective (you are currently in the 'Resource' perspective): Window->Open Perspective->Java (you may need to select from the Other dialog box).
If you don't see Java as an option, you may have downloaded Eclipse classic, rather than Eclipse for Java Developers.
Could you try to close and restart eclipse ? Also, make sure you have the sdk plugin installed correctly.
Is the Android SDK properly installed?
Was Eclipse restarted after that?
You can also download a Android Developer Bundle that contains all what you need (Eclipse, ADT) except JDK.
What could be happening is that your buttons are simply not visible, it's just matter of adding them to your toolbar. Just right click on your toolbar and hit Customize, On the Tool Bar Visibility tab make sure Android SDK and AVD Manager is selected. That should do the trick.

update Eclipse Android project to next version

I have an android project in Eclipse I started developing in android version 2.2.? (i think). I want to update the project to run on my 2.3.3 device. Is there a way to upgrade the project or do I need to create a new one?
So based on your question... I just want to say that an Android 2.2 application will run on your 2.3.3 device without changes. (i.e., applications are forward compatible)
If you still want to change your platform version, read on.
Right click your project in the Project Explorer pane and select "Properties." The window that comes up will look like the following and you can select a different platform target.
If your project then reports some property related errors in the Problems pane, you can fix those by right-clicking your project again and selecting the Android Tools --> Fix Project Properties menu item:
There's a uses-sdk element in your AndroidManifest.xml file, the minSdkVersion attribute should always be set to something, especially if you're going to put your application in the Android Market. The corresponding API levels for Android are well documented.
I did this myself recently in the Eclipse IDE.
If you right click the project and view properties. There is a tag where you can select the target framework (2.2.?, 2.3.3, etc.) Unselect 2.2 and select 2.3.3.
At this point, if you were to save and reopen the project, it would tell you that some properties are messed up. If you right click the project again, and one of the last few menu buttons will have text along the lines of "Fix Project Properties". Click that option and afterwards everything should work correctly.
I can't add comments yet (apparently), but wanted to add to the above answer.
Yes, as noted above, you can edit project properties to bind to a new target android framework version. Under Properties, the heading on the left you want to pick is "Android". And you don't "unselect and select", you simply check the target framework you want (you can only have one active, they are really radio buttons, not checkboxes!).

Categories

Resources