android-appcompat

USE_FINGERPRINT is deprecated in API level 28

六眼飞鱼酱① 提交于 2020-05-10 03:40:55
问题 Constant USE_FINGERPRINT was deprecated in API level 28 and we should use more generic USE_BIOMETRIC which has been added in same API level. I swap these constants in my Manifest and I'm getting error when calling FingerprintManagerCompat.from(context).isHardwareDetected() . Error is: Missing required permission - USE_FINGERPRINT This happens because of @RequiresPermission("android.permission.USE_FINGERPRINT") annotation in FingerprintManagerCompat in 28.0.0-rc3 support v4 lib. Is this

java.lang.ClassCastException: android.app.Application cannot be cast to androidx.appcompat.app.AppCompatActivity

谁说我不能喝 提交于 2020-04-18 06:15:52
问题 I have a problem regarding adapter in fragment. It throws a typo shown below. java.lang.ClassCastException: android.app.Application cannot be cast to androidx.appcompat.app.AppCompatActivity Here is the code snippet. SongDetailFragment fragment = SongDetailFragment.newInstance(selectedSong); AppCompatActivity activity = (AppCompatActivity) view.getContext().getApplicationContext(); activity.getSupportFragmentManager().beginTransaction() .replace(R.id.song_detail_container, fragment)

Could not find method implemetation() for arguments [com.android.support:appcompat-v7:28.0.0]

随声附和 提交于 2020-04-17 20:35:38
问题 build.gradle(project): apply plugin: 'com.android.application' apply plugin: 'kotlin-android' apply plugin: 'kotlin-android-extensions' android { compileSdkVersion 29 buildToolsVersion "29.0.3" defaultConfig { applicationId "com.sheikhrasik.countries" minSdkVersion 21 targetSdkVersion 29 versionCode 1 versionName "1.0" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize

Error inflating class android.webkit.WebView on android 5

落爺英雄遲暮 提交于 2020-04-10 03:41:28
问题 I got the following error testing on Android 5.0 (API 21). Tested on other OS versions works well. java.lang.RuntimeException: Unable to start activity ComponentInfo{...ui.activities.navigationActivity.fragments.legalFragment.LegalDetailActivity}: android.view.InflateException: Binary XML file line #24: Error inflating class android.webkit.WebView Can't find nothing special about the xml layout, at line 24: <WebView android:id="@+id/nav_fg_legal_detail_web" android:layout_width="match_parent"

Error inflating class android.webkit.WebView on android 5

懵懂的女人 提交于 2020-04-10 03:39:59
问题 I got the following error testing on Android 5.0 (API 21). Tested on other OS versions works well. java.lang.RuntimeException: Unable to start activity ComponentInfo{...ui.activities.navigationActivity.fragments.legalFragment.LegalDetailActivity}: android.view.InflateException: Binary XML file line #24: Error inflating class android.webkit.WebView Can't find nothing special about the xml layout, at line 24: <WebView android:id="@+id/nav_fg_legal_detail_web" android:layout_width="match_parent"

AccountAuthenticatorActivity for AppCompat

老子叫甜甜 提交于 2020-02-28 08:42:12
问题 I'm making an authenticator following the tutorial: http://blog.udinic.com/2013/04/24/write-your-own-android-authenticator/ The login Activity requires to extend AccountAuthenticatorActivity , the issue starts here: AccountAuthenticatorActivity extends the regular Activity and not AppCompatActivity . Using the regular Activity in AppCompat results in a Activity without ActionBar . I want to use AccountAuthenticatorActivity AND having an ActionBar . 回答1: The key is AppCompatDelegate , my code

With API 28 and “androidx.appcompat” library project says “AppCompatActivity” symbol not found

天大地大妈咪最大 提交于 2020-02-26 12:05:01
问题 I updated my build and target version to 28 (Pie) and replaced the relevant dependencies. Now my project says Symbol not found on AppCompatActivity . I have tried to Clean project Rebuild project Invalidate Caches / Restart But the result is the same. Moreover when I try Ctrl + Space after extends keyword in activity class there is no "AppCompatActivity suggestion. I tried to investigate if its present in libraries folder, it's present there. Now, what should I do to make it work? If there is

With API 28 and “androidx.appcompat” library project says “AppCompatActivity” symbol not found

一世执手 提交于 2020-02-26 12:04:06
问题 I updated my build and target version to 28 (Pie) and replaced the relevant dependencies. Now my project says Symbol not found on AppCompatActivity . I have tried to Clean project Rebuild project Invalidate Caches / Restart But the result is the same. Moreover when I try Ctrl + Space after extends keyword in activity class there is no "AppCompatActivity suggestion. I tried to investigate if its present in libraries folder, it's present there. Now, what should I do to make it work? If there is