Solved by Marcio_Albuquerque in post #3 
              
              
                Try use pytorch_android_lite, 
Look the project (android-demo-app/ObjectDetection at master · pytorch/android-demo-app · GitHub). The commit with update version. 


Important points: 


trace_model.py 


MainActivity.java 


build.gradle