android-manifest

Try to migrate AndroidX to Android AppCompat

China☆狼群 提交于 2021-02-07 12:42:41
问题 I have errors when migrate from AndroidX to Appcompat. Here is log build: Manifest merger failed : Attribute application@appComponentFactory value=(android.support.v4.app.CoreComponentFactory) from [com.android.support:support-compat:28.0.0] AndroidManifest.xml:22:18-91 is also present at [androidx.core:core:1.0.1] AndroidManifest.xml:22:18-86 value=(androidx.core.app.CoreComponentFactory). Suggestion: add 'tools:replace="android:appComponentFactory"' to <application> element at

Try to migrate AndroidX to Android AppCompat

最后都变了- 提交于 2021-02-07 12:42:27
问题 I have errors when migrate from AndroidX to Appcompat. Here is log build: Manifest merger failed : Attribute application@appComponentFactory value=(android.support.v4.app.CoreComponentFactory) from [com.android.support:support-compat:28.0.0] AndroidManifest.xml:22:18-91 is also present at [androidx.core:core:1.0.1] AndroidManifest.xml:22:18-86 value=(androidx.core.app.CoreComponentFactory). Suggestion: add 'tools:replace="android:appComponentFactory"' to <application> element at

In AndroidManifest: Expecting android:screenOrientation=“unspecified”

不羁岁月 提交于 2021-02-05 20:11:58
问题 Android Studio 3.6. I want my app to be always in portrait mode. So in my AndroidMainfest.xml : <activity android:name=".activity.SplashActivity" android:screenOrientation="portrait"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> I run the app and SplashActivity shows in portrait mode. Nice. But the editor shows the following error: Expecting android:screenOrientation="unspecified"

“Cause: duplicate entry: AndroidManifest.xml” with a project having two manifest files

匆匆过客 提交于 2021-01-29 17:49:12
问题 I get this error "Cause: duplicate entry: AndroidManifest.xml" every time I want to build my project. I have cleaned and rebuild the project and it still gives this error. my merged manifest has no errors. This the AndroidManifest.xml <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" package="com.dream.chat"> <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> <uses

Note: Recompile with -Xlint:deprecation for details.(Solved)

一个人想着一个人 提交于 2021-01-29 12:35:26
问题 Note: --:-----.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. 回答1: To solve this problem you need to go Gradle Scripts the click on build.gradle after buildscript you need to add gradle.projectsEvaluated { tasks.withType(JavaCompile){ options.compilerArgs << "-Xlint:deprecation" } } For example : buildscript { repositories { google() jcenter() } dependencies { classpath 'com.android.tools.build:gradle:3.6.3' classpath 'com.google.gms:google

Can I override android:noHistory in code?

我与影子孤独终老i 提交于 2021-01-28 05:21:30
问题 I am using an activity from a third-party library that has set android:noHistory to "true". Is it possible for me to override that value in code before I launch the activity? Is there an opposite of "FLAG_ACTIVITY_NO_HISTORY" flag I could use with the Intent? 回答1: I am using an activity from a third-party library that has set android:noHistory to "true". Add an <activity> element to your own app's manifest, with an android:name attribute identifying the activity, and with android:noHistory=

How to convert my app to an Android TV app?

泪湿孤枕 提交于 2021-01-27 07:51:04
问题 I have a simple Android application with 2 views (screens). I'm trying to make my app working on Android TV as well. I don't know what am I doing wrong, but when I run my app on an emulator I don't see my app's logo. What is wrong in my manifest file: <?xml version="1" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="xxx.flagmaster"> <uses-feature android:name="android.software.leanback" android:required="false" /> <uses-feature android:name=

How to bind CallScreeningService?

微笑、不失礼 提交于 2021-01-27 06:27:13
问题 I want to get the Call Details and block the calls(if necessary). As the TelecomManager endCall method is deprecated and as per the documentation it is suggesting to use the CallScreeningService. https://developer.android.com/reference/android/telecom/CallScreeningService.html As mentioned in the Android documentation, I am trying to bind the CallScreeningService with my application. I have created a class public class CallUtil extends CallScreeningService { private Call.Details mDetails;

Android Provider in Dynamic Feature module not found in Base Module

泄露秘密 提交于 2021-01-27 03:43:41
问题 I am using some libraries in my dynamic feature module. These libraries are Adding some providers to the manifest. For example in my build.gradle file in the dynamic module: dependencies { ... implementation 'com.github.esafirm.android-image-picker:imagepicker:1.11.1' ... } This library adds the following tag to the manifest: <provider android:name="com.esafirm.imagepicker.helper.ImagePickerFileProvider" android:authorities="{$applicationId}.imagepicker.provider" android:exported="false"

I the error “unexpected element <queries> found in <manifest>”, how to fix it? [closed]

為{幸葍}努か 提交于 2021-01-20 07:10:33
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 28 days ago . Improve this question this is the screenshot play-services-ads-lite-19.6.0/AndroidManifest.xml:27:5-38:15: AAPT: error: unexpected element <queries> found in <manifest> . This is the error. 回答1: I also had same issue on Android Studio 4.1.1, suddenly, 2 days ago. I solved the issue by upgrading