Xamrin android app project not getting build - android

I am new at xamrin android app development. I have made basic menu drawer app in xamrin. But when I try to run this project it show following warning
Severity Code Description Project File Line Suppression State
Warning An unexpected error occurred trying to initialize Android Designer. Please verify the Android SDK path and the Java Development Kit path on Tools->Options->Xamarin->Android Settings menu. Please see the logs for more details. 0
Severity Code Description Project File Line Suppression State
Warning IDE0006 Error encountered while loading the project. Some project features, such as full solution analysis for the failed project and projects that depend on it, have been disabled. menu_drawer 1 Active
JDK path
C:\Program Files (x86)\Java\jdk1.6.0_21
And Android SDK Path
C:\Users\Suraj\AppData\Local\Xamarin\MonoForAndroid\AndroidSDK

Open Tools > Option > Xamarin > Android. Are the Android SDK and JDK available?
If yes, try updating your Android SDK and JDK.
If no, download and install Android SDK and JDK to your computer.
Hope it could help.

Related

ERROR: Module 'playerlib': platform 'android-28' not found

When I try to run my android build, I get the error - ERROR: Module 'playerlib': platform 'android-28' not found.
I went to tools -> SDK Manager to download Android 28 but I am not sure what to download exactly. Can someone provide me a screenshot.
First of all you need to update your SDK manager that too essential tools are: build tools platform tools tools and android Emulator.
Now go to LOGCAT, click on configure sdk and put it to latest and click auto-config button for each bar.
That should be it, rebuild it. Your Activity.xml file will be displayed with out any warning or error.
Image

Android studio 3.1 on Windows 10 aapt2 is missing 27.0.3 sdk

trying to develop a simple app for Android device. Have installed android studio 3.1 on Windows 10 machine and trying to build "hello World" app. keep getting error = "Cause: aapt2 is missing on 'C:\Users\xxxxx\AppData\Local\Android\Sdk\build-tools\27.0.3\aapt2.exe'". aapt2.exe is not in the 27.0.3 folder only aapt.exe.
What am I missing? Shouldn't this just work ?
The SDK manager sometimes messes up when downloading build tools. It's not necessary to re-install Android Studio - just delete the build tools folder/version that's missing the executable and re-download that.
Open File > Project Structure and select app under Modules category from left bar. Then select a higher Build Tools Version from properties tab. The error must be gone.
In gradle.properties file put this line: android.enableAapt2=false
It worked with me

‘Icon Name Must Be Set’ Issue Android Studio

I'm following the Udacity course on android programming, and I'm trying to set the icon for the app to the one provided for in the course. When I follow the instruction, the following error prevents me from continuing:
"Icon Name Must Be Set"
I have no missing field on the Configure Image Asset page, so I'm clueless, and googling doesn't seem to help. Anyone have an idea of what's going wrong?
If this helps, heres my gradle sync log
4:23:24 PM Gradle sync started
4:23:30 PM Gradle sync failed: failed to find target android-21 : C:\Users\Administrator\AppData\Local\Android\Sdk
Consult IDE log for more details (Help | Show Log)
4:23:30 PM NullPointerException: null
4:23:48 PM IllegalArgumentException: Invalid paths used when trying to generate an icon
I also get a `null' ide exception when I start up the project.
use Android SDK Manager to update Android API and then open the IDE and update Gradle.
Hopefully, you have found the answer by now, but I will post what seemed to work for me.
I was using Gradle version 2.10 and the source code for the Sunshine project seems to need 2.02 of Gradle. When I downloaded this older version, I no longer got the weird "Icon Name Must Be Set" issue.
To change the version of Gradle used :
Android Studio -> Preferences
Build, Execution, Deployment
Build Tools
Gradle
Select the option "User local gradle distribution" and navigate to the location where the gradle version you want to use is located.
Click apply and ok after. That should do it. It worked for me at least.
I am using a Mac (El Cap) with the latest version of Android Studio 2.1.1

Xamarin Tasky Project Error While Build Android Version App

I have download from Xamarin Studio Tasky Project and open it
with Visual Studio 2015 Enterprise Edition
when i build the Solution i got these Errors in ANDROID App
with knowledge that i didn't changed any thing yet in the project.
i tried to build and clean and rebuild the project but still the it gives me an error once i build it.
while iOS version is building and running perfectly
Try right click on Android head > Properties > Choose Application panel. Compare the Namespace in Application panel of the Android project is equal with the namespace in the Resource Designer file (/Resources/Resource.Designer.cs). If not don't change this direct in Resource.Designer.cs file (because the file will be automatically generated). Instead, you can change the namespace in all affected files to the namespace you see in the Android Application panel or use 'using' in the affected files.
This error is due to Android SDK Platform of target OS API version is not installed. Make sure you install all Android APIs SDK versions, specifically the one's you're targeting in Project Settings of Android in Visual Studio.
Open Android SDK Manager and revise the below
Once you install them, restart, then open VS and clean the build output and re-build everything.
So, After trying to solve this problem with many ways and all of it are not the optimal solution.
i Finally find the root Solution for this Issue.
you should Uninstall any Android Build-Tools Which In The Preview Chanel in the Android SDK Manager.
after doing so, clean and rebuild the Xamarin project.

Android Studio doesnt open project correctly

When I import or open a project it doesn't open correctly and in the event log I get the message "Frameworks detected: Android framework is detected in the project Configure". Searching in google it says to install the support library but it's already installed
SOLUTION
Refer to the answer to this question
I ran into the same problems while opening a project. Please make sure when the Android Studio do the conversion or build the Gradle files , you look into the Gradle's build file and check which particular version's SDK and build tools are required to build this particular project. Then also confirm from the SDK Manager (Tools->Android->SDK Manager) that tools of given version are installed.

Categories

Resources