2017-06-01 8 views
0

でDexPathListを私は.axmlファイルは、パス上のクラス「android.support.constraint.ConstraintLayout」が見つかりませんでした:Xamarin.Android

<?xml version="1.0" encoding="utf-8"?> 
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" 
    android:layout_width="match_parent" 
    android:layout_height="match_parent"> 
    <TextView 
      android:layout_width="wrap_content" 
      android:layout_height="wrap_content" 
      android:text="Hello World!"/> 
</android.support.constraint.ConstraintLayout> 

次と次は.csで、非常に単純なxamarin古典的なアプリを持っている

ファイル
[Activity(Label = "sa", MainLauncher = true, Icon = "@mipmap/icon")] 
public class MainActivity : Activity 
{ 
    protected override void OnCreate(Bundle savedInstanceState) 
    { 
     base.OnCreate(savedInstanceState); 
     SetContentView(Resource.Layout.Main);//error throws here 
    } 
} 

私はもちろん、それはD、制約レイアウト

dependencies { 
       compile 'com.android.support.constraint:constraint-layout:1.0.2' 
      } 

を有効にするには、.gradleのために次のコードを見つけました。しかしXamarin.Androidで動作しません。インストールしようとしました Xamarin Android Constraint Layout 1.0.0-beta5

ただし、Mono.Android 6.0では動作しません。

問題をどのように解決できますか?どんな推測?

答えて

0

モノフレームワークのバージョンを変更する必要があります。android.csproj v7.0

1

クラスandroid.support.constraint.ConstraintLayoutは何らかの理由でデックスリストを作成していません。

いくつかの理由があるかもしれない:

  • それは
  • インストールされていない、メインのdexリストを作るのではなくのみ二次DEXリストいない離れ
  • リンクされています。

Classy Sharkを使用して、何が起こっているのかを判断します(https://github.com/google/android-classyshark)。 Monoリンカーがリンカーを取り外さないように、リンカーの設定がNoneに設定されていることを確認してください。

関連する問題