2016-03-28 8 views
1

何が起こったのかわかりません。 graddleを変更し、Google-services.jsonファイルを更新しました。たいしたことはない。Android Textviewが黒くなった

私が気づいたビルドのカップルの後で、私のアプリのすべてのTextViewが黒くなった。私は黒のテキストカラーを意味します。 xmlでどの色を選択するかは重要ではありませんが、テキストは黒です。プログラムで設定すると変更されますが、xmlではチャンスがありません。

Javaコードが変更されていません。あなたは何が起こったか考えていますか?どうもありがとうございます。 プロジェクトが非常に大きく、すべてのテキストフィールドの色をプログラマティックに設定すると時間がかかり、アプリケーションの速度が低下します。 ありがとうございます。

私のGradleファイル

apply plugin: 'com.android.application' 


android { 
    signingConfigs { 
     config { 

     } 
    } 
    compileSdkVersion 'Google Inc.:Google APIs:23' 
    buildToolsVersion '23.0.2' 
    defaultConfig { 
     multiDexEnabled true 
     applicationId "com.example.ykemer.autogeorgia" 
     minSdkVersion 15 
     targetSdkVersion 23 
     versionCode 1 
     versionName "1.0" 
     renderscriptTargetApi 23 
     renderscriptSupportModeEnabled true 
    } 
    buildTypes { 
     release { 
      minifyEnabled false 
      proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 
     } 
     debug { 
      minifyEnabled false 
      proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 
     } 
    } 
    packagingOptions { 
     exclude 'META-INF/LICENSE.txt' 
     exclude 'META-INF/NOTICE.txt' 
    } 
} 


dependencies { 
    compile fileTree(include: ['*.jar'], dir: 'libs') 
    compile 'com.android.support:appcompat-v7:24.0.0-alpha1' 
    compile 'com.android.support:support-annotations:24.0.0-alpha1' 
    compile 'com.android.support:recyclerview-v7:24.0.0-alpha1' 
    compile 'org.apache.commons:commons-lang3:3.0' 
    compile 'com.google.android.gms:play-services-ads:8.4.0' 
    compile 'com.google.android.gms:play-services-analytics:8.4.0' 
    compile 'com.google.android.gms:play-services-gcm:8.4.0' 
    compile 'com.android.support:design:24.0.0-alpha1' 
    compile 'com.davemorrissey.labs:subsampling-scale-image-view:3.4.1' 
    compile 'com.facebook.android:facebook-android-sdk:4.+' 
} 

2つ目

buildscript { 
    repositories { 
     jcenter() 

    } 

    dependencies { 
     classpath 'com.android.tools.build:gradle:1.5.0' 
     classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.2' 
     classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3' 
    } 
} 




allprojects { 
    repositories { 
     jcenter() 
     mavenCentral() 
     maven { 
      url "https://repo.commonsware.com.s3.amazonaws.com" 
     } 
    } 


} 
+0

あなたのstyles.xmlに、あなたのアプリのテーマの中に#124578という行を追加して、 –

+0

をチェックしてみると、すべてのテキストがこの色に変わります。昨日の同じ問題を抱えていて、それを把握できなかったいくつかの漸進的な更新エラーである必要があります。 – Enpi

+0

前のビルドからどのような変更を加えましたか?あなたの問題を見つけることができるようにバックアップファイルを確認してください。 –

答えて

0

は、あなたののstyles.xmlのAppTheme

<item name="android:textColor">Desired Color Code</item> 

、それならば、私が知っているように、以下の行を追加します。あなたのために働く

+0

残念ながらいいえ。 –

関連する問題