После добавления зависимости от Google Admob cie a не удалось построить мой проект. Так что я перешел на Androidx, тогда у меня куча ошибок. Особенно в моих фрагментах.
Android resource linking failed
C:\Users\DT User3\.gradle\caches\transforms-2\files-2.1\b4ff399857e82d00548bc792e5cf526d\res\color\abc_btn_colored_borderless_text_material.xml:20: error: attribute alpha (aka com.samex.android.stopsmokingnow:alpha) not found.
C:\Users\DT User3\.gradle\caches\transforms-2\files-2.1\b4ff399857e82d00548bc792e5cf526d\res\color\abc_btn_colored_text_material.xml:20: error: attribute alpha (aka com.samex.android.stopsmokingnow:alpha) not found.
C:\Users\DT User3\.gradle\caches\transforms-2\files-2.1\b4ff399857e82d00548bc792e5cf526d\res\color\abc_tint_btn_checkable.xml:19: error: attribute alpha (aka com.samex.android.stopsmokingnow:alpha) not found.
C:\Users\DT User3\.gradle\caches\transforms-2\files-2.1\b4ff399857e82d00548bc792e5cf526d\res\color\abc_tint_default.xml:19: error: attribute alpha (aka com.samex.android.stopsmokingnow:alpha) not found.
C:\Users\DT User3\.gradle\caches\transforms-2\files-2.1\b4ff399857e82d00548bc792e5cf526d\res\color\abc_tint_edittext.xml:19: error: attribute alpha (aka com.samex.android.stopsmokingnow:alpha) not found.
C:\Users\DT User3\.gradle\caches\transforms-2\files-2.1\b4ff399857e82d00548bc792e5cf526d\res\color\abc_tint_seek_thumb.xml:19: error: attribute alpha (aka com.samex.android.stopsmokingnow:alpha) not found.
C:\Users\DT User3\.gradle\caches\transforms-2\files-2.1\b4ff399857e82d00548bc792e5cf526d\res\color\abc_tint_spinner.xml:19: error: attribute alpha (aka com.samex.android.stopsmokingnow:alpha) not found.
C:\Users\DT User3\.gradle\caches\transforms-2\files-2.1\b4ff399857e82d00548bc792e5cf526d\res\color\abc_tint_switch_track.xml:19: error: attribute alpha (aka com.samex.android.stopsmokingnow:alpha) not found.
C:\Users\DT User3\.gradle\caches\transforms-2\files-2.1\b4ff399857e82d00548bc792e5cf526d\res\color\abc_tint_switch_track.xml:20: error: attribute alpha (aka com.samex.android.stopsmokingnow:alpha) not found.
C:\Users\DT User3\.gradle\caches\transforms-2\files-2.1\b4ff399857e82d00548bc792e5cf526d\res\color\abc_tint_switch_track.xml:21: error: attribute alpha (aka com.samex.android.stopsmokingnow:alpha) not found.
C:\Users\DT User3\Desktop\StopSmokingNow\app\src\main\res\font\abril_fatface.xml:2: error: attribute fontProviderAuthority (aka com.samex.android.stopsmokingnow:fontProviderAuthority) not found.
C:\Users\DT User3\Desktop\StopSmokingNow\app\src\main\res\font\abril_fatface.xml:2: error: attribute fontProviderCerts (aka com.samex.android.stopsmokingnow:fontProviderCerts) not found.
C:\Users\DT User3\Desktop\StopSmokingNow\app\src\main\res\font\abril_fatface.xml:2: error: attribute fontProviderPackage (aka com.samex.android.stopsmokingnow:fontProviderPackage) not found.
C:\Users\DT User3\Desktop\StopSmokingNow\app\src\main\res\font\abril_fatface.xml:2: error: attribute fontProviderQuery (aka com.samex.android.stopsmokingnow:fontProviderQuery) not found.
C:\Users\DT User3\Desktop\StopSmokingNow\app\src\main\res\font\alex_brush.xml:2: error: attribute fontProviderAuthority (aka com.samex.android.stopsmokingnow:fontProviderAuthority) not found.
C:\Users\DT User3\Desktop\StopSmokingNow\app\src\main\res\font\alex_brush.xml:2: error: attribute fontProviderCerts (aka com.samex.android.stopsmokingnow:fontProviderCerts) not found.
И это мой файл Gradle, он выглядит все нормально, я думаю. И есть проблемы внутри фрагмента с getActivity.getFragmentManager и @Nonnull не распознается
apply plugin: 'com.android.application'
android {
compileSdkVersion 28
defaultConfig {
applicationId "com.samex.android.stopsmokingnow"
minSdkVersion 16
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'com.daimajia.easing:library:2.0@aar'
implementation 'com.daimajia.androidanimations:library:2.3@aar'
implementation 'androidx.appcompat:appcompat:1.0.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'androidx.recyclerview:recyclerview:1.0.0'
implementation 'com.google.android.gms:play-services-ads:19.0.1'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.1.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0'
}