撰寫APP程式,在我這隻android6.0的手機上一直跑很順

有一天,拿了隻android9.0試試,發現程式突然會一直閃退......

經過幾番嘗試,總算是能動了~~YA!!

以下:

1.在mainfest.xml加入這行:

 

<uses-permission android:
name="android.permission.REQUEST_INSTALL_PACKAGES" />

 

在application 中加入

<application
    android:usesCleartextTraffic="true">

 

並且android:required要改成"false"

<uses-library
    android:name="org.apache.http.legacy"
    android:required="false" />

 

以上,APP復工!!

arrow
arrow
    文章標籤
    android app 閃退
    全站熱搜

    kyo 發表在 痞客邦 留言(0) 人氣()