我在关于支付网关的项目中遇到了麻烦。根据EBS的指导原则,我将模块导入到我的项目中并进行编译。但是当它构建时,它给我的错误是:`error:execution for task':app:processDebugManifest'。
清单合并失败:来自AndroidManifest.xml:14:9-43的属性application@icon value=(@mipmap/ic_launcher)也存在于[visionFresh:ebs_Live:unspecified]AndroidManifest.xml:22:9-45 value=(@drawable/ic_launcher)中。建议:将'tools:replace=“android:icon”‘添加到AndroidManifest.xml:12:5-187:19处的
这是我的建筑-
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
defaultConfig {
applicationId "visionfresh.android.catalyst.com.visionfresh"
minSdkVersion 16
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
packagingOptions {
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/NOTICE'
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.1.1'
compile files('libs/commons-net-3.0.1.jar')
compile 'com.android.support:design:23.1.1'
compile files('libs/fluent-hc-4.5.jar')
compile files('libs/httpclient-4.5.jar')
compile files('libs/httpclient-cache-4.5.jar')
compile files('libs/httpclient-win-4.5.jar')
compile files('libs/httpcore-4.4.1.jar')
compile files('libs/httpmime-4.5.jar')
compile files('libs/jna-4.1.0.jar')
compile files('libs/jna-platform-4.1.0.jar')
compile 'com.daimajia.slider:library:1.1.5@aar'
compile 'com.squareup.picasso:picasso:2.3.2'
compile 'com.nineoldandroids:library:2.4.0'
compile files('libs/commons-net-3.0.1.jar')
compile 'com.squareup.picasso:picasso:2.5.2'
compile project(':EBS_Live')
}
这里是我的主要宣言.xml:-
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="visionfresh.android.catalyst.com.visionfresh">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
<uses-permission android:name="android.permission.GET_ACCOUNTS"/>
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity
android:name=".SplashScreen"
android:screenOrientation="portrait" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".MainActivity">
<!-- <intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter> -->
</activity>
<activity
android:name=".ShopByCategory"
android:screenOrientation="portrait">
</activity>
<activity
android:name=".LoginActivity"
android:screenOrientation="portrait">
</activity>
<activity
android:name=".SignUp"
android:screenOrientation="portrait">
</activity>
<activity
android:name=".TrackListActivity"
android:screenOrientation="portrait">
</activity>
<activity
android:name=".SingleTrackActivity"
android:screenOrientation="portrait">
</activity>
<activity
android:name=".ProductsCategory"
android:screenOrientation="portrait">
</activity>
<activity
android:name=".FilterClass"
android:screenOrientation="portrait">
</activity>
<activity
android:name=".SearchActivity"
android:screenOrientation="portrait">
</activity>
<activity
android:name=".ForgetPassword"
android:screenOrientation="portrait">
</activity>
<activity
android:name=".ProductsDetails"
android:screenOrientation="portrait">
</activity>
<activity
android:name=".Description"
android:screenOrientation="portrait">
</activity>
<activity
android:name=".AboutThisItem"
android:screenOrientation="portrait">
</activity>
<activity
android:name=".TouchOnImage"
android:screenOrientation="portrait">
</activity>
<activity
android:name=".MyAccount"
android:screenOrientation="portrait">
</activity>
<activity
android:name=".WishList"
android:screenOrientation="portrait">
</activity>
<activity
android:name=".ZoomLevel"
android:screenOrientation="portrait">
</activity>
<activity
android:name=".ChangePassword"
android:screenOrientation="portrait">
</activity>
<activity
android:name=".AccountInformation"
android:screenOrientation="portrait">
</activity>
<activity
android:name=".MyAddress"
android:screenOrientation="portrait">
</activity>
<activity
android:name=".Legal"
android:screenOrientation="portrait">
</activity>
<activity
android:name=".InnnerInformation"
android:screenOrientation="portrait">
</activity>
<activity
android:name=".Review"
android:screenOrientation="portrait">
</activity>
<activity
android:name=".Discount_Offer_View_All"
android:screenOrientation="portrait">
</activity>
<activity
android:name=".AnyOtherQuery"
android:screenOrientation="portrait">
</activity>
<activity
android:name=".FullScreenViewActivity"
android:screenOrientation="portrait">
</activity>
<activity
android:name=".CheckOut"
android:screenOrientation="portrait">
</activity>
<activity
android:name=".SubCategory"
android:screenOrientation="portrait">
</activity>
<activity
android:name=".ItemDetails"
android:screenOrientation="portrait">
</activity>
<activity
android:name=".MyOrder"
android:screenOrientation="portrait">
</activity>
<activity
android:name=".OrderDetail"
android:screenOrientation="portrait">
</activity>
<activity
android:name=".ReturnProducts"
android:screenOrientation="portrait">
</activity>
<activity
android:name=".BuyProduct"
android:screenOrientation="portrait">
</activity>
<receiver android:name=".BuyProduct" >
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<category android:name="android.intent.category.LAUNCHER" />
<data android:scheme="receiver" />
</intent-filter>
</receiver>
<activity
android:name=".PaymentSuccessActivity"
android:label="@string/title_activity_payment_success"
android:screenOrientation="portrait" >
<intent-filter>
<data
android:host="@string/hostname"
android:scheme="com.merchantapp.testkit" />
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
</intent-filter>
</activity>
</application>
</manifest>
这里是EBS manifest.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.ebs.android.sdk"
android:versionCode="2"
android:versionName="2.4" >
<uses-sdk
android:minSdkVersion="16"
android:targetSdkVersion="23" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<android:uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<android:uses-permission android:name="android.permission.READ_PHONE_STATE" />
<android:uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<application
tools:replace="icon,label,theme"
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme">
<activity
android:name=".PaymentDetails"
android:label="@string/app_name"
android:screenOrientation="portrait" >
</activity>
<activity
android:name=".PaymentDetailActivity"
android:label="@string/title_activity_payment_detail"
android:screenOrientation="portrait" >
</activity>
<activity
android:name=".PaymentActivity"
android:label="@string/title_activity_payment"
android:screenOrientation="portrait"
android:windowSoftInputMode="adjustResize" >
</activity>
<activity
android:name=".WebViewActivity"
android:label="@string/title_activity_webview"
android:screenOrientation="portrait"
android:windowSoftInputMode="adjustResize" >
</activity>
<activity
android:name=".EBSHomeConfigurableActivity"
android:label="@string/title_activity_test__transaction_details"
android:screenOrientation="portrait" >
</activity>
<activity
android:name=".PaymentFailureActivity"
android:label="@string/title_activity_payment_failure" >
</activity>
<activity
android:name=".IdleTimeOut"
android:label="@string/title_activity_idle_time_out" >
</activity>
</application>
</manifest>
试试看
dependencies {
compile fileTree(dir: 'libs', include: '*.jar')
compile project(':EBS')
}
错误:任务“:app:ProcessDebugManifest”执行失败。 清单合并失败:来自AndroidManifest.xml:13:9-42的属性application@icon value=(@mipmap/appiconnew)也存在于[com.pnikosis:materialish-progress:1.0]AndroidManifest.xml:13:9-45 value=(@d
我似乎得到了这样的错误:
问题内容: 我正在将当前项目的大型应用程序移至Android Studio和Gradle中。我目前陷入以下问题: 我尝试将以下属性添加到主文件: 这些属性定义都不起作用。我究竟做错了什么? 问题答案: 试试看: 将此添加到 将此添加到 基于此,它应该覆盖所有元素。“将低优先级声明替换为带注释的声明。”
清单合并失败:属性Application@AppComponentFactory value=(android.support.v4.app.CoreComponentFactory)来自[com.android.support:support-compat:28.0.0]AndroidManifest.xml:22:18-91 也存在于[androidx.core:core:1.0.0]andr
我在移动我目前的项目巨大的应用程序到Android Studio和Gradle的过程中。我目前被困在以下问题上: 我尝试将以下属性添加到主文件中: 这些属性定义都不起作用。我做错了什么?
我得到下面的错误信息。 错误:任务执行失败:app:processDebugManifest。清单合并失败:uses-sdk:minSdkVersion 1不能小于库中声明的版本4[com . Android . support:multi dex:1 . 0 . 1]C:\ Users \ Nitesh \ Downloads \ sun calculator(1)\ sun calculato