【发布时间】:2016-02-11 04:24:11
【问题描述】:
每当我尝试运行我的应用程序时 - 屏幕截图中的这个窗口就会在我的屏幕中弹出。声明未找到默认活动,因此我无法部署我的应用程序:
我的代码清单文件
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.mcs.oodoeg" >
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name=".MainActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android3.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".MainActivity2"
android:label="@string/app_name" >
</activity>
<activity
android:name=".Sigin"
android:label="@string/app_name" >
</activity>
</application>
</manifest>
这是我在单击“运行”->“编辑配置”时得到的窗口:
我的代码的 Gradle 文件:
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "19.1.0"
defaultConfig {
applicationId "com.example.mcs.oodoeg"
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/LICENSE'
exclude 'META-INF/NOTICE'
exclude 'META-INF/DEPENDENCIES'
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:appcompat-v7:23.1.1'
compile files('libs/xmlrpc-client-3.1.3.jar')
compile files('libs/gson-2.2.2.jar')
}
【问题讨论】:
-
请添加一些清晰度 - 弹出什么窗口?这是您最近对某些代码进行更改的结果吗?不清楚你在问什么。
-
这是因为应用程序的配置搞砸了,你必须在运行应用程序之前先解决这个问题
-
当我尝试在我的设备中部署应用程序时,我肯定会对我的代码进行任何更改,它会在我的屏幕截图中弹出该窗口