我有一个Xamarin.Forms项目,在其中Android无法构建,事实上,即使是全新的项目,我也遇到了相同的问题。Android失败,并出现大量错误。我已经安装和重新安装了Android SDK、Java,并确保所有Android SDK中的内容都已安装,但仍然没有成功。
Severity Code Description Project File Line Suppression State
Error error: package android.support.design.widget.TabLayout does not exist
android.support.design.widget.TabLayout.OnTabSelectedListener, MyApp.Droid P:\VisualStudioProjects\MyApp\MyApp\MyApp.Droid\obj\Debug\android\src\md5270abb39e60627f0f200893b490a1ade\TabbedPageRenderer.java 8
Error error: package android.support.design.widget.TabLayout does not exist
public void onTabReselected (android.support.design.widget.TabLayout.Tab p0) MyApp.Droid P:\VisualStudioProjects\MyApp\MyApp\MyApp.Droid\obj\Debug\android\src\md5270abb39e60627f0f200893b490a1ade\TabbedPageRenderer.java 76
Error error: package android.support.design.widget.TabLayout does not exist
private native void n_onTabReselected (android.support.design.widget.TabLayout.Tab p0); MyApp.Droid P:\VisualStudioProjects\MyApp\MyApp\MyApp.Droid\obj\Debug\android\src\md5270abb39e60627f0f200893b490a1ade\TabbedPageRenderer.java 81
Error error: package android.support.design.widget.TabLayout does not exist
public void onTabSelected (android.support.design.widget.TabLayout.Tab p0) MyApp.Droid P:\VisualStudioProjects\MyApp\MyApp\MyApp.Droid\obj\Debug\android\src\md5270abb39e60627f0f200893b490a1ade\TabbedPageRenderer.java 84
Error error: package android.support.design.widget.TabLayout does not exist
private native void n_onTabSelected (android.support.design.widget.TabLayout.Tab p0); MyApp.Droid P:\VisualStudioProjects\MyApp\MyApp\MyApp.Droid\obj\Debug\android\src\md5270abb39e60627f0f200893b490a1ade\TabbedPageRenderer.java 89
Error error: package android.support.design.widget.TabLayout does not exist
public void onTabUnselected (android.support.design.widget.TabLayout.Tab p0) MyApp.Droid P:\VisualStudioProjects\MyApp\MyApp\MyApp.Droid\obj\Debug\android\src\md5270abb39e60627f0f200893b490a1ade\TabbedPageRenderer.java 92
Error error: package android.support.design.widget.TabLayout does not exist
private native void n_onTabUnselected (android.support.design.widget.TabLayout.Tab p0); MyApp.Droid P:\VisualStudioProjects\MyApp\MyApp\MyApp.Droid\obj\Debug\android\src\md5270abb39e60627f0f200893b490a1ade\TabbedPageRenderer.java 97
Error error: package android.support.design.widget.AppBarLayout does not exist
android.support.design.widget.AppBarLayout.OnOffsetChangedListener MyApp.Droid P:\VisualStudioProjects\MyApp\MyApp\MyApp.Droid\obj\Debug\android\src\mono\android\support\design\widget\AppBarLayout_OnOffsetChangedListenerImplementor.java 8
Error error: cannot find symbol
public void onOffsetChanged (android.support.design.widget.AppBarLayout p0, int p1)
symbol: class AppBarLayout
location: package android.support.design.widget MyApp.Droid P:\VisualStudioProjects\MyApp\MyApp\MyApp.Droid\obj\Debug\android\src\mono\android\support\design\widget\AppBarLayout_OnOffsetChangedListenerImplementor.java 27
Error error: cannot find symbol
private native void n_onOffsetChanged (android.support.design.widget.AppBarLayout p0, int p1);
symbol: class AppBarLayout
location: package android.support.design.widget MyApp.Droid P:\VisualStudioProjects\MyApp\MyApp\MyApp.Droid\obj\Debug\android\src\mono\android\support\design\widget\AppBarLayout_OnOffsetChangedListenerImplementor.java 32
Error error: package android.support.design.widget.NavigationView does not exist
android.support.design.widget.NavigationView.OnNavigationItemSelectedListener MyApp.Droid P:\VisualStudioProjects\MyApp\MyApp\MyApp.Droid\obj\Debug\android\src\mono\android\support\design\widget\NavigationView_OnNavigationItemSelectedListenerImplementor.java 8
Error error: package android.support.design.widget.SwipeDismissBehavior does not exist
android.support.design.widget.SwipeDismissBehavior.OnDismissListener MyApp.Droid P:\VisualStudioProjects\MyApp\MyApp\MyApp.Droid\obj\Debug\android\src\mono\android\support\design\widget\SwipeDismissBehavior_OnDismissListenerImplementor.java 8
Error error: package android.support.design.widget.TabLayout does not exist
android.support.design.widget.TabLayout.OnTabSelectedListener MyApp.Droid P:\VisualStudioProjects\MyApp\MyApp\MyApp.Droid\obj\Debug\android\src\mono\android\support\design\widget\TabLayout_OnTabSelectedListenerImplementor.java 8
Error error: package android.support.design.widget.TabLayout does not exist
public void onTabReselected (android.support.design.widget.TabLayout.Tab p0) MyApp.Droid P:\VisualStudioProjects\MyApp\MyApp\MyApp.Droid\obj\Debug\android\src\mono\android\support\design\widget\TabLayout_OnTabSelectedListenerImplementor.java 29
Error error: package android.support.design.widget.TabLayout does not exist
private native void n_onTabReselected (android.support.design.widget.TabLayout.Tab p0); MyApp.Droid P:\VisualStudioProjects\MyApp\MyApp\MyApp.Droid\obj\Debug\android\src\mono\android\support\design\widget\TabLayout_OnTabSelectedListenerImplementor.java 34
Error error: package android.support.design.widget.TabLayout does not exist
public void onTabSelected (android.support.design.widget.TabLayout.Tab p0) MyApp.Droid P:\VisualStudioProjects\MyApp\MyApp\MyApp.Droid\obj\Debug\android\src\mono\android\support\design\widget\TabLayout_OnTabSelectedListenerImplementor.java 37
Error error: package android.support.design.widget.TabLayout does not exist
private native void n_onTabSelected (android.support.design.widget.TabLayout.Tab p0); MyApp.Droid P:\VisualStudioProjects\MyApp\MyApp\MyApp.Droid\obj\Debug\android\src\mono\android\support\design\widget\TabLayout_OnTabSelectedListenerImplementor.java 42
Error error: package android.support.design.widget.TabLayout does not exist
public void onTabUnselected (android.support.design.widget.TabLayout.Tab p0) MyApp.Droid P:\VisualStudioProjects\MyApp\MyApp\MyApp.Droid\obj\Debug\android\src\mono\android\support\design\widget\TabLayout_OnTabSelectedListenerImplementor.java 45
Error error: package android.support.design.widget.TabLayout does not exist
private native void n_onTabUnselected (android.support.design.widget.TabLayout.Tab p0); MyApp.Droid P:\VisualStudioProjects\MyApp\MyApp\MyApp.Droid\obj\Debug\android\src\mono\android\support\design\widget\TabLayout_OnTabSelectedListenerImplementor.java 50
Warning CS0108 'App.Current' hides inherited member 'Application.Current'. Use the new keyword if hiding was intended. MyApp.Droid P:\VisualStudioProjects\MyApp\MyApp\MyApp\App.cs 9
Warning CS0108 'LoginPage.IsBusy' hides inherited member 'Page.IsBusy'. Use the new keyword if hiding was intended. MyApp.Droid P:\VisualStudioProjects\MyApp\MyApp\MyApp\LoginPage.xaml.cs 53
Warning CS4014 Because this call is not awaited, execution of the current method continues before the call is completed. Consider applying the 'await' operator to the result of the call. MyApp.Droid P:\VisualStudioProjects\MyApp\MyApp\MyApp\LoginPage.xaml.cs 105
Warning CS4014 Because this call is not awaited, execution of the current method continues before the call is completed. Consider applying the 'await' operator to the result of the call. MyApp.Droid P:\VisualStudioProjects\MyApp\MyApp\MyApp\LoginPage.xaml.cs 112
Warning CS0649 Field 'LoginServerResponseModel.Login' is never assigned to, and will always have its default value null MyApp.Droid P:\VisualStudioProjects\MyApp\MyApp\MyApp\Models\LoginServerResponseModel.cs 8
Warning CS0649 Field 'RegistrationServerResponseModel.registration' is never assigned to, and will always have its default value null MyApp.Droid P:\VisualStudioProjects\MyApp\MyApp\MyApp\Models\RegistrationServerResponseModel.cs 8
Warning CS4014 Because this call is not awaited, execution of the current method continues before the call is completed. Consider applying the 'await' operator to the result of the call. MyApp.Droid P:\VisualStudioProjects\MyApp\MyApp\MyApp\SignupPage.xaml.cs 99
Warning CS4014 Because this call is not awaited, execution of the current method continues before the call is completed. Consider applying the 'await' operator to the result of the call. MyApp.Droid P:\VisualStudioProjects\MyApp\MyApp\MyApp\SignupPage.xaml.cs 150
Warning CS4014 Because this call is not awaited, execution of the current method continues before the call is completed. Consider applying the 'await' operator to the result of the call. MyApp.Droid P:\VisualStudioProjects\MyApp\MyApp\MyApp\SignupPage.xaml.cs 157
Warning CS0414 The field 'UploadImagePage.imgcount' is assigned but its value is never used MyApp.Droid P:\VisualStudioProjects\MyApp\MyApp\MyApp\UploadImagePage.xaml.cs 10
Warning CS0414 The field 'UploadImagePage.userfolder' is assigned but its value is never used MyApp.Droid P:\VisualStudioProjects\MyApp\MyApp\MyApp\UploadImagePage.xaml.cs 11
Warning CS4014 Because this call is not awaited, execution of the current method continues before the call is completed. Consider applying the 'await' operator to the result of the call. MyApp.Droid P:\VisualStudioProjects\MyApp\MyApp\MyApp\UploadImagePage.xaml.cs 56
Warning @(Content) build action is not supported MyApp.Droid P:\VisualStudioProjects\MyApp\MyApp\MyApp\Images\background.png
Warning @(Content) build action is not supported MyApp.Droid P:\VisualStudioProjects\MyApp\MyApp\MyApp\Images\check_active.png
Warning @(Content) build action is not supported MyApp.Droid P:\VisualStudioProjects\MyApp\MyApp\MyApp\Images\check_inactive.png
Warning @(Content) build action is not supported MyApp.Droid P:\VisualStudioProjects\MyApp\MyApp\MyApp\Images\icon_easyrest.png
Warning @(Content) build action is not supported MyApp.Droid P:\VisualStudioProjects\MyApp\MyApp\MyApp\Images\ic_launcher.png
Warning @(Content) build action is not supported MyApp.Droid P:\VisualStudioProjects\MyApp\MyApp\MyApp\Images\logout.png
Warning @(Content) build action is not supported MyApp.Droid P:\VisualStudioProjects\MyApp\MyApp\MyApp\Images\pdf_icon.png