I am not sure when this problem actually started.
But today when i tried to create a project with following settings it gives error
My IDE is Eclipse with ADT Plugin
min sdk 8 , target SDK 19 , Compile-with 19
sdk tools 23.0.5
sdk platform tools 21
sdk build tools 21.1
the project was created , but it shows a lot of errors
when i change the the target and compile-with to 20 all errors are gone.
( I also need to delete the support-v4 library that is added to projects automatically as it is a different version than the one in the appcompat-v7 )
Any help is fixing this mess would be really helpful.
So far i tried updating the sdk tools using using sdk manager , it only made things worse , so i went back to the older version .
So Now i have everything updated in my sdk manager, even the system-images. I noticed that when i try to create a new project , even though the sdk manager shows i have 5.0.1, i can only create projects upto API-21 4.x L Preview, is this normal or related to my issue.
Tested on my environment
min sdk 8, target sdk 19, compile with 19, sdk tool 24.0.2, platform tool 21, build tool 21.1.2
After delete the duplicated android-support-v4.jar, every works fine. The project can get compiled and run without any problem.
Did you update your appcompat-v7 to the latest version? In my settings
Android support repository 10, Android support library 21.0.3
Related
I get a aapt.exe exited with code 1073741819 error when I try to build a new blank android app in VS2015 Community Edition.
Also a file obj\android\bin\packaged_resources does not exist error.
I have changed nothing and this happens.
I've tried looking this up and have found about:
Changing the output verbosity to Diagnostic [Doing this has not yielded anything useful that I can understand]
Ensuring all concerned files and directories contain no spaces or any special characters/symbols.
Installing all the latest Android SDKs.
The solutions I've been able to find (which usually include checking names of files and directories along with re-installing Visual Studio all together) do not resolve the issue. I have also tried Repairing VS to no avail as well as re-running the Xamarin for VS installer which also had no effect.
I would rather leave re-installing VS entirely as a last resort since it is a large download (+20GB).
-EDIT-
Most threads I've looked up talk about resolving erroneous syntax, missing parameters, calls to variables that were not declared, incorrect id tags, spaces or dashes in filenames etc. All usually in xml or layout files.
That is not the case for me. I get these errors as soon as I create a new project. I've checked the default code and it does not seem to have any errors in and of itself.
What is also a common remedy is to set output verbosity to 'normal' or 'diagnostic'as doing that would usually point out the culprit (often a syntax error). This has not worked for me either
Also I am up-to-date with SDK packages.
Remove SDK 24 using the Android SDK Manager. Technote on this exact issue here - https://releases.xamarin.com/technical-bulletin-android-sdk-build-tools-24/ . Totally removing "24" from my machine cleared it. Just changing targets did not.
From android SDK manager just make sure that at least one Android SDK Build Tools for your used API is installed
for example for version 22.0.1 , check the below image
I know this question is ancient, but I stumbled on it earlier today with a nearly identical problem. The answers and comments got me nearly all the way to a solution, and since this never seemed to wrap up neatly I thought someone might benefit from my flailing.
I'm pretty new to Xamarin and most other things programming and this is my first Stack answer, so my apologies in advance if I'm off base or out of bounds with anything.
Since it appeared at least some of the problem is conflicting APIs, I set the properties of the application to Android 6.0 (API 23) for compiling and targeting to simplify troubleshooting. See this screencap. This eliminated one instance of code 1073741819 right off the bat.
I then deleted everything that wasn't related to API 23 or Android 6.0 via the SDK manager. Including, rookie mistake, Android SDK Tools in the tools folder. The solution compiled error free (yay!) but my Android tools were gone...something I didn't notice until I tried to get a list of packages from the SDK Manager (that was no longer functional).
I ended up downloading a new set of command line tools from Android and placing the extracted "Tools" folder back into ProgramFiles(x86)\Android\android-sdk. This fixed my mistake with SDK Tools, and added additional packages to my "API 23 only" lineup--but the solution still builds error free.
I currently have the below packages installed per the Android SDK manager and solution builds as expected, so one can use the SDK Manager to modify the packages instead of doing full removal and reinstall of the tools folder (like I bumbled into).
Tools
Android SDK Tools : Rev 25.2.3
Android SDK Build-tools : Rev
23.0.3
Android SDK Build-tools : Rev 23.0.2
Android SDK Build-tools : Rev 23.0.1
Android SDK Build-tools : Rev 22.0.1
Android SDK Build-tools : Rev 21.1.21
Android 7.1.1 (API 25)
Sources for Android SDK : API 25 Rev 1
Android 6.0 (API 23)
SDK Platform : API 23 Rev 3
Google APIs : API 23 Rev 1
Google APIs ARM EABI v7a System Image : API 23 Rev 7
Google APIs Intel x86 Atom System Image : API 23 Rev 12
Sources for Android SDK : API 23 Rev 1
tl/dr:
The wrong combo of Android APIs installed seem to break the aapt.exe process, as does targeting/compiling in a version you don't have packages for or have conflicting packages for.
Setting application properties to a single desired Android version, and
replacing the ProgramFiles(x86)\android-sdk\tools folder with the latest download of command line tools from Android allowed it to build error free.
So I just reinstalled the lastest version of Xamarin after a clean install of my laptop. There were no errors during the Xamarin install, so everything seemed okay. However, I went to open an existing project based on Android 3.1 (API 12) and got the following error when I compiled:
Unsupported or invalid $(TargetFrameworkVersion) value of 'v3.1'. Please update your Project Options.
Checked out my project properties and found that both the Compile and Target Android version combos were blank. I have several versions listed in the combos, but v3.1 (API 12) is nowhere to be found. When I look in the Android SDK Manager, it shows that Android 3.1 (API 12) is installed. Anyone know why it would be missing in Visual Studio/Xamarin?
We removed some of the API levels. Your application can still run on these completely fine, but you can't use them to Compile against or to Target. You will want to set your Target Framework the latest version API 21 currently and set the Minimum to the minimum you want. I usually recommend Target = 21, Minimum either 15 or 10 based on AppCompat that you need.
http://developer.xamarin.com/releases/android/xamarin.android_5/xamarin.android_5.1/#Removal_of_API_Levels
I am using eclipse kepler version and latest ADT plugin. But when i tried to create an android project it is not creating the blank activity and layout file. I could see the same question asked many times. In all those links the answer is given like Help->install new software-> https://dl-ssl.google.com/android/eclipse/.But when i tried this it is displaying like everything is already installed. So i need a proper solution.I am stuck with it. Please do help me.
I got the same problem as you
and I found this
ADT 23.0.4 (October 2014)
Dependencies:
Java 7 or higher is required if you are targeting the L Developer Preview.
Java 1.6 or higher is required if you are targeting other releases.
Eclipse Indigo (Version 3.7.2) or higher is required.
This version of ADT is designed for use with SDK Tools r23.0.2. If you haven't already installed SDK Tools r23.0.2 into your SDK, use the Android SDK Manager to do so.
so...I delete the newest version of SDK Tools 24.0.1
download and install older version SDK Tools r23.0.2
http://dl.google.com/android/installer_r23.0.2-windows.exe
it works for me....
I'm getting the below error after I update the SDK Android 5.0 (API 21)
"parseSdkContent failed Could not initialize class android.graphics.Typeface"
Another thread suggested to delete .android folder, yes its works, but after sometime this error will trigger again and not able to select any Project Build Target SDK, (its allows to check the target and apply, but again open Properties->android, its showing unchecked) to build the app.
I'm using Android SDK Build Tools Rev 19.1 and Eclipse Juno. ADT version 23.0.4
Note : If my Android Project target SDK version is 20 or 19, there is no problem.
This is android package error,its corrupted android 5.0 sdk platform. Just Delete the folder <sdk>/<platforms>/<android-21> and download the android 5.0 sdk platform from sdk manager.
Got the fix. This happened because you installed a new Eclipse and loaded the 5.0 API Directly. You just have to delete the file:
".android in C:\User\\" in Windows.
After this step just install the ANDROID SDK BUILD-TOOLS revision 21
Hope it works for you :)
I just installed android 2.1 SDK in eclipse and created a project targeted for Google API:7. Eclipse shows an error on the project icon, and the debug window shows this error
ERROR: Unknown command 'crunch'
Android Asset Packaging Tool
After quite a lot of googling, I still have no idea how to fix this error. I have already tried cleaning up the project.
This happened to me too when I updated Eclipse from Helios to Indigo (on Windows XP)
Solution was to open Android SDK Manager and install all the default selected updates, notably I was on
Android SDK Tools rev 13
Android SDK Platform Tools rev 7
These updated to
Android SDK Tools rev 14
Android SDK Platform Tools rev 8
My project which targets 2.2 compiles and runs in debug now without any problems (NB I have all the SDKs installed including 4.0 but you can still target earlier SDKs)
I think the problem has a generic cause ==> Partial ADT Update
Check your repositories again and then this link