문제 설명
Eclipse에서 'Hello world' Android 앱을 실행할 때 일부 오류 발생 (Facing some errors on running 'Hello world' android app from Eclipse)
Eclipse(Luna Service Release 1(4.4.1))에서 첫 번째 Android 앱을 빌드 중입니다. 시스템에 AVD와 함께 모든 Eclipse 플러그인을 다운로드했습니다(스크린샷 참조).
아래로 실행했을 때 오류가 발생했습니다. 'emulator‑5554' 장치에 HelloWorldAndriodApp.apk를 설치하지 못했습니다! (null) 실행이 취소되었습니다!
Google에서 이와 유사한 많은 링크(스택 오버플로 포함)를 살펴보고 솔루션도 시도했습니다. 1. ADB 연결 시간 초과를 500000으로 늘렸습니다. 2. 클린 빌드 애플리케이션 3. ADB 재설정 이 모든 연습을 마친 후 다른 예외가 발생하기 시작했습니다. [2015‑11‑30 12:50:19 ‑ HelloWorldAndriodApp] 설치 오류: 알 수 없는 오류 [2015‑11‑30 12:50:19 ‑ HelloWorldAndriodApp] 자세한 내용은 logcat 출력을 확인하십시오. [2015‑11‑30 12:50:23 ‑ HelloWorldAndriodApp] 출시가 취소되었습니다!
이 모든 오류로 인해 내 애플리케이션이 초기화되지 않고 'Android' 텍스트가 있는 검은색 화면만 표시됩니다. 에뮬레이터 화면 중앙.
이러한 오류를 제거할 수 있는 몇 가지 솔루션을 제안하십시오.
AndroidManifest.xml
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.helloworldandriodapp"
android:versionCode="1"
android:versionName="1.0" >
<uses‑sdk
android:minSdkVersion="8"
android:targetSdkVersion="16" />
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name=".MainActivity"
android:label="@string/app_name" >
</activity>
</application>
</manifest>
<
참조 솔루션
방법 1:
The code is fine, should work, the problem must be with the emulator.
PS: Also, I recommend using Android Studio for Android development. I recently started using it and makes everything so much easier.