2

VS Community 2015, Update 3을 사용하고 있습니다. VS 설치 프로그램을 통해 Xamarin v4.2를 설치 한 다음 Xamarin 설치 프로그램을 통해 업데이트했습니다. 4.2.1.60."No resource found ..."빈 플랫폼 간 Xamarin 앱을 컴파일하려고합니다

새로운 교차 플랫폼 프로젝트 : Blank App (Xamarins.Forms Portable)을 만들었습니다. Droid 프로젝트를 시작 프로젝트로 설정 한 다음 BlankApp1.Droid를 마우스 오른쪽 버튼으로 클릭하여 Android 프로젝트를 컴파일하고 시도합니다.

나는 컴파일 다음과 같은 오류가 점점 오전 : (오류 파일 styles.xml에)

어떤 자원은 지정된 이름과 일치 찾을 수 없습니다 : ATTR '을 windowActionBar'.
주어진 이름과 일치하는 리소스가 없습니다 : attr 'windowNoTitle'.
주어진 이름과 일치하는 리소스가 없습니다 : attr 'colorPrimaryDark'.
주어진 이름과 일치하는 리소스가 없습니다 : attr 'colorPrimary'.
항목의 상위를 가져 오는 중에 오류가 발생했습니다 : 'Theme.AppCompat.Light.DarkActionBar'이름과 일치하는 리소스가 없습니다.
주어진 이름과 일치하는 리소스가 없습니다 : attr 'colorAccent'.
항목의 상위를 가져 오는 중에 오류가 발생했습니다 : 'Theme.AppCompat.Light.Dialog'이름과 일치하는 리소스가 없습니다.
주어진 이름과 일치하는 리소스가 없습니다 : attr 'colorAccent'.
주어진 이름과 일치하는 리소스가 없습니다 : attr 'windowActionModeOverlay'.

Styles.xml :

<?xml version="1.0" encoding="utf-8" ?> 
<resources> 
    <style name="MainTheme" parent="MainTheme.Base"> 
    </style> 
    <!-- Base theme applied no matter what API --> 
    <style name="MainTheme.Base" parent="Theme.AppCompat.Light.DarkActionBar"> 
    <!--If you are using revision 22.1 please use just windowNoTitle. Without android:--> 
    <item name="windowNoTitle">true</item> 
    <!--We will be using the toolbar so no need to show ActionBar--> 
    <item name="windowActionBar">false</item> 
    <!-- Set theme colors from http://www.google.com/design/spec/style/color.html#color-color-palette --> 
    <!-- colorPrimary is used for the default action bar background --> 
    <item name="colorPrimary">#2196F3</item> 
    <!-- colorPrimaryDark is used for the status bar --> 
    <item name="colorPrimaryDark">#1976D2</item> 
    <!-- colorAccent is used as the default value for colorControlActivated 
     which is used to tint widgets --> 
    <item name="colorAccent">#FF4081</item> 
    <!-- You can also set colorControlNormal, colorControlActivated 
     colorControlHighlight and colorSwitchThumbNormal. --> 
    <item name="windowActionModeOverlay">true</item> 
    <item name="android:datePickerDialogTheme">@style/AppCompatDialogStyle</item> 
    </style> 

    <style name="AppCompatDialogStyle" parent="Theme.AppCompat.Light.Dialog"> 
    <item name="colorAccent">#FF4081</item> 
    </style> 
</resources> 

패키지 구성은 :

<?xml version="1.0" encoding="utf-8"?> 
<packages> 
    <package id="Xamarin.Android.Support.Animated.Vector.Drawable" version="23.3.0" targetFramework="monoandroid60" /> 
    <package id="Xamarin.Android.Support.Design" version="23.3.0" targetFramework="monoandroid60" /> 
    <package id="Xamarin.Android.Support.v4" version="23.3.0" targetFramework="monoandroid60" /> 
    <package id="Xamarin.Android.Support.v7.AppCompat" version="23.3.0" targetFramework="monoandroid60" /> 
    <package id="Xamarin.Android.Support.v7.CardView" version="23.3.0" targetFramework="monoandroid60" /> 
    <package id="Xamarin.Android.Support.v7.MediaRouter" version="23.3.0" targetFramework="monoandroid60" /> 
    <package id="Xamarin.Android.Support.v7.RecyclerView" version="23.3.0" targetFramework="monoandroid60" /> 
    <package id="Xamarin.Android.Support.Vector.Drawable" version="23.3.0" targetFramework="monoandroid60" /> 
    <package id="Xamarin.Forms" version="2.3.2.127" targetFramework="monoandroid60" /> 
</packages> 

이 프로젝트는 = 6.0은 최신 안드로이드 버전을 사용하여 컴파일하도록 설정되어 있습니다.

또한 Xamarin.Forms Nuget Package를 2.2.0.45에서 2.3.2.127로 업데이트했습니다. 나는 동일한 오류 목록을 얻는다. (이상하게도 오류는 다른 순서에있다.)

어떤 문제가 무엇인지 그리고 어떻게 해결해야하는지에 대한 아이디어가 있는가?

+0

프로젝트 지우기 및 재 구축을 시도 했습니까? Visual Studio를 다시 시작하면 도움이 될 수도 있습니다. –

+0

'packages.config' 파일의 내용을 게시 할 수 있습니까? 나는 올바른 버전의 안드로이드 빌드 도구와 안드로이드 SDK 도구가 설치되어 있지 않다고 믿는다. –

+0

@PrashantC : 완료 – RaelB

답변

2

이동에 :

2A3A8A6D6826EF6CC653030E7D695C41.zip 

지금 다음 완전히 다운로드 시간이 좀 걸릴 것 비주얼 스튜디오로 돌아가서 .. 솔루션 다시 빌드,이 파일을 삭제 :

C:\Users\username\AppData\Local\Xamarin\zips 

이 zip 파일을 찾습니다 파일 연결 속도에 따라, 그것은 약 200mb입니다.

+0

사실, 그게 문제를 해결했다! 고맙습니다. 기존 파일은 9MB에 불과했습니다. – RaelB

관련 문제