Async task not supporting in android 9.0 (Pie)

后端 未结 2 1901
[愿得一人]
[愿得一人] 2021-01-06 00:14

I was working on my code. it was working fine on version 8(Oreo) after that I got an update of android v 9.0 (Pie) and the app stopped working suddenly. after checking I got

2条回答
  •  Happy的楠姐
    2021-01-06 00:39

    How to update the existing project in androidx.

    does not need to add the extra permission & code, dependencies,...

    0.1): changes into the compileSdkVersion 29

    0.2): Refactor-> Migrate to androidX then

    Just add the following code in the project "ASDF":

    1): add the XML directory,

    1.1): Add the following code in XML, Code is below: i.e.

    
    
    
    
    
    
    
    
    
    >
    

    2): add the following code in the in manifest file:

    2.1): within application tag the (manifest->application) add the following code:

    android:networkSecurityConfig="@xml/network_security_config"
    

    2.2): outside application tag the (manifest->application) add the following code:

    
    
     
    
    
    

    be happy and share your feedback with me Thank you**

提交回复
热议问题