Giter VIP home page Giter VIP logo

mnist-android-tensorflow's Issues

Run on Android drive crash

Hi, I have run the code on Android Studio well without any error.
BUT run on my Android drive (API16) ,the code crash! and get this error :

E/AndroidRuntime: FATAL EXCEPTION: pool-1-thread-1 java.lang.NoSuchMethodError: android.os.Trace.beginSection at org.tensorflow.contrib.android.TensorFlowInferenceInterface.load(TensorFlowInferenceInterface.java:385) at org.tensorflow.contrib.android.TensorFlowInferenceInterface.initializeTensorFlow(TensorFlowInferenceInterface.java:91) at mariannelinhares.mnistandroid.Classifier.create(Classifier.java:62) at mariannelinhares.mnistandroid.MainActivity$1.run(MainActivity.java:100) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569) at java.lang.Thread.run(Thread.java:856)
Anyone can help me? Thank u very much

import this project and crash java.lang.RuntimeException: Error initializing TensorFlow!

plz help
07-06 08:43:04.045 820 975 E AndroidRuntime: FATAL EXCEPTION: pool-1-thread-1
07-06 08:43:04.045 820 975 E AndroidRuntime: Process: mariannelinhares.mnistandroid, PID: 820
07-06 08:43:04.045 820 975 E AndroidRuntime: java.lang.RuntimeException: Error initializing TensorFlow!
07-06 08:43:04.045 820 975 E AndroidRuntime: at mariannelinhares.mnistandroid.MainActivity$1.run(MainActivity.java:107)
07-06 08:43:04.045 820 975 E AndroidRuntime: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
07-06 08:43:04.045 820 975 E AndroidRuntime: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
07-06 08:43:04.045 820 975 E AndroidRuntime: at java.lang.Thread.run(Thread.java:761)
07-06 08:43:04.045 820 975 E AndroidRuntime: Caused by: java.lang.RuntimeException: Native TF methods not found; check that the correct native libraries are present and loaded.
07-06 08:43:04.045 820 975 E AndroidRuntime: at org.tensorflow.contrib.android.TensorFlowInferenceInterface.(TensorFlowInferenceInterface.java:57)
07-06 08:43:04.045 820 975 E AndroidRuntime: at mariannelinhares.mnistandroid.Classifier.create(Classifier.java:61)
07-06 08:43:04.045 820 975 E AndroidRuntime: at mariannelinhares.mnistandroid.MainActivity$1.run(MainActivity.java:100)
07-06 08:43:04.045 820 975 E AndroidRuntime: ... 3 more
07-06 08:43:05.242 1012 1054 E AndroidRuntime: FATAL

android apk

Hello.How to use android-studio to compile it into apk, and then import this apk to Android phone?

Native TF methods not found; check that the correct native libraries are present and loaded.

E/AndroidRuntime: FATAL EXCEPTION: pool-1-thread-1
Process: mariannelinhares.mnistandroid, PID: 9009
java.lang.RuntimeException: Error initializing TensorFlow!
at mariannelinhares.mnistandroid.MainActivity$1.run(MainActivity.java:109)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:831)
Caused by: java.lang.RuntimeException: Native TF methods not found; check that the correct native libraries are present and loaded.
at org.tensorflow.contrib.android.TensorFlowInferenceInterface.(TensorFlowInferenceInterface.java:57)
at mariannelinhares.mnistandroid.Classifier.create(Classifier.java:61)
at mariannelinhares.mnistandroid.MainActivity$1.run(MainActivity.java:101)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) 
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) 
at java.lang.Thread.run(Thread.java:831) 

There is a mistake

how to resolve this issue :

11-16 17:28:26.354 1410-1437/mariannelinhares.mnistandroid E/art: No implementation found for long org.tensorflow.contrib.android.RunStats.allocate() (tried Java_org_tensorflow_contrib_android_RunStats_allocate and Java_org_tensorflow_contrib_android_RunStats_allocate__)
11-16 17:28:26.354 1410-1437/mariannelinhares.mnistandroid I/TensorFlowInferenceInterface: Loading tensorflow_inference.
11-16 17:28:26.359 1410-1437/mariannelinhares.mnistandroid E/AndroidRuntime: FATAL EXCEPTION: pool-1-thread-1
Process: mariannelinhares.mnistandroid, PID: 1410
java.lang.RuntimeException: Error initializing TensorFlow!
at mariannelinhares.mnistandroid.MainActivity$1.run(MainActivity.java:107)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
at java.lang.Thread.run(Thread.java:760)
Caused by: java.lang.RuntimeException: Native TF methods not found; check that the correct native libraries are present and loaded.
at org.tensorflow.contrib.android.TensorFlowInferenceInterface.(TensorFlowInferenceInterface.java:57)
at mariannelinhares.mnistandroid.Classifier.create(Classifier.java:61)
at mariannelinhares.mnistandroid.MainActivity$1.run(MainActivity.java:100)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133) 
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607) 
at java.lang.Thread.run(Thread.java:760) 

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.