Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6728973
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T10:14:00+00:00 2026-05-26T10:14:00+00:00

I am following this tutorial on libgdx. What i am trying to do is

  • 0

I am following this tutorial on libgdx. What i am trying to do is loading a texture from a copy of badlogic.jpg (copy is called wawa.jpg):

public class HelloWorld implements ApplicationListener {
    SpriteBatch spriteBatch;
    Texture texture;
    Texture watched_texture;
    BitmapFont font;
    Vector2 textPosition = new Vector2(100, 100);
    Vector2 textDirection = new Vector2(5, 3);

    @Override
    public void create () {
        font = new BitmapFont();
        font.setColor(Color.RED);
        texture = new Texture(Gdx.files.internal("data/badlogic.jpg"));
        watched_texture = new Texture(Gdx.files.internal("data/wawa.jpg"));
        spriteBatch = new SpriteBatch();
    }
...

What i get is the crash of application and “com.badlogic.gdx.utils.GdxRuntimeException: Couldn’t load file data/wawa.jpg” in debug:

10-18 09:24:45.383: WARN/dalvikvm(330): threadid=9: thread exiting with uncaught exception (group=0x40015560)
10-18 09:24:45.502: ERROR/AndroidRuntime(330): FATAL EXCEPTION: GLThread 10
10-18 09:24:45.502: ERROR/AndroidRuntime(330): com.badlogic.gdx.utils.GdxRuntimeException: couldn't load file 'wawa.jpg'
10-18 09:24:45.502: ERROR/AndroidRuntime(330):     at com.badlogic.gdx.graphics.Pixmap.(Pixmap.java:135)
10-18 09:24:45.502: ERROR/AndroidRuntime(330):     at com.badlogic.gdx.graphics.Texture.(Texture.java:126)
10-18 09:24:45.502: ERROR/AndroidRuntime(330):     at com.badlogic.gdx.graphics.Texture.(Texture.java:104)
10-18 09:24:45.502: ERROR/AndroidRuntime(330):     at com.test.myfirsttriangle.MyFirstTriangle.create(MyFirstTriangle.java:29)
10-18 09:24:45.502: ERROR/AndroidRuntime(330):     at com.badlogic.gdx.backends.android.AndroidGraphics.onSurfaceCreated(AndroidGraphics.java:284)
10-18 09:24:45.502: ERROR/AndroidRuntime(330):     at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1348)
10-18 09:24:45.502: ERROR/AndroidRuntime(330):     at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1118)
10-18 09:24:45.502: ERROR/AndroidRuntime(330): Caused by: com.badlogic.gdx.utils.GdxRuntimeException: Error reading file: data/wawa.jpg (Internal)
10-18 09:24:45.502: ERROR/AndroidRuntime(330):     at com.badlogic.gdx.backends.android.AndroidFileHandle.read(AndroidFileHandle.java:64)
10-18 09:24:45.502: ERROR/AndroidRuntime(330):     at com.badlogic.gdx.graphics.Pixmap.(Pixmap.java:132)
10-18 09:24:45.502: ERROR/AndroidRuntime(330):     ... 6 more
10-18 09:24:45.502: ERROR/AndroidRuntime(330): Caused by: java.io.FileNotFoundException: data/wawa.jpg
10-18 09:24:45.502: ERROR/AndroidRuntime(330):     at android.content.res.AssetManager.openAsset(Native Method)
10-18 09:24:45.502: ERROR/AndroidRuntime(330):     at android.content.res.AssetManager.open(AssetManager.java:314)
10-18 09:24:45.502: ERROR/AndroidRuntime(330):     at android.content.res.AssetManager.open(AssetManager.java:288)
10-18 09:24:45.502: ERROR/AndroidRuntime(330):     at com.badlogic.gdx.backends.android.AndroidFileHandle.read(AndroidFileHandle.java:62)
10-18 09:24:45.502: ERROR/AndroidRuntime(330):     ... 7 more

Just can’t figure out what’s wrong.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T10:14:01+00:00Added an answer on May 26, 2026 at 10:14 am

    solved: i didn’t put the new texture into the “assets” folder of android project

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm new to NHibernate... I have been following this NHibernate Tutorial from Gabriel Schenker
I managed to get authentication to work by following the tutorial from this page
I am following this tutorial, but in Windows. When I run: pdfkit --install-wkhtmltopdf from
I am following this tutorial var groups = from sharePointGroup in groupsXml.Root.Elements(Group) select new
I am following this tutorial, trying to learn to make Magento extensions, however, in
I have been following this Tutorial on how to read from a plist. However
I am following this tutorial from MSDN. There's something I saw in the code
I've been following this tutorial (lesson 6) in order to build and deploy a
I'm following this tutorial (seems good) for Rails. After I run ruby script/generate scaffold
I was following this tutorial . I need to use a php file's ouput

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.