Eclipse에서 'Hello world' Android 앱을 실행할 때 일부 오류 발생 (Facing some errors on running 'Hello world' android app from Eclipse)


문제 설명

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 플러그인을 다운로드했습니다(스크린샷 참조).

ADV created

아래로 실행했을 때 오류가 발생했습니다. 'emulator‑5554' 장치에 HelloWorldAndriodApp.apk를 설치하지 못했습니다! (null) 실행이 취소되었습니다!

Google에서 이와 유사한 많은 링크(스택 오버플로 포함)를 살펴보고 솔루션도 시도했습니다. 1. ADB 연결 시간 초과를 500000으로 늘렸습니다. 2. 클린 빌드 애플리케이션 3. ADB 재설정 enter image description here 이 모든 연습을 마친 후 다른 예외가 발생하기 시작했습니다. [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.

(by AnkushMayuso)

참조 문서

  1. Facing some errors on running 'Hello world' android app from Eclipse (CC BY‑SA 2.5/3.0/4.0)

#eclipse-luna #Android #eclipse #java






관련 질문

안드로이드에서 버튼 클릭시 커스텀 카메라 실행 (custom camera launch on button click in android)

Eclipse에서 'Hello world' Android 앱을 실행할 때 일부 오류 발생 (Facing some errors on running 'Hello world' android app from Eclipse)

Eclipse Luna scala IDE의 SQLContext.class에 대한 잘못된 기호 참조 (bad symbolic reference on SQLContext.class in Eclipse Luna scala IDE)

user.home 디렉토리에 쓰지 못하도록 Eclipse 위치를 어떻게 수정합니까? (How modify Eclipse locations to prevent write to user.home directory?)

Eclipse Luna에서 Mylyn 제거 (Uninstall Mylyn from Eclipse Luna)

Eclipse Luna는 탭 클릭 시 편집기를 분할합니다. 비활성화하는 방법? (Eclipse Luna splits editor on tab click. How to disable?)

Eclipse Luna에서 J2Objc 변환기가 파일을 생성하지 않음 (J2Objc Translator not generating files in Eclipse Luna)

Eclipse는 자동으로 종료 코드 127을 종료합니다. (Eclipse exits automatically exit code 127)

Eclipse Luna에서 그룹 시작 (Launch Groups in Eclipse Luna)

Java EE 개발자용 Eclipse를 시작할 때 R6034 오류가 발생함 (Getting R6034 error when starting Eclipse for Java EE Developers)

Eclipse 및 Tomcat - 클래스 로딩 (Eclipse & Tomcat - Class loading)

Eclipse에 E4 Orion CSS 환경 설정 편집기를 설치하는 방법은 무엇입니까? (How to get E4 Orion CSS Preference editor installed on Eclipse?)







코멘트