首先,我是Android的新手,我已经将一个eclipse项目导入到Android Studio。在building project中显示此错误
“错误:任务”:app:ProcessDebugManifest“执行失败。>清单合并失败,出现多个错误,请参阅日志”
<?xml version="1.0" encoding="UTF-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.my.app" android:versionCode="3" android:versionName="1.2">
<supports-screens android:resizeable="true" />
<supports-screens android:smallScreens="true" />
<supports-screens android:normalScreens="true" />
<supports-screens android:largeScreens="true" />
<supports-screens android:anyDensity="true" />
<!-- Permission - Internet Connect -->
<uses-permission android:name="android.permission.INTERNET" />
<!-- Network State Permissions -->
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<!-- Allows the API to access Google web-based services. -->
<uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" />
<!-- Allows the API to cache map tile data in the device's external storage area. -->
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<!-- Keeps the processor from sleeping when a message is received. -->
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.CALL_PHONE" />
<uses-feature android:glEsVersion="0x00020000" android:required="true" />
<!--
Creates a custom permission so only this app can receive its messages.
NOTE: the permission *must* be called PACKAGE.permission.C2D_MESSAGE,
where PACKAGE is the application's package name.
-->
<permission android:name="com.my.app.permission.C2D_MESSAGE" android:protectionLevel="signature" />
<uses-permission android:name="com.my.app.permission.C2D_MESSAGE" />
<!-- This app has permission to register and receive data message. -->
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
<uses-permission android:name="android.permission.CALL_PHONE" />
<application android:name="com.my.app.util.HotelApp" android:allowBackup="true" android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:theme="@android:style/Theme.Black.NoTitleBar">
<activity android:name="com.my.app.activity.SplashActivity" android:screenOrientation="portrait" android:configChanges="orientation|keyboardHidden|screenSize" android:theme="@android:style/Theme.NoTitleBar.Fullscreen">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name="com.my.app.activity.HomeActivity" android:theme="@android:style/Theme.NoTitleBar.Fullscreen" android:screenOrientation="portrait" android:configChanges="orientation|keyboardHidden|screenSize" />
<activity android:name="com.my.app.activity.CategoryActivity" android:screenOrientation="portrait" />
<activity android:name="com.my.app.activity.ContactUSActivity" android:screenOrientation="portrait" />
<activity android:name="com.my.app.activity.LeisuresActivity" android:screenOrientation="portrait" />
<activity android:name="com.my.app.activity.LeisureActivity" android:screenOrientation="portrait" />
<activity android:name="com.my.app.activity.PromosActivity" android:screenOrientation="portrait" />
<activity android:name="com.my.app.activity.ReservationActivity" android:screenOrientation="portrait" />
<activity android:name="com.my.app.activity.AboutUsActivity" android:screenOrientation="portrait" />
<activity android:name="com.my.app.activity.ReservationContinueActivity" android:screenOrientation="portrait" />
<activity android:name="com.my.app.activity.BookTableActivity" android:screenOrientation="portrait" />
<activity android:name="com.my.app.activity.AccommodationsActivity" android:screenOrientation="portrait" />
<activity android:name="com.my.app.activity.CorporatesActivity" android:screenOrientation="portrait" />
<activity android:name="com.my.app.activity.GuestServicesActivity" android:screenOrientation="portrait" />
<activity android:name="com.my.app.activity.PhotoGalleryActivity" android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen" android:screenOrientation="portrait" android:configChanges="orientation|keyboardHidden|screenSize" />
<activity android:name="net.hockeyapp.android.UpdateActivity" android:screenOrientation="portrait" />
<!--<meta-data
android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
<meta-data
android:name="com.google.android.maps.v2.API_KEY"
android:value="AIzaSyDAk_PM9Ce-z_9onkItz4aSahE1AGSBKDo" />-->
<!--
BroadcastReceiver that will receive intents from GCM
services and handle them to the custom IntentService.
The com.google.android.c2dm.permission.SEND permission is necessary
so only GCM services can send data messages for the app.
-->
<receiver android:name="com.google.android.gcm.GCMBroadcastReceiver" android:permission="com.google.android.c2dm.permission.SEND">
<intent-filter>
<!-- Receives the actual messages. -->
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
<!-- Receives the registration id. -->
<action android:name="com.google.android.c2dm.intent.REGISTRATION" />
<category android:name="com.my.app" />
</intent-filter>
</receiver>
<!--
Application-specific subclass of GCMBaseIntentService that will
handle received messages.
By default, it must be named .GCMIntentService, unless the
application uses a custom BroadcastReceiver that redefines its name.
-->
<service android:name=".GCMIntentService" />
</application>
</manifest>
android {
compileSdkVersion 23
buildToolsVersion "24.0.2"
defaultConfig {
applicationId "com.stgeorge.hotel"
minSdkVersion 8
targetSdkVersion 19
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
我已经尝试了这里提供的其他解决堆栈溢出的方法,但没有一个奏效
从清单中可以看到错误日志。检查图像
在我问之前,我想声明,我搜索了很多类似的线程,但没有一个工作。 我正在调试我的应用程序,由于某种原因,当我清理和重建我的项目时,我得到了错误:清单合并失败,有多个错误,请参阅日志 在我的gradle控制台中,我检查了一下并得到了这个: C:\users\chris\androidStudioProjects\wizardcounter2\app\src\main\androidManifest.x
我必须将我的旧项目迁移到AndroidX,并将所有依赖项更新到最新版本,但唯一的一个在清单合并中出错。 仅此依赖项得到错误错误:清单合并失败,出现多个错误,请参阅日志: 我是说,当我移除它时,错误就消失了。 这是我的app.build 这里是manifest.xml 我真的不知道我的配置有什么问题...在网上找了一整天却一无所获... 注意:当我迁移到AndroidX时,按Refractor>mi
上面的代码是我的provider_paths.xml 然后我把这个加到我的舱单上 然后,当我尝试运行应用程序时,它的giving me error Manifest合并失败,出现多个错误,请参阅日志
我试着去寻找解决办法,但就像我没有找到任何地方一样。我试过这个解决方案: 清单合并失败,出现多个错误,请参阅日志 活动#com.google.android.libraries.places.widget.autocompleteactivity@windowsoftinputmode value=(stateAlwaysVisibleadjustPan)来自androidmanifest.xml
当我尝试重建project时,android studio给出了错误:
我有以下错误,当我建立我的反应原生应用程序的Android(iOS没有问题)。 错误:清单合并失败,有多个错误,请参见日志 当我在发布模式下生成时,这会导致一个真正的问题(调试中的应用程序没有问题),因为它会为我的发布生成生成以下清单文件: AndroidManifest。xml(在app/src/release/中) 我知道有很多关于这方面的问题,但它们对我的情况并没有真正的帮助,因为如果我遵循