B
B
blazert2021-02-28 13:34:59
Android
blazert, 2021-02-28 13:34:59

Error while compiling unity, AndroidManifest.xml can't find the reason how to solve?

Hello everyone, I'm trying to compile the project, but unity says that the error is in AndroidManifest.xml and indicates the lines where these errors are, but I still don't understand where the error is and what it is, please help

1<?xml version="1.0" encoding="utf-8"?>
2<manifest
3    xmlns:android="http://schemas.android.com/apk/res/android"
4    package="com.unity3d.player"
5    xmlns:tools="http://schemas.android.com/tools"
6    android:installLocation="preferExternal"
7    android:versionCode="1"
8    android:versionName="1.0">
9    <supports-screens
10        android:smallScreens="true"
11        android:normalScreens="true"
12        android:largeScreens="true"
13        android:xlargeScreens="true"
14        android:anyDensity="true" />
15    <!-- NirvanaNativeAccess permission start-->
16    <uses-permission
17        android:name="android.permission.INTERNET" />
18    <uses-permission
19        android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
20    <uses-permission
21        android:name="android.permission.ACCESS_NETWORK_STATE" />
22    <uses-permission
23        android:name="android.permission.ACCESS_WIFI_STATE" />
24    <uses-permission
25        android:name="android.permission.READ_LOGS" />
26    <uses-permission
27        android:name="android.permission.READ_PHONE_STATE" />
28    <uses-permission
29        android:name="android.permission.RECORD_AUDIO" />
30    <!-- Create and delete file permissions in SDCard -->
31    <uses-permission
32        android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS" />
33    <!-- NirvanaNativeAccess permission end-->
34    <application
35        android:theme="@style/UnityThemeSelector"
36       android:icon="@drawable/app_icon"
37       android:label="@string/app_name"
38       android:debuggable="true">
39        <activity
40            android:name="com.nirvana.unity.NirvanaPlayerActivity"
41            android:label="@string/app_name">
42           <intent-filter>
43                <action
44                   android:name="android.intent.action.MAIN" />
45                <category
46                    android:name="android.intent.category.LAUNCHER" />
47           </intent-filter>
48            <meta-data
49               android:name="unityplayer.UnityActivity"
50                android:value="true" />
51        </activity>
52        <meta-data
53            android:name="channel_channel_id"
54            android:value="dev" />
55        <meta-data
56            android:name="channel_agent_id"
57            android:value="dev" />
58        <meta-data
59            android:name="channel_init_url"
60            android:value="http://url/url" />
61    </application>
62 </manifest>
63


Error screenshot from unity
603b719c10583252981778.png

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question