프로그래밍/Android

Installation failed due to invalid APK file!

showmiso 2013. 11. 15. 06:48
Installation failed due to invalid APK file!
Please check logcat output for more details.
Launch canceled!


http://stackoverflow.com/questions/7998101/eclipse-installation-failed-due-to-invalid-apk-file




Posibility 1: version problem. Make your minimum and target sdk version higher and try again.

Posibility 2: package mistmatching. Package name in AndroidManifest.xml does not match with the actual package that your activity is associated with.

Three steps to solve this problem:

Step 1. Check your header file from your AndroidManifest.xml.

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.yourdomain.yourapp"
    android:versionCode="1"
    android:versionName="1.0" >



내 경우는 둘다 아니였고, 

.xml 파일에서



        <com.samsung.sdraw.CanvasView

            android:id="@+id/canvas"

            android:layout_width="wrap_content"

            android:layout_height="wrap_content" />


        <com.samsung.sdraw.SettingView

            android:id="@+id/setting"

            android:layout_width="wrap_content"

            android:layout_height="wrap_content" />


등의 외부 view를 가져올때의 뷰 이름을 잘못쓰면 나타나더라.


혹은 project-clean을 하거나

refresh 하거나

eclipse를 재부팅하면 해결된다.