Try use pytorch_android_lite,
Look the project (android-demo-app/ObjectDetection at master · pytorch/android-demo-app · GitHub 48). The commit with update version.

  

      github.com/pytorch/android-demo-app
  

  
    
  
    
  

  
    
      Demo app updates to use PyTorch 1.9 org.pytorch:pytorch_android_lite:1.9.0 (#151) 51
    

    
      
        committed 
        
          
        
        Jun 17, 2021
      
      

      
        
          
          jeffxtang
        
      

      
        
          +134
          -80
        
      
    
  


  
    * initial commit

* Revert "initial commit"

This reverts commit 5a65775315a…d581637837a408f80607fa5e3fed7.

* main readme and helloworld/demo app readme updates

* build.gradle, README and code update for PT1.9 for HelloWorld and Object Detection using pytorch_android_lite:1.9.0

* build.gradle, README and code update for PT1.9 for Question Answering using pytorch_android_lite:1.9.0

* build.gradle, README and code update for PT1.9 for TorchVideo using pytorch_android_lite:1.9.0

* HelloWorld script fix

* README update for TorchVideo
  

  

  
    
    
  

  


Important points:


trace_model.py 19


MainActivity.java 16


build.gradle 34