- Home /
XmlException: 'activity' is expected
Hello,
I have a problem with my AndroidManifest. I import a plugin on my project and I try to merge 2 manifest at one because new plugin have his own AndroidManifest. After many Google research I found a simple way to do this but apparently not works... I create 2 "manifest" tag in same file to call good package.
Can you help me to resolve this pls ?
 <?xml version="1.0" encoding="utf-8"?>
 <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.unity3d.player" android:installLocation="preferExternal" android:theme="@android:style/Theme.NoTitleBar" android:versionCode="1" android:versionName="1.0">
   <uses-sdk android:minSdkVersion="14" android:targetSdkVersion="22" />
   <uses-feature android:name="android.hardware.camera" />
   <supports-screens android:smallScreens="true" android:normalScreens="true" android:largeScreens="true" android:xlargeScreens="true" android:anyDensity="true" />
   <uses-permission android:name="android.permission.INTERNET" />
   <uses-permission android:name="android.permission.CAMERA" />
   <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
   <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
   <application android:icon="@drawable/app_icon" android:label="@string/app_name" android:theme="@android:style/Theme.NoTitleBar.Fullscreen" android:debuggable="false">
     <activity android:name="com.unity3d.player.UnityPlayerNativeActivity" android:label="@string/app_name">
       <intent-filter>
         <action android:name="android.intent.action.MAIN" />
         <category android:name="android.intent.category.LAUNCHER" />
       </intent-filter>
       <meta-data android:name="unityplayer.UnityActivity" android:value="true" />
       <meta-data android:name="unityplayer.ForwardNativeEventsToDalvik" android:value="false" />
     </activity>
     <activity android:name="com.unity3d.player.VideoPlayer" android:label="@string/app_name" android:screenOrientation="portrait" android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen">
     </application>
     <!--
             To support devices using the TI S3D library for stereo mode we must 
             add the following library.
             Devices that require this are: ODG X6 
         -->
     <uses-library android:name="com.ti.s3d" android:required="false" />
     <!--
             To support the ODG R7 in stereo mode we must add the following library.
         -->
     <uses-library android:name="com.osterhoutgroup.api.ext" android:required="false" />
   </application>
   <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
 </manifest>
 
 <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.ryanwebb.androidscreenshot" android:versionCode="1" android:versionName="1.0" >
     <uses-sdk android:minSdkVersion="14" android:targetSdkVersion="22" />
     <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
     <uses-permission android:name="android.permission.WRITE_INTERNAL_STORAGE" />
     <application android:allowBackup="true">
         <activity android:name="com.secondfury.galleryscreenshot.MainActivity" />
     </application>
 </manifest>
               Comment
              
 
               
              Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                