android-manifest 相关问题

清单提供有关Android系统应用程序的基本信息

Android MainActivity 的 onCreate() 在安装后首次启动时被调用两次

问题: 我遇到一个不寻常的问题,即我的应用程序启动器活动 (MainActivity) 的 onCreate() 方法被调用两次,但仅当我在

回答 2 投票 0

无法在 android studio 中构建 apk,因为任务 ':app:processDebugAndroidTestManifest' 执行失败

这是在Android Studio Electric Eel上 | 2022.1.1 补丁 2,但我上次在版本 4.x.x 上构建了该应用程序。当尝试运行 build apk 命令时,它给出了以下错误: > 任务:应用程序:

回答 2 投票 0

如何解决无法访问“androidx.core.app.ComponentActivity”的错误

几天前我正在做一个项目,该项目已保存并关闭,结果今天打开它时,MainActivity 中出现错误。 错误:无法访问“androidx.core.app.ComponentActivity”

回答 2 投票 0

在 Google Play Console 中为 Unity 应用更新广告 ID 声明时出错

如何解决以下问题? 当我尝试在 Google Play Console 上更新 Unity 应用程序时,出现错误:在 Play Console 声明中,说明您的应用程序使用广告...

回答 1 投票 0

Android、Java:Android 资源链接失败 -\...\debug\AndroidManifest.xml:15:错误:在 <activity><manifest> 中找到意外元素

在我的 AndroidManifest.xml 中我编写了以下代码: 在我的 AndroidManifest.xml 中我写了这段代码: <manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" package="example.on.myapp12" tools:ignore="ExtraText"> <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> <uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE"/> <application android:requestLegacyExternalStorage="true" android:allowBackup="true" ></application> <activity android:name=".MainActivity" android:label="myapp12"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> </manifest> 应用程序运行后我看到: Android资源链接失败 C:\Users\miroslav\AndroidStudioProjects\myapp12 pp uild\intermediates\packaged_manifests\debug\AndroidManifest.xml:15:错误:在 . 中找到意外元素 我真的不知道出了什么问题...... 我认为您忘记将活动标签放入应用程序标签中 在应用程序标签内添加活动 <?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="example.on.myapp12" tools:ignore="ExtraText"> <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> <uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE"/> <application android:requestLegacyExternalStorage="true" android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:roundIcon="@mipmap/ic_launcher_round" android:supportsRtl="false" android:theme="@style/Theme"> <activity android:name=".MainActivity" android:exported="true" android:label="myapp12"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER"/> </intent-filter> </activity> </application> </manifest>

回答 1 投票 0

我可以根据build.gradel文件将包名称设置为我的AndroidManifest.xml吗?

默认情况下,我的应用程序中的 AndroidManifest.xml 中没有包名称。

回答 1 投票 0

React原生推送通知中Android资源链接失败

在此处输入图像描述当我添加到 android Manifest 中时,我收到此错误任何人都可以帮助如何集成反应本机推送通知 有知道的朋友请帮帮我 {代码} 当我添加到 android Manifest 中时,我收到此错误任何人都可以帮助如何集成反应本机推送通知 有知道的朋友请帮帮我 {代码} <manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools"> <uses-permission android:name="android.permission.INTERNET" /> <application android:name=".MainApplication" android:label="@string/app_name" android:icon="@mipmap/ic_launcher" android:roundIcon="@mipmap/ic_launcher_round" android:allowBackup="false" android:theme="@style/AppTheme"> <meta-data tools:replace="android:resource" android:name="com.google.firebase.messaging.default_notification_color" android:resource="@android:color/white" /> <meta-data android:name="com.google.firebase.messaging.default_notification_icon" android:resource="@drawable/ic_notification" /> ... <meta-data android:name="com.dieam.reactnativepushnotification.notification_channel_name" android:value="Firebase Notifications"/> <meta-data android:name="com.dieam.reactnativepushnotification.notification_channel_description" android:value="Firebase Notifications"/> <meta-data android:name="com.dieam.reactnativepushnotification.notification_color" android:resource="@android:color/white"/> <receiver android:name="com.dieam.reactnativepushnotification.modules.RNPushNotificationActions" /> <receiver android:name="com.dieam.reactnativepushnotification.modules.RNPushNotificationPublisher" /> <receiver android:name="com.dieam.reactnativepushnotification.modules.RNPushNotificationBootEventReceiver" android:exported="true"> <intent-filter> <action android:name="android.intent.action.BOOT_COMPLETED" /> <action android:name="android.intent.action.QUICKBOOT_POWERON" /> <action android:name="com.htc.intent.action.QUICKBOOT_POWERON"/> </intent-filter> </receiver> </activity> </application> </manifest> {代码} 如何解决这个错误?我需要帮助 我在你的代码中发现了 4 个问题 除了振动权限之外,我们还需要再授予一项权限(https://github.com/zo0r/react-native-push-notification) 2)您的元和接收者标签的位置在代码中不正确。 3)对于高于 12 的 android api,我们需要分别向所有接收器显式添加 android:exported true 或 false。 4)如果与(https://github.com/zo0r/react-native-push-notification)集成,还需要添加服务标签。 附上AndroidManifest.xml,希望有帮助 <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.VIBRATE" /> <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/> <application android:name=".MainApplication" android:label="@string/app_name" android:icon="@mipmap/ic_launcher" android:roundIcon="@mipmap/ic_launcher_round" android:allowBackup="false" android:theme="@style/AppTheme"> <activity android:name=".MainActivity" android:label="@string/app_name" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|screenSize|smallestScreenSize|uiMode" android:launchMode="singleTask" android:windowSoftInputMode="adjustResize" android:exported="true"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> <meta-data android:name="com.dieam.reactnativepushnotification.notification_foreground" android:value="true"/> <receiver android:name="com.dieam.reactnativepushnotification.modules.RNPushNotificationActions" android:exported="true" /> <receiver android:name="com.dieam.reactnativepushnotification.modules.RNPushNotificationPublisher" android:exported="true" /> <receiver android:name="com.dieam.reactnativepushnotification.modules.RNPushNotificationBootEventReceiver" android:exported="true"> <intent-filter> <action android:name="android.intent.action.BOOT_COMPLETED" /> <action android:name="android.intent.action.QUICKBOOT_POWERON" /> <action android:name="com.htc.intent.action.QUICKBOOT_POWERON"/> </intent-filter> </receiver> <service android:name="com.dieam.reactnativepushnotification.modules.RNPushNotificationListenerService" android:exported="false" > <intent-filter> <action android:name="com.google.firebase.MESSAGING_EVENT" /> </intent-filter> </service> </application>

回答 1 投票 0

Unity android 12 与 android:exported 属性问题

我想在 android 12 中构建游戏。我知道我需要将 android:exported="true" 添加到包含意图过滤器的活动标记中。 所以我已经添加了 android:exported="

回答 2 投票 0

com.google.android.apps.nbu.files.provider/2 是什么?

我从不同来源打开了pdf文件并得到了这个意图: 文件管理器(Google 文件)-> 内部存储-> 下载:Intent { act=android.intent.action.VIEW dat=content://com.google.

回答 1 投票 0

Android/React Native 深层链接:为什么向用户显示重复的重定向选项?

我们的 React Native Android 健康应用程序要求用户授权 Garmin 数据来跟踪他们的步数和健身情况。 Garmin 使用 OAuth 1.0 协议,因此用户授权我们的应用程序访问后...

回答 1 投票 0

Maui - 在 AndroidManifest 中定义 Activity

我正在尝试使用 MAUI 在 AndroidManifest.xml 中定义 MainActivity。 我有一个名为“A.B.C”的解决方案,其中有一个名为“D”的 MAUI 项目。 在 D.csproj 文件中,我

回答 1 投票 0

flutter AndroidManifest.xml 文件中的错误行

在此输入图像描述 您好,如图所示,AndroidManifest.xml中有几行有错误,我找不到问题所在。如果有人遇到这个问题请帮忙...

回答 1 投票 0

Android 13 - 如何请求 WRITE_EXTERNAL_STORAGE

我的 Android 应用程序的目标版本是 Android 13 (API 33) WRITE_EXTERNAL_STORAGE 权限似乎在 API 33(即 Android 12 及以下版本)下工作正常,但运行时权限弹出窗口

回答 5 投票 0

为什么AndroidManifest.xml中的包名称不正确

我的AndroidManifest.xml中的包名称不正确 AndroidManifest.xml 文件: 我的 AndroidManifest.xml 中的包名称不正确 AndroidManifest.xml 文件: <manifest xmlns:android="http://schemas.android.com/apk/res/android"> <application android:label="Mahrek" android:name="${applicationName}" android:icon="@mipmap/ic_launcher"> <activity android:name=".MainActivity" android:exported="true" android:launchMode="singleTop" android:theme="@style/LaunchTheme" android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode" android:hardwareAccelerated="true" android:windowSoftInputMode="adjustResize"> <!-- Specifies an Android theme to apply to this Activity as soon as the Android process has started. This theme is visible to the user while the Flutter UI initializes. After that, this theme continues to determine the Window background behind the Flutter UI. --> <meta-data android:name="io.flutter.embedding.android.NormalTheme" android:resource="@style/NormalTheme" /> <intent-filter> <action android:name="android.intent.action.MAIN"/> <category android:name="android.intent.category.LAUNCHER"/> </intent-filter> </activity> <!-- Don't delete the meta-data below. This is used by the Flutter tool to generate GeneratedPluginRegistrant.java --> <meta-data android:name="flutterEmbedding" android:value="2" /> </application> </manifest> 我查看了 StackOverflow 上的用户文件。他们的文件中写着,但我的文件中没有。 在清单标签中添加您的包名称,即 package="youpackagenamehere" 你的第一个标签应该是这样的 <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="youpackagenamehere">

回答 1 投票 0

有没有办法在Android清单中指定处理器架构要求?

我在 Android 项目中使用了一个编译为armeabi-v7 的本机库。我的项目以 Android SDK 8 为目标。当我尝试在拔掉手机电源的情况下运行它时,自动定位会选择 Android 2.2 (

回答 3 投票 0

当我运行我的 flutter 应用程序时,我的 mainActivity 遇到问题

嘿嘿 当我尝试在 andriod 上运行我的 flutter 应用程序时,我的终端上出现以下错误 E/AndroidRuntime(10355): java.lang.RuntimeException: 无法实例化活动组件...

回答 2 投票 0

processDebugMainManifest 失败,我在使用 targetSdkVersion 为 31 时遇到此错误

/Users/paradox/Developer/nturing/services/otus/scanner-android/app/src/main/AndroidManifest.xml 错误: android:exported 需要明确指定 。应用程序定位并且...

回答 2 投票 0

为什么AndroidManifest.xml中不写包名

我的包名没有写在AndroidManifest.xml中 AndroidManifest.xml 文件: 我的包名没有写在AndroidManifest.xml中 AndroidManifest.xml 文件: <manifest xmlns:android="http://schemas.android.com/apk/res/android"> <application android:label="Mahrek" android:name="${applicationName}" android:icon="@mipmap/ic_launcher"> <activity android:name=".MainActivity" android:exported="true" android:launchMode="singleTop" android:theme="@style/LaunchTheme" android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode" android:hardwareAccelerated="true" android:windowSoftInputMode="adjustResize"> <!-- Specifies an Android theme to apply to this Activity as soon as the Android process has started. This theme is visible to the user while the Flutter UI initializes. After that, this theme continues to determine the Window background behind the Flutter UI. --> <meta-data android:name="io.flutter.embedding.android.NormalTheme" android:resource="@style/NormalTheme" /> <intent-filter> <action android:name="android.intent.action.MAIN"/> <category android:name="android.intent.category.LAUNCHER"/> </intent-filter> </activity> <!-- Don't delete the meta-data below. This is used by the Flutter tool to generate GeneratedPluginRegistrant.java --> <meta-data android:name="flutterEmbedding" android:value="2" /> </application> </manifest> 我查看了 StackOverflow 上的用户文件。他们的文件中写着,但我的文件中没有。

回答 0 投票 0

针对 Android 12 及更高版本的应用程序,`android:exported 的显式值,但我已经添加了 android:exported=true 并且仍然会出现错误

所有设置均正确但我仍然有错误 第一次,我遇到了两次错误, /Users/MYSoft/project/separate/ecfile/android/app/src/main/AndroidManifest.xml 错误: 应用程序目标...

回答 1 投票 0

清单中的使用权限无法访问

我在我的android studio上写了使用权限。 &l...

回答 1 投票 0

© www.soinside.com 2019 - 2024. All rights reserved.