2016-11-30 54 views
0

好吧,我有這個奇怪的情況...我有在Android Studio中的一個項目,是工作的罰款,直到昨晚,但是當我卸載應用並取得乾淨,然後重新運行嘗試安裝應用程式需要永遠安裝的應用Android的工作室在特定的設備不​​安裝特定的應用

現在的情況是我在Android Studio中的其他項目,我試圖在同一設備中運行,他們正在安裝的罰款。所以我認爲該設備是好的。

我試圖運行在其他設備相同的項目和它的工作完全沒問題,所以我覺得Android的工作室,以及我的代碼是好的。

我以爲是卸載的問題,所以我清除設備的緩存數據,並將其力的工作。那麼有人有想法如何解決這個問題?

我已經試過一切都像清潔並重新運行,無效緩存,並重啓等這麼認爲別的東西。告訴我你是否想從代碼中獲得一些東西。

編輯: 現在我改變了項目的包名,這樣,如果以前的應用程序,然後卸載過程中提出了一些問題,因爲我改變了包名,應該把這個應用作爲新的應用程序,但仍是不加工。

+0

僅供參考我使用過Android Studio 2.2.2版 –

回答

0

我找到了解決方案。其實我發現了錯誤,因爲android工作室正在永久安裝apk ...它無法在運行時分配內存。這是我得到的錯誤。

java.lang.OutOfMemoryError: Failed to allocate a 191692812 byte allocation with 12539072 free bytes and 110MB until OOM 
                at dalvik.system.VMRuntime.newNonMovableArray(Native Method) 
                at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method) 
                at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:613) 
                at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:446) 
                at android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:973) 
                at android.content.res.Resources.createFromResourceStream(Resources.java:2771) 
                at android.content.res.Resources.loadDrawableForCookie(Resources.java:2472) 
                at android.content.res.Resources.loadDrawable(Resources.java:2370) 
                at com.miui.internal.variable.v21.Android_Content_Res_Resources_class.handleLoadDrawable(SourceFile:40) 
                at android.content.res.MiuiResources.loadDrawable(MiuiResources.java:393) 
                at android.content.res.Resources.getDrawable(Resources.java:776) 
                at android.content.res.Resources.getDrawable(Resources.java:742) 
                at android.app.ApplicationPackageManager.getDrawable(ApplicationPackageManager.java:743) 
                at android.app.MiuiThemeHelper.getDrawable(MiuiThemeHelper.java:103) 
                at android.content.pm.PackageItemInfo.loadIcon(PackageItemInfo.java:157) 
                at android.app.ApplicationPackageManager.getApplicationIcon(ApplicationPackageManager.java:800) 
                at com.miui.permcenter.install.AdbInstallActivity.onCreate(Unknown Source) 
                at android.app.Activity.performCreate(Activity.java:5982) 
                at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1105) 
                at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2258) 
                at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2365) 
                at android.app.ActivityThread.access$800(ActivityThread.java:147) 
                at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1283) 
                at android.os.Handler.dispatchMessage(Handler.java:102) 
                at android.os.Looper.loop(Looper.java:135) 
                at android.app.ActivityThread.main(ActivityThread.java:5237) 
                at java.lang.reflect.Method.invoke(Native Method) 
                at java.lang.reflect.Method.invoke(Method.java:372) 
                at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:912) 
                at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:707) 
0

嘗試,如果任何在您的設備存在從其他用戶,以及將其刪除。

+0

沒有我沒有其他用戶該設備 –

+0

上嘗試重啓裝置,一旦 – NilayDani

+1

您是否收到任何錯誤,而安裝? – NilayDani

相關問題