我是新來的android開發,希望有人能幫助我。Android:包安裝程序不斷停止
我使用Android Studio創建了一個應用程序(最低Android 4.4),該應用程序可以在Android Studio Emulator,MEmu Emulator和Samsung Galaxy J2 Prime手機上成功運行。
問題是如果我嘗試將它安裝到三星Galaxy S7 edge(Android 7)和某些本地手機(Android 4.4),則會顯示錯誤Package installer keeps stopping
。
Android Studio沒有錯誤。我也試過再次建立.apk
,但沒有運氣。
這是logcat的
android.support.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
I/OpenGLRenderer: Initialized EGL, version 1.4
D/OpenGLRenderer: Swap behavior 1
W/OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without...
D/OpenGLRenderer: Swap behavior 0
W/art: Before Android 4.1, method int android.support.v7.widget.ListViewCompat.lookForSelectablePosition(int, boolean) would have incorrectly overridden the package-private method in android.widget.ListView
D/MediaPlayer: getMetadata
W/MediaPlayer: info/warning (3, 0)
I/Choreographer: Skipped 90 frames! The application may be doing too much work on its main thread.
I/Choreographer: Skipped 33 frames! The application may be doing too much work on its main thread.
logcat上顯示任何錯誤? – Amy
謝謝你的回覆。我已經更新了這個問題。 –
首先我不是女士:)請參考這個https://stackoverflow.com/questions/23005656/android-method-with-default-package-visibility-overriding-shouldnt-work-but – Amy