안드로이드 개발 질문/답변
(글 수 45,052)
[2010-03-24 15:00:54 - ApiDemos] Installation error: INSTALL_FAILED_MISSING_FEATURE
[2010-03-24 15:00:54 - ApiDemos] Please check logcat output for more details.
[2010-03-24 15:00:54 - ApiDemos] Launch canceled!
Virtual Device 에서는 설치 및 실행이 되는데,
실체 Device에서는 ApiDemos 설치가 안 됩니다.
[2010-03-24 14:25:32 - Music] WARNING: Application does not specify an API level requirement!
[2010-03-24 14:25:32 - Music] Device API version is 7 (Android android 2.1 dev 0.2.2)
설치 및 실행에는 문제 없습니다.
해결 하신분 답변 부탁 드립니다.
[2010-03-24 15:00:54 - ApiDemos] Please check logcat output for more details.
[2010-03-24 15:00:54 - ApiDemos] Launch canceled!
Virtual Device 에서는 설치 및 실행이 되는데,
실체 Device에서는 ApiDemos 설치가 안 됩니다.
[2010-03-24 14:25:32 - Music] WARNING: Application does not specify an API level requirement!
[2010-03-24 14:25:32 - Music] Device API version is 7 (Android android 2.1 dev 0.2.2)
설치 및 실행에는 문제 없습니다.
해결 하신분 답변 부탁 드립니다.
2010.03.26 11:07:11
저도 잘 모르겠지만, apidemo의 manifest를 보면 아래와 같은 내용이 있는데..
한번 살펴보세요.
<!-- We will request access to the camera, saying we require a camera
of some sort but not one with autofocus capability. -->
<uses-permission android:name="android.permission.CAMERA" />
<uses-feature android:name="android.hardware.camera" />
<uses-feature android:name="android.hardware.camera.autofocus" android:required="false" />
install시에는 체크하지 않는다는 말도 있고..
Declaring a
<uses-feature>
element is informational only, meaning that the Android system itself does not check for matching feature support on the device before installing an application. However, note that other services (such as Android Market) or applications may check your application's <uses-feature>
declarations as part of handling or interacting with your application. For this reason, it's very important that you declare all of the features (from the list below) that your application uses.....
install에 제한이 있다는 이야기도 있고..
Although the
<uses-feature>
element is only activated for devices running API Level 4 or higher, it is safe to include this for applications that declare a minSdkVersion
of "3" or lower. Devices running older versions of the platform will simply ignore this element, but newer devices will recognize it and enforce installation restrictions based on whether the device supports the feature.ㅎㅎ 헷갈리네요