1
我試圖在Android Studio中使用循環搜索條,我發現this使用圓形搜索條在Android Studio中
和執行我的每一件事情,他說 的gradle這個是:
buildscript {
repositories {
jcenter()
maven { url "https://jitpack.io" }
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
maven { url "https://jitpack.io" }
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
和的build.gradle (模塊的應用程序)是:
apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion "25.0.3"
defaultConfig {
applicationId "com.abdelfattha.mohamed.hamai"
minSdkVersion 16
targetSdkVersion 25
versionCode 1
versionName "1.0"
testInstrumentationRunner
"android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-
core:2.2.2',
{
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
testCompile 'junit:junit:4.12'
compile 'com.github.Triggertrap:SeekArc:v1.1'
}
的問題是,它給我的錯誤:
Error:Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed : Attribute [email protected] value=
(@mipmap/ic_launcher) from AndroidManifest.xml:11:9-43
is also present at [com.github.Triggertrap:SeekArc:v1.1] AndroidManifest.xml:36:9-45 value=(@drawable/ic_launcher).
Suggestion: add 'tools:replace="android:icon"' to <application> element at AndroidManifest.xml:9:5-25:19 to override.
我希望有人可以幫助我找到錯誤,因爲我在這個領域是新
清單中的我的應用程序標籤中添加此突出顯示'工具'紅色,並說「命名空間」工具'沒有綁定「 – Paradox
Nvm,這解決了它https://stackoverflow.com/questions/24506800/android-studio-gradle-icon-error-manifest-merger – Paradox