Question: i am using visual studio for xamarin. forms c#. i got an issue when i rebuilt my project to see if i have any problem

i am using visual studio for xamarin. forms c#.

i got an issue when i rebuilt my project to see if i have any problem or not and i don't know how to fix it please make your answer clear.

i am using visual studio for xamarin. forms c#. i got an

issue when i rebuilt my project to see if i have any

MainActivity.xaml.cs

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Xamarin.Forms;

namespace XamarinCalculator { public partial class MainPage : ContentPage { int currentState = 1; string myoperator; double firstNumber, secondNumber;

public MainPage() { InitializeComponent(); OnClear(this, null); }

void OnSelectNumber(object sender, EventArgs e) { Button button = (Button)sender;

string pressed = button.Text; //validation before button is pressed

//if the current result is 0 in text box then we will direct the calculator to exclude 0 when pressing busttons if (this.resultText.Text == "0" || currentState

if (currentState

this.resultText.Text += pressed;// this condition is called when current state is greater and text box will aquire the pressed

double number;//if we are going to assign two dynamic number for a given variable using try parse method if (double.TryParse(this.resultText.Text, out number)) { this.resultText.Text = number.ToString("N0"); if (currentState == 1) { firstNumber = number;//at first current state will be 1 and it will assign first number with the pressed number variable } else { secondNumber = number;//it will be implemented as the number of current state changes i.e. 2 } } }

void OnSelectOperator(object sender, EventArgs e)//event is called when the select operator is called { currentState = -2; Button button = (Button)sender; string pressed = button.Text; myoperator = pressed; }

void OnClear(object sender, EventArgs e)// this method is called when we press the AC button { firstNumber = 0; secondNumber = 0; currentState = 1; this.resultText.Text = "0"; }

void OnPercentage(object sender, EventArgs e) //This method is useful when we are going to find out percentage of last rsulting variable or the initial variable {

if ((currentState == -1) || (currentState == 1))//please use some break point to check when we are going to get current state value as -1 or 1 {

//var result = OperatorHelper.MyPercentage(firstNumber, myoperator); var result = firstNumber / 100; this.resultText.Text = result.ToString(); firstNumber = result; currentState = -1;

}

} void OnCalculate(object sender, EventArgs e) //This method is called when we have both first number and second number and we are going to evaluate those number { if (currentState == 2) { var result = OperatorHelper.Calculate(firstNumber, secondNumber, myoperator);

this.resultText.Text = result.ToString(); firstNumber = result; currentState = -1; } } void OnSquareRoot(object sender, EventArgs e) //We call this event when we have one resulting number or initial number ,we are going to find out the square root of that number { if ((currentState == -1) || (currentState == 1)) { //var result = OperatorHelper.MySquareRoot(firstNumber, myoperator); var result = Math.Sqrt(firstNumber);

this.resultText.Text = result.ToString(); firstNumber = result; currentState = -1; } }

private void squareclicked(object sender, EventArgs e)//We call this method when we have one resulting number or initial number,we are going to find out the square root of that number {

if ((currentState == -1) || (currentState == 1)) { //var result = OperatorHelper.MySquare(firstNumber, myoperator); var result = firstNumber * firstNumber; this.resultText.Text = result.ToString(); firstNumber = result; currentState = -1; } }

} }

File Edit View Git Project Build Debug Test Analyze Tools Extensions Window Help Search (Ctrl+Q) e XamarinCalculator 49 - a Debug Any CPU Xamarin Calculator Android VisualStudio_android-25_x86_phone (Android 7.0 - API 24) DE Live Share Tabs Mai...xaml Grid Grid 1 x Error List 000 Entire Solution X 3 Errors O Warnings 0 of 2 Messages Build + IntelliSense Search Error List " Code File Line Suppression State Server Explorer Toolbox Data Sources Project Xamarin Calculator Android X Description failed processing manifest. resource drawable/icon (aka com.companyname.XamarinCalculator:drawable/icon) not found # Solution Explorer Soo 1 x Search Solution Explorer (Ctrl+;) DO System.Numerics. Vectors 0-0 System.Xml DO System.Xml.Linq Xamarin.Essentials Xamarin.Forms B-O Xamarin Calculator D Assets O Resources C# MainActivity.cs * MainActivity Xamarin Calculator.iOS X Xamarin Calculator Android Android Manifest.xml 1 This error is likely caused by an issue with the Android Manifest.xml file or an Android manifest generation attribute in a source code file. resource drawable/icon (aka com.companyname.XamarinCalculator:drawable/icon) not found. Xamarin Calculator.Android Android Manifest.xml Solution Explorer Git Changes This error is likely caused by an issue with the Android Manifest.xml file or an Android manifest generation attribute in a source code file. Properties Type Grid File Edit View Git Project Build Debug Test Analyze Tools Extensions Window Help Search (Ctrl+Q) O XamarinCalculator Debug Any CPU Xamarin Calculator Android VisualStudio_android-25_x86_phone (Android 7.0 - API 24) DE Live Share Tabs XamarinCalculator - Server Explorer Toolbox Data Sources MainPage.xaml MainPage.xaml.cs OperatorHelper.cs 1 2 5 6 8 9 10 Solution Explorer So Search Solution Explorer (Ctrl+;) B Solution 'XamarinCalculator' (3 of 3 projects) C# Xamarin Calculator 28 Dependencies D) App.xaml C# AssemblyInfo.cs (..) MainPage.xam C# MainPage.xaml.cs C# Operator Helper.cs XamarinCal...or Android Android...fest.xml MainActivity.cs 4 4 File Edit View Git Project Build Debug Test Analyze Tools Extensions Window Help Search (Ctrl+Q) e XamarinCalculator 49 - a Debug Any CPU Xamarin Calculator Android VisualStudio_android-25_x86_phone (Android 7.0 - API 24) DE Live Share Tabs Mai...xaml Grid Grid 1 x Error List 000 Entire Solution X 3 Errors O Warnings 0 of 2 Messages Build + IntelliSense Search Error List " Code File Line Suppression State Server Explorer Toolbox Data Sources Project Xamarin Calculator Android X Description failed processing manifest. resource drawable/icon (aka com.companyname.XamarinCalculator:drawable/icon) not found # Solution Explorer Soo 1 x Search Solution Explorer (Ctrl+;) DO System.Numerics. Vectors 0-0 System.Xml DO System.Xml.Linq Xamarin.Essentials Xamarin.Forms B-O Xamarin Calculator D Assets O Resources C# MainActivity.cs * MainActivity Xamarin Calculator.iOS X Xamarin Calculator Android Android Manifest.xml 1 This error is likely caused by an issue with the Android Manifest.xml file or an Android manifest generation attribute in a source code file. resource drawable/icon (aka com.companyname.XamarinCalculator:drawable/icon) not found. Xamarin Calculator.Android Android Manifest.xml Solution Explorer Git Changes This error is likely caused by an issue with the Android Manifest.xml file or an Android manifest generation attribute in a source code file. Properties Type Grid File Edit View Git Project Build Debug Test Analyze Tools Extensions Window Help Search (Ctrl+Q) O XamarinCalculator Debug Any CPU Xamarin Calculator Android VisualStudio_android-25_x86_phone (Android 7.0 - API 24) DE Live Share Tabs XamarinCalculator - Server Explorer Toolbox Data Sources MainPage.xaml MainPage.xaml.cs OperatorHelper.cs 1 2 5 6 8 9 10 Solution Explorer So Search Solution Explorer (Ctrl+;) B Solution 'XamarinCalculator' (3 of 3 projects) C# Xamarin Calculator 28 Dependencies D) App.xaml C# AssemblyInfo.cs (..) MainPage.xam C# MainPage.xaml.cs C# Operator Helper.cs XamarinCal...or Android Android...fest.xml MainActivity.cs 4 4

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!