Skip to main content

Posts

Showing posts from August, 2014

Android: Xamarin Studio: Cannot find: C:\Android\SDK\tools\..\platform-tools\aapt.exe

Error: Android: Xamarin Studio: Cannot find: C:\Android\SDK\tools\..\platform-tools\aapt.exe Fix: 1. Check your Target Device / OS version you set up in the AndroidManifest.xml 2. Open the Android SDK Manager, see if that version is listed . 3. You may not have installed all the SDK versions of Android (like 13, 14, 15,16,17,18, 19,....) 4. This above error shows- You have installed an SDK , but but you donot have the ' platform SDK Build tools ' for the target version you have in your AndroidManifest.xml file. 5. From the list of plaform tools - install the version you need. The below picture shows the list of 'SDK Build tools' under 'Tools' in Android SDK Manager. (This shows  Android SDK Build-Tools for all the versions are installed )

Xamarin Studio: Execution Failed. Object reference not set to an instance of an object.

ERROR:   Xamarin Studio: Execution Failed. Object reference not set to an instance of an object. ISSUE:  When you try to run your project by menu item 'Run Item' from Xamarin Studio project, the top middle status bar shows the above error. FIX: 1. Notice that in the top bar - the second dropdown is empty (Device list). 2. You have to set your project as a 'Set as Startup project' - (Right click on the project name to see this option in the popup menu) - This is the situation when you have or had multiple projects in the solution or running the project inside an existing solution. The 'Run' command needs to know what project to associate with what device.

Android: No resource found that matches the given name (at background with value '@drawable/ xxxX')

ERROR:  No resource found that matches the given name (at background with value '@drawable/XxxXxx') FIX: Use all lower case when you specify the image file name in the Values / styles.xml. It doesn't matter if you have camel letters in the filename under the Resource Folder. Example:  Instead of this, < item   name = " android : windowBackground " > @drawable/ Splash < / item > Use, < item   name = " android : windowBackground " > @drawable/ splash < / item >