Solution 1 :
You have a typo. Its
<uses-permission
with “s”, not
<user-permission
Problem :
I am developing an uber app, so I need to connect my app through the internet while I am doing that I saw there are tag issues on my XML file and I tried to fix it changing tags but it’s not working.
<?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.example.accident">
<!--
The ACCESS_COARSE/FINE_LOCATION permissions are not required to use
Google Maps Android API v2, but you must specify either coarse or fine
location permissions for the 'MyLocation' functionality.
-->
<uses-permission android_name="android.permission.ACCESS_FINE_LOCATION" />
<user-permission android_name="android.permission.ACCESS_COARSE_LOCATION"/>
<user-permission android_name="android.permission.INTERNET'/>
<application
android_allowBackup="true"
android_icon="@mipmap/ic_launcher"
android_label="@string/app_name"
android_roundIcon="@mipmap/ic_launcher_round"
android_supportsRtl="true"
android_theme="@style/AppTheme">
<!--
The API key for Google Maps-based APIs is defined as a string resource.
(See the file "res/values/google_maps_api.xml").
Note that the API key is linked to the encryption key used to sign the APK.
You need a different API key for each encryption key, including the release key that is used to
sign the APK for publishing.
You can define the keys for the debug and release targets in src/debug/ and src/release/.
-->
<meta-data
android_name="com.google.android.geo.API_KEY"
android_value="@string/google_maps_key" />
<activity
android_name=".CivilianMapsActivity"
android_label="@string/title_activity_civilian_maps"> </activity>
<activity android_name=".CivilianLoginRegisterActivity" />
<activity android_name=".PolicemanLoginRegisterActivity" />
<activity android_name=".WelcomeActivity" />
<activity android_name=".MainActivity"
tools_ignore="WrongManifestParent">
<intent-filter>
<action android_name="android.intent.action.MAIN" />
<category android_name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
I need to fix those. Also these two lines not working too. is it because of tags issue?
<user-permission android_name="android.permission.ACCESS_COARSE_LOCATION"/>
<user-permission android_name="android.permission.INTERNET'/>
Comments
Comment posted by Vivek Mishra
there is also a quotes typo in last permission
READ [FIXED] How to Receive Data and Display Records According to Spinner's Selected Item. In Android's SQLITE DatabaseHelper.java
Powered by Inline Related Posts
Comment posted by Lakshan Sandeepa
omg my bad thank you mate.
Comment posted by Lakshan Sandeepa
By the way is there any issue between applications tags ?