bitmapfont-libgdx在IntelliJ IDEA中使用问题:找不到文件“arial-15.fnt (Classpath)”

问题描述

libgdx在IntelliJ IDEA中使用问题:找不到文件“arial-15.fnt (Classpath)”

IntelliJ IDEA:13.0.2
libgdx:0.9.9

我是按照:http://code.google.com/p/libgdx/wiki/IntelliJIDEALibgdx来配置的。

工程目录结构:
desktop
main
android
所有的jar文件已经正确放置到libs中。
android工程能编译成功,但在运行(真机与虚拟机均出错)时出现如下错误,

com.badlogic.gdx.utils.GdxRuntimeException: File not found: com/badlogic/gdx/utils/arial-15.fnt (Classpath)
at com.badlogic.gdx.files.FileHandle.read(FileHandle.java:133)
at com.badlogic.gdx.backends.android.AndroidFileHandle.read(AndroidFileHandle.java:77)
at com.badlogic.gdx.graphics.g2d.BitmapFont$BitmapFontData.(BitmapFont.java:800)
at com.badlogic.gdx.graphics.g2d.BitmapFont.(BitmapFont.java:135)
at com.badlogic.gdx.graphics.g2d.BitmapFont.(BitmapFont.java:75)

很是困扰,请大家指教!

解决方案

使用最新的libgdx库可以解决。(0.9.9的release版本有此问题,使用最新的nightly版本2014.2.11日可以解决)

时间: 2024-08-24 15:55:54

bitmapfont-libgdx在IntelliJ IDEA中使用问题:找不到文件“arial-15.fnt (Classpath)”的相关文章

“System.Data.OleDb.OleDbException”类型的未经处理的异常在 System.Data.dll 中发生 其他信息: 找不到文件

问题描述 usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem.Linq;usingSystem.Text;usingSystem.Threading.Tasks;usingSystem.Windows.Forms;usingSystem.IO;usingSystem.Data.OleDb;namespaceyy

spark (java API) 在Intellij IDEA中开发并运行

概述:Spark 程序开发,调试和运行,intellij idea开发Spark java程序. 分两部分,第一部分基于intellij idea开发Spark实例程序并在intellij IDEA中运行Spark程序.第二部分,将开发程序提交到Spark local或者hadoop YARN集群运行.Github项目源码 图1,直接在intellij IDEA(社区版)中开发调试,直接run. 图2,直接在intellij IDEA(社区版)中用hadoop YARN模式. Github项目源

intellij idea 中javaweb 连 oracle错误

问题描述 intellij idea 中javaweb 连 oracle错误 在Eclipse中运行正常的web应用,数据库连接正常(在Navicat中连接也是正常的),把项目移动到intellij idea中后报错: 2014-05-28 10:00:50,809 WARN (com.mchange.v2.resourcepool.BasicResourcePool:1841) - com.mchange.v2.resourcepool.BasicResourcePool$AcquireTas

intellij idea-新手求教!IntelliJ IDEA中打开或者导入新的项目时的注意点和相关操作?发布和访问?

问题描述 新手求教!IntelliJ IDEA中打开或者导入新的项目时的注意点和相关操作?发布和访问? 怎样决定和设置和添加maven的本地仓库和远程仓库...................................................

在Intellij IDEA 中自动加载Maven管理的依赖包的源码

如果你的项目不是用 Maven 管理的,可以在项目依赖的Libraries下手工添加依赖包对应的源码jar文件路径, 方法可以参考此文: https://yq.aliyun.com/articles/72560 但如果你是用 Maven 来管理项目,就不用怎么麻烦了,只需要在 Intellij IDEA 中设置一下即可. 设置方法如下: 一.打开 File -> Settings 窗口,然后在左边选择 Build, Execution, Deployment -> Build Tools -&

Gradle精选: 在IntellIJ IDEA中创建快捷方式,用于刷新Gradle工程

翻译自: http://mrhaki.blogspot.com/2017/03/gradle-goodness-create-shortcut-key-to.html 我们可以在IntelliJ IDEA中打开一个Gradle工程,并且获得IntelliJ对Gradle的原生支持.当我们在Gradle build文件中添加一个新的依赖或者插件时,需要在 IntelliJ IDEA中刷新工程.我们需要刷新这个Gradle工程,来保证IntelliJ IDEA 能够同步这些改变.Gradle工具栏有

反射 程序集-成功添加程序集到缓存中 但assmbly找不到该文件

问题描述 成功添加程序集到缓存中 但assmbly找不到该文件 成功将DLL添加到程序集中了.但是C:Windowsassembly目录下找不到该DLL

在vmware中安装Ubuntu,找不到硬盘?

在vmware中安装http://www.aliyun.com/zixun/aggregation/13835.html">Ubuntu,找不到硬盘? 在 vmware 中建立你的虚拟 磁盘的时候,当选择类型 (ide/scsi) 时选择自定义, 选择 ide, 就可以了.

qt txt文件 中文 乱码-Qt5中用QTextStream向txt文件中写入中文字符串,打开文件时出现乱码

问题描述 Qt5中用QTextStream向txt文件中写入中文字符串,打开文件时出现乱码 在网上查了一些关于Qt中文乱码的问题,主要是因为机器的编码问题QTextCodec::setCodecForLocale(QTextCodec::codecForName(""GBK""));QTextCodec::setCodecForCStrings(QTextCodec::codecForName(""GBK"")); QText