2016-12-23 12 views
3

DataBindingを私のクラスCardRecicleViewAdapterTech.classの1つに使用しましたが、DataBindingをサポートしていないライブラリをインポートしましたが、そのクラスのbutter knifeに切り替えました。 問題は、プロジェクトを実行すると、Android Studioは常にCardRecicleViewAdapterTech.classに関連するクラスバインディングを生成し、クラッシュが発生することです。生成されたクラスは、次のとおりです。生成されたデータバインドコードを削除できません

CardViewTechBinding.java

私は、Android Studioのデータバインディングのフォルダにそのjavaファイルを削除したが、その私は私のxmlかでもうdatabindingを使用しない場合でも、何度も何度も生成しています私のclass

これは私がしようとした私はそれは私がdataBinding

<?xml version="1.0" encoding="utf-8"?> 

<android.support.v7.widget.CardView 
    xmlns:android="http://schemas.android.com/apk/res/android" 
    xmlns:card_view="http://schemas.android.com/apk/res-auto" 
    xmlns:ProgressWheel="http://schemas.android.com/apk/res-auto" 
     android:id="@+id/card_tech" 
     android:layout_width="match_parent" 
     android:layout_height="250dp" 
     android:layout_gravity="center" 
     android:layout_marginTop="@dimen/standard_margin" 
     android:layout_marginLeft="@dimen/standard_margin" 
     android:layout_marginRight="@dimen/standard_margin" 
     card_view:cardCornerRadius="4dp" 
     card_view:cardBackgroundColor="@color/primary_light"> 

     <LinearLayout 
      android:orientation="vertical" 
      android:layout_width="match_parent" 
      android:layout_height="match_parent"> 

      <TextView 
       android:text="TextView" 
       android:layout_width="match_parent" 
       android:layout_height="wrap_content" 
       android:id="@+id/text_view_technologie_name" /> 

      <com.pro.soft.apppresentation.ProgressWheel 
       android:id="@+id/pw_spinner" 
       android:layout_width="200dp" 
       android:layout_height="200dp" 
       android:layout_centerInParent="true" 
       ProgressWheel:pwText="Authenticating..." 
       ProgressWheel:pwTextColor="#222" 
       ProgressWheel:pwTextSize="14sp" 
       ProgressWheel:pwRimColor="#330097D6" 
       ProgressWheel:pwBarLength="60dp" 
       ProgressWheel:pwBarColor="#0097D6" 
       ProgressWheel:pwBarWidth="5dp" 
       ProgressWheel:pwRimWidth="2dp" /> 
     </LinearLayout> 

    </android.support.v7.widget.CardView> 

を使用していない場合でも、CardViewTechBinding.javaを生成し、データバインディング

card_view_tech.xml

を使用していない私のレイアウトであります私のPcを再起動し、キャッシュを無効にしてAndroid Studioを再起動しますが、成功することはありません。助けてください。このためには

+0

がプロジェクトをきれいにしようとしたがありますか? –

+0

はい私は何もしませんでした – JoCuTo

+0

あなたはbuild.gradleファイルでそれを無効にしようとしましたか? –

答えて

2

1.- Remove your file generated (build folder) 
2.- Clean your project 
3.- Invalidate cache and restart Android Studio 
4.- Restart computer 
+0

コンピュータを再起動せずに作業しました。 – hiddeneyes02

関連する問題