当前位置: 首页 > 知识库问答 >
问题:

清单合并失败,出现多个错误,请参阅日志。在building project中显示此错误

公孙宇
2023-03-14

我试着去寻找解决办法,但就像我没有找到任何地方一样。我试过这个解决方案:

清单合并失败,出现多个错误,请参阅日志

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:dist="http://schemas.android.com/apk/distribution"
    xmlns:tools="http://schemas.android.com/tools"
    xmlns:activitytools="http://schemas.android.com/apk/res-auto"

    package="technerd.com.iboda">
    <!--
         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.INTERNET"/>
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>


    <uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES"/>


    <dist:module dist:instant="true"

      />


    <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">
        <service
            android:name=".onAppKilled"
            android:stopWithTask="false" />

        <activity android:name=".HistorySingle"/>
        <activity android:name=".HistoryActivity" />
        <activity android:name=".DriverSettings" />
        <activity android:name=".SignUp" />
        <!--
             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=".DriverMapsActivity"
            android:label="@string/title_activity_driver_maps" />
        <activity
            android:name=".CustomerMapsActivity"
            android:label="@string/title_activity_customer_maps" />
        <activity android:name=".DriverLogin" />
        <activity android:name=".CustomerLogin" />
        <activity android:name=".MainActivity">
            <intent-filter>

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

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>

</manifest>

活动#com.google.android.libraries.places.widget.autocompleteactivity@windowsoftinputmode value=(stateAlwaysVisibleadjustPan)来自androidmanifest.xml:22:13-71,也出现在androidmanifest.xml:19:13-55 value=(adjustResize)中。建议:将'tools:replace=“android:windowsoftinputmode”‘添加到androidmanifest.xml:16:9-23:20的元素中以覆盖。应用程序主清单(此文件),第21行

共有1个答案

秦才英
2023-03-14

清单文件:

<activity
            android:name=".DriverMapsActivity"
            android:label="@string/title_activity_driver_maps"
            android:windowSoftInputMode="adjustPan" />
 类似资料: