android - Android Studio 4.0.1、Gradle 和 React Native:AndroidManifest.XML 存在时未找到
问题描述
介绍
大家好!
根据文档,我的 Android Studio 4.0.1 项目拒绝构建,因为无法在 /main/ 中找到应该在的位置的 AndroidManifest.xml 文件。用“实现”大规模替换“api”的出现或反之亦然没有帮助。
因此,您还需要哪些其他信息来澄清,以及应该进行哪些更改以确保其有效?
谢谢!
清单文件
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.hornet">
<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">
<activity
android:name=".MainActivity"
android:label="@string/app_name"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode"
android:launchMode="singleTask"
android:windowSoftInputMode="adjustResize">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name="com.facebook.react.devsupport.DevSettingsActivity" />
</application>
</manifest>
激活调试模式时出现运行错误
因为这篇文章太长了,所以移到了这个谷歌文档!
https://docs.google.com/document/d/19OO-OIzFy6IXPEOAdvGZLgXNsW_1sfiZsLDs6H0Jjzs/edit?usp=sharing
解决方案
尝试重建项目或修改项目结构。当出现问题时会发生
推荐阅读
- teradata - 如何使用遍历不同表的 Where 子句查询表?
- amazon-web-services - 如何引导 AWS Lambda 或任何其他 FAAS
- oracle - 如何增加 Oracle SQL Developer 18.1 的 GUI/字体/所有内容的大小
- python - 检查字典的变化
- python-3.x - 无法通过 Python 脚本在文本文件中写入数据
- git - 同步连接到两个远程服务器的两个本地 git 存储库
- vba - 是否有“释放”引用的 VBA 方法也会立即删除 ldb(锁定文件)?
- jquery - 传递参数的最佳方式(非常简单的 jquery/html)
- css - 媒体查询未应用于任何屏幕尺寸
- javascript - GS 中的输出准确,但在复制粘贴到任何文本编辑器时会在输出中添加多个引号