com.badlogic.gdx.utils.GdxRuntimeException: Error writing file: file.txt (External)

Game Development | Swooty | 1 year ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rafael . Or join the community to write better ones.
  1. 0

    Cant write nor read to/from external storage with LibGDX

    Stack Overflow | 1 year ago | Swooty
    com.badlogic.gdx.utils.GdxRuntimeException: Error writing file: file.txt (External)
  2. 0

    Cant write/read to/from external storage with LibGDX

    Game Development | 1 year ago | Swooty
    com.badlogic.gdx.utils.GdxRuntimeException: Error writing file: file.txt (External)
  3. 0
    samebug tip
    Before using FileOutputStream check that there's no directory or file with the same name you're trying to use. Trying to remove it works as well. Try using FileAsyncHttpResponseHandler(context) as well!
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [BugReport] Source '/default.prop' copy to destination '/tombstones/default.prop' fail

    GitHub | 4 months ago | 920-Text-Editor-User
    java.io.FileNotFoundException: /tombstones/default.prop: open failed: EACCES (Permission denied)
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. android.system.ErrnoException

    open failed: EACCES (Permission denied)

    at libcore.io.Posix.open()
  2. Android
    IoBridge.open
    1. libcore.io.Posix.open(Native Method)
    2. libcore.io.BlockGuardOs.open(BlockGuardOs.java:186)
    3. libcore.io.IoBridge.open(IoBridge.java:438)
    3 frames
  3. Java RT
    FileOutputStream.<init>
    1. java.io.FileOutputStream.<init>(FileOutputStream.java:87)
    1 frame
  4. libGDX Core
    FileHandle.writeString
    1. com.badlogic.gdx.files.FileHandle.writer(FileHandle.java:322)
    2. com.badlogic.gdx.files.FileHandle.writeString(FileHandle.java:350)
    3. com.badlogic.gdx.files.FileHandle.writeString(FileHandle.java:339)
    3 frames
  5. com.snowdevs.tweetiebirds
    TweetieBirdsGame.create
    1. com.snowdevs.tweetiebirds.TweetieBirdsGame.create(TweetieBirdsGame.java:22)
    1 frame
  6. libGDX Android Backend
    AndroidGraphics.onSurfaceChanged
    1. com.badlogic.gdx.backends.android.AndroidGraphics.onSurfaceChanged(AndroidGraphics.java:254)
    1 frame
  7. Android Platform
    GLSurfaceView$GLThread.run
    1. android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1519)
    2. android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1240)
    2 frames