猿问

替换其他声明但不存在其他声明?

我的 AndroidManifest.xml 文件看起来像这样


<?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.varianttecnology.uberclone">


<!--

     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" />

<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>


<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">

    <activity android:name=".MainActivity">

        <intent-filter>

            <action android:name="android.intent.action.MAIN" />


            <category android:name="android.intent.category.LAUNCHER" />

        </intent-filter>

    </activity>


    <!--

         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=".Welcome"

        android:label="@string/title_activity_welcome"></activity>

</application>

问题:

  1. 这个新选项卡是 AS 3.2.1 中的新选项吗?还是因为 AS 3.2.1 发现以前版本没有的新警告而出现?

  2. 警告是什么?

  3. 我如何解决它?


守着一只汪
浏览 184回答 2
2回答

函数式编程

可以通过将多个清单文件的权限与<uses-permission&nbsp;tools:node="merge"&nbsp;android:name="android.permission.ACCESS_FINE_LOCATION"&nbsp;/> <uses-permission&nbsp;tools:node="merge"&nbsp;android:name="android.permission.ACCESS_COARSE_LOCATION"&nbsp;/>

喵喵时光机

请尝试在 AndroidManifest.xml 中输入此代码。<?xml version="1.0" encoding="utf-8"?><manifest xmlns:android="http://schemas.android.com/apk/res/android"&nbsp; &nbsp; xmlns:tools="http://schemas.android.com/tools"&nbsp; &nbsp; ...><activity&nbsp; &nbsp; android:name="com.google.firebase.auth.internal.FederatedSignInActivity"&nbsp; &nbsp; tools:replace="android:launchMode"&nbsp; &nbsp; android:launchMode="standard" />...
随时随地看视频慕课网APP

相关分类

Java
我要回答