从Eclipse迁移到Android Studio时有2个图标
我刚刚从Eclipse迁移到Android Studio 一切都很好,只是一件事,它是安装我2图标与相同的图片 我真的不知道发生了什么,因为这是我和格拉德尔的第一天 我能说的是我有一个图书馆:ProgressWheel从Eclipse迁移到Android Studio时有2个图标,android,eclipse,android-studio,android-gradle-plugin,Android,Eclipse,Android Studio,Android Gradle Plugin,我刚刚从Eclipse迁移到Android Studio 一切都很好,只是一件事,它是安装我2图标与相同的图片 我真的不知道发生了什么,因为这是我和格拉德尔的第一天 我能说的是我有一个图书馆:ProgressWheel apply plugin: 'android-library' 安卓{ 编译DK19版 BuildTools版本“21.1.2” } 同一个项目有两个Gradle文件,有点奇怪: // Top-level build file where you can add configu
apply plugin: 'android-library'
安卓{
编译DK19版
BuildTools版本“21.1.2”
}
同一个项目有两个Gradle文件,有点奇怪:
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.0.0'
}
}
allprojects {
repositories {
jcenter()
}
}
同一项目的另一个:
apply plugin: 'com.android.application'
android {
compileSdkVersion 'Google Inc.:Google APIs:21'
buildToolsVersion "21.1.2"
defaultConfig {
applicationId "com.spmkt.mobile"
minSdkVersion 16
targetSdkVersion 20
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-project.txt'
}
}
packagingOptions {
exclude 'META-INF/DEPENDENCIES.txt'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/LICENSE'
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/notice.txt'
exclude 'META-INF/license.txt'
exclude 'META-INF/dependencies.txt'
exclude 'META-INF/LGPL2.1'
}
}
dependencies {
compile project(':progressWheel')
compile 'com.google.code.gson:gson:2.2.4'
compile 'com.google.android.gms:play-services:+'
compile 'com.android.support:appcompat-v7:21.0.3'
compile files('libs/crashlytics.jar')
compile files('libs/httpcore-4.3.2.jar')
compile files('libs/httpmime-4.3.3.jar')
}
我该怎么办
德克萨斯州 解决了!
在库ProgressWheel中,我编辑AndroidManifest.xml并删除入口点:
<intent-filter >
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
然后它工作得很好
<intent-filter >
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>