Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can not support internal storage? #40

Open
lingdianguole opened this issue Sep 20, 2019 · 2 comments
Open

can not support internal storage? #40

lingdianguole opened this issue Sep 20, 2019 · 2 comments

Comments

@lingdianguole
Copy link

Process: io.fotoapparat.facedetector.example, PID: 4320
io.fotoapparat.facedetector.AssetsExtractor$ExtractionException: Not a valid external directory: /mnt/internal_sd/Android/data/io.fotoapparat.facedetector.example/files
    at io.fotoapparat.facedetector.AssetsExtractor.ensureValidDirectory(AssetsExtractor.java:76)
    at io.fotoapparat.facedetector.AssetsExtractor.extractedFile(AssetsExtractor.java:69)
    at io.fotoapparat.facedetector.AssetsExtractor.extractIfNeeded(AssetsExtractor.java:29)
    at io.fotoapparat.facedetector.FaceDetector.ensureInitialized(FaceDetector.java:50)
    at io.fotoapparat.facedetector.FaceDetector.detectFaces(FaceDetector.java:42)
    at io.fotoapparat.facedetector.processor.FaceDetectorProcessor.processFrame(FaceDetectorProcessor.java:37)
    at io.fotoapparat.hardware.v1.PreviewStream1.dispatchFrame(PreviewStream1.java:115)
    at io.fotoapparat.hardware.v1.PreviewStream1.access$200(PreviewStream1.java:21)
    at io.fotoapparat.hardware.v1.PreviewStream1$2.run(PreviewStream1.java:103)
    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:818)
@littlebear333
Copy link

Same problem. Do you find the solution?

@littlebear333
Copy link

I fixed the problem by changing the following two lines in AndroidManifest.

  <uses-permission tools:remove="android:maxSdkVersion" android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <uses-permission tools:remove="android:maxSdkVersion" android:name="android.permission.READ_EXTERNAL_STORAGE" />

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants