Building Android game in Unity 4.3.4 does not succeed - android

The build does not work.
During build I have messages:
Android SDK is outdated. SDK Platform tool version 0<16. Android SDK
is missing required platform api. Minimuim platform required is
Android 4.0 (API level 14).
This happens though:
1) I have in Android SDK manager the following installed (as seen in Android Studio):
Tools - all 12 items,
Android L (API 20, L preview) - all 7 itmes,
Android 4.4W (API 20) - all 5 items.
In particular, I have everything with API 20 installed
2) I have a correct path to main folder of Android SDK location in Unity Preferneces -> External Tools
I'll appreciate any help or hints.

Press continue the next time you get it. Keep pressing it everytime that update message pops up. It's just Unity asking you to have the latest SDK package to build with the latest improvements in Android SDK, which is not necessarily mandatory. If Android updates would come 3-4 times a week,you can't be bothered with updating so often.
And when you finally decide it's time to update, or feel like it just some time later,
open up the SDK Manager (inside android-sdk folder), and update (don't check the sources, docs, and android emulator images; you don't need them. Just check core packages and necessary google APIs.).

Related

In eclipse I a getting the API level 20 .I want ot use lower versions of API

How to change API level. when selecting this API level it shows no CPU/ABi available and also I am not able to add text fields it throws an exception.
Image 1Image 2
In Eclipse go to manifest.xml
<uses-sdk android:minSdkVersion="int" />
In android studio: go to your app Gradle there you can find the minSdkVersion. Lower it to the version you needed.
android {
....
defaultConfig {
....
minSdkVersion 17
....
}
}
Quick Fix: Uncheck installed checkbox to see other downloads and try to refresh android sdk manager, restart it or restart the computer. API 19 worked fine for me before I moved to android studio.
I'm not sure if API 20 is supported in eclipse, I recommend Android Studio for android development. Anyway, if you have an old PC that does not meet android studio minimum requirement, download IntelliJ IDEA https://www.jetbrains.com/idea/, it's a bit lighter and free and require 1 GB of RAM (But 1 GB is very bad, you need at least 2 GB without running android emulator). However, if you still want to work with eclipse I think you need API 19 you have to download it manually from the web and move it to android SDK location. Or you can install android studio to download SDK without using it.
Newer APIs are way better, they have more libraries that supports both old and new android versions. It's really worth upgrading to Android Studio.
For the CPU/ABi error check this post Android 4.3 Virtual Device CPU/ABI - No system images installed (eclipse)

How to create an API specific environment for Android SDK/Eclipse?

I am trying (unsuccessfully, and getting extremely frustrated), to create an API specific environment for Eclipse.
I want to create an environment that supports API 17 ONLY. No other APIs installed. I successfully did this a couple months ago, but apparently, some update now (after 5.0 Lollipop was released), any attempt to install ANYTHING via the SDK manager installs API 21. I don't want it - it isn't checked, but it constantly installs.
And, in the process, screws up my environment. If I attempt to remove it, I get errors:
Parsing Data for android-21 failed
Unsupported major.minor version 51.0
I have NO idea where the major.minor version referenced is - it doesn't show up in the project properties at all.
If I leave API 21 installed (as it keeps insisting to do), then I can't access my layout properly, i.e. /res/layout/activity_??_settings.xml. The graphical layout shows nothing, there is nothing in the palette, and I get the messages:
The rendering target (Android 5.0) is still loading.
The layout will refresh automatically once the process is finished.
These two messages NEVER go away. I've tried cleaning the project (I only have one), repeatedly, and nothing seems to work.
HELP! What do I do to get an API 17 only environment? I need to get something set up for a specific project for a class, that follows my textbook, but simply can't get around these issues.
Ok - I may have found the solution.
I understand the answer that Eclipse is no longer supported - but that isn't an answer to my specific issue. I must follow a textbook, and it's examples, and, and, and. That doesn't give me any flexibility. Sorry - have had this class "placed" on me last minute, and I haven't used Eclipse/Android for quite a while. I don't have time to rewrite the textbook to accommodate the new stuff (which needs to be done, but I've got 5 days left, and I can't rewrite the textbook to change all references to Eclipse menu/rtclick options to whatever else in 5 days, much less avoid potential copyright issues).
My solution (on an OSX 10.10.1 platform, which seems to work so far):
Use Eclipse Juno M20130204-1200
First thing - make sure the latest Android SDK Manager is installed, 24.0.2 - and install it ONLY (or if anything else is installed, remove all of it, then install the SDK Manager 24.0.2)
Second - install the specific API desired. What I have installed for API 17:
Tools
Android SDK Tools 24.0.2
Android SDK Platform-tools 21
Android SDK Build-tools 17
Android 4.2.2 (API 17)
SDK Platform 17 3
Samples for SDK 17 1
ARM EABI V7a System Image 17 2
Google APIs 17 3
Sources for Android SDK 17 1
Android 2.2 (API 8)
SDK Platform 8 3
Extras
Android Support Library 21.0.3
The Samples and Google APIs probably aren't necessary for the class, and I may remove them.
After that's done, when on the layout view screen in Eclipse, click the button "Android version to use when rendering layouts in Eclipse" to the correct API (in my case - 17). This then seems to work. For whatever reason, this always defaults to the latest API - installed or not.
I'll proceed, hoping these items will at least get me through the section of the class dealing with Android.

How to get more target platform options for Eclipse AVD?

Using Eclipse, trying to create a new virtual device to test app on older Android versions, but when I go to create a new Android Virtual Device I only get one option - 4.4.2 API Level 19. How do I get other versions to show here? Last night I was a bit tired and tried to if using the SDK Manager to grab 4.0.3 SDK and Google API would work to test on older version, but it seemed to mess up Eclipse as I got an ADT needs update error (which would find no updates). So starting back from scratch and figured I'd ask instead of trial and error. Thanks!
Open the Android SD Manager, check Show: Updates/New
Select SDK Platform and ARM EABI v7a System Image (also Google APIs if you are unsing them) for all Versions you want to test and download them. You need the source of the Android-Version to create an AVD for it.
Updating your Android SDK build-tools and Android SDK Platform-tools is always recommanded because newer Android versions need a newer build tool setup.

Can't see/select API 19 in Eclipse Indigo in project properties

Trying to update an app to newer version of android. Downloaded/installed API 19 and supporting files via SDK manager (as administrator), SDK manager shows that all files are installed - but when selecting [project properties - android]... api 19 is not listed. Can't include screenshots since i don't have enough reputation points - but screenshot would show SDK manager with installed android 4.4.2 (api 19), and a second screenshot showing android properties only listing up to api 18.
Closest post/solution found was how to access api 19 for android in eclipse?
but didn't help...
using Eclipse indigo
Many thanks for your help!!
You will need to update eclipse too after updating the SDK. Go to Help -> Check for updates and see if some component needs update.

got error on android with eclipse: no target available

i install all the programs that need for develop on android
i start project like this:
File - new - project - android - android project > next
but in build target i see: no target available
what can be the problem ?
thanks in advance
You probably didn't set the path to the Android SDK in eclipse yet.
Go to Window -> Preferences -> Android and enter the path to your SDK into the SDK Location textfield at the top.
You have no Android platforms installed
In this case go to
Window -> SDK and AVD Manager -> Available Packages -> Android Repository and select a few targets¹, then click install. You can check for already installed platforms on the left under Installed packages if you are not sure.
The targets you are looking for are the SDK Platform Android X.X , API Y, rev Z ones.
If you don't want to download much, I'd say get Android 2.3.3., API 10 and Android 3.2, API 13. 2.3.3. is the most recent phone version of Android, and 3.2 is the newest tablet version.
¹ If you got a decent internet connection I'd recommend to get everything, you will need a few target platforms sooner or later anyway.
You need to select a build target in that dialog, e.g. Google APIs 2.2. That dialog is a little confusing, because it has a scroll pane in it, which is easy to overlook. You need to scroll down to get to some options.

Categories

Resources