安裝應用程序我有運行的是Android 4.4.2 它工作得很好,直到幾個星期去我開始這個問題,Android Studio中無法安裝一個三星Galaxy S5設備該應用程序後,我按運行和構建gradle這個Android的工作室無法在設備
其他信息:我試圖上emulatir運行應用程序的第一次工作,我做了一些修改後,我試圖在模擬器上再次運行,但變化被應用了noy
這是gradle這個文件:
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
defaultConfig {
applicationId "com.incorp.anisvikernes.appex"
minSdkVersion 19
targetSdkVersion 19
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.4.0'
compile 'com.android.support:design:23.4.0'
compile 'com.android.support:support-v4:23.4.0'
compile 'com.android.support:cardview-v7:23.1.0'
}
這是logcat的:
03:49:45 Executing tasks: [clean, :app:generateDebugSources, :app:generateDebugAndroidTestSources, :app:prepareDebugUnitTestDependencies, :app:mockableAndroidJar, :app:compileDebugSources, :app:compileDebugAndroidTestSources, :app:compileDebugUnitTestSources]
03:51:04 Gradle build finished in 1m 18s 412ms
05:23:54 Executing tasks: [:app:assembleDebug]
05:28:19 Gradle build finished in 4m 25s 153ms
05:28:32 Error during Sync: An existing connection was forcibly closed by the remote host
05:28:32 Session 'app': Error Installing APK
這是
08/20 05:28:26: Launching app
$ adb push D:\projects\appex\app\build\outputs\apk\app-debug.apk /data/local/tmp/com.incorp.anisvikernes.appex
java.io.IOException: An existing connection was forcibly closed by the remote host
Error while Installing APK
重建,清理和重新運行 – VVB
無效緩存重新啓動。 –
VVB這不是一個永久的解決方案,它不會一直工作,@Shahail Zahid請問我該怎麼做?其下方的項目設置爲 –