Android的 - FLAC_FileEn codeR不能被解析为一个类型 [英] Android - FLAC_FileEncoder cannot be resolved to a type

查看:224
本文介绍了Android的 - FLAC_FileEn codeR不能被解析为一个类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所有,

我试图按照对这个职位的指示,并要求在回答地区的问题,而是有它删除。我不知道如何相处的问题添加到后续帖子。是否有stackflow客场做到这一点?我认为这是有谁张贴回复其原来的人很重要。

如何用Java编写 FLAC文件

向前迈进。

我使用了Eclipse导入参考LIB:导航到javaFlacEn codeR-0.2.3.jar项目 - >属性 - > JavaBuildPath-> AddExternalJars

不幸的是我得到这个作为以下错误消息:FLAC_FileEn codeR不能被解析为一个类型

我认为我跟着指示加载外部罐子。日食是能够告诉我要导入的lib到文件(选中时增加了code)。你可以让我知道我做错了什么?不应变量从导入在那里。

Dl'd来源自:
http://sourceforge.net/projects/javaflacen$c$cr/?source = DLP

有一个指导文件显示它应该存在(这就是为什么我想跟发布该响应的家伙)。

code:

 进口javaFlacEn coder.FLAC_FileEn codeR;.....  私人无效convertWavToFlac(字符串wavFilename,字符串flacFilename){
      // TODO自动生成方法存根
      FLAC_FileEn codeR flacEn codeR =新FLAC_FileEn codeR(); //< ----错误
      inputfile文件=新的文件(wavFilename);
      文件OUTPUTFILE =新的文件(flacFilename);      flacEn coder.en code(INPUTFILE,OUTPUTFILE);
      的System.out.println(转换波后手 - 完成);
  }


解决方案

所以,我最终搞清楚,我需要重新启动Eclipse。即到错误贡献的错误是同时改变明显,再加上建筑/清洁,我不是通过月食添加/删除文件。日食不喜欢这种每天多,而且必须一直搞不清楚什么太链接的文件。

有重启后附加误差。它们在下面的柱被识别。
Eclipse的Andr​​oid游戏:有R 问题

All,

I was trying to follow the instructions on this post and asked a question in an answer area, but had it deleted. I don't know how to add a follow along question to a post. Does stackflow have away to do this? I thought it was important to have the original people who posted reply to it.

How to write FLAC files in java

Moving forward.

I used Eclipse to import the reference lib: Project->Properties->JavaBuildPath->AddExternalJars Navigated to the javaFlacEncoder-0.2.3.jar.

Unfortunately I'm getting this as the following error message: FLAC_FileEncoder cannot be resolved to a type

I thought that I followed the instructions to load an external jar. Eclipse was able to tell me to import the lib into the file (Which it added the code when selected). Can you let me know what I'm doing wrong? Shouldn't the variables be there from the import.

Dl'd the sources from: http://sourceforge.net/projects/javaflacencoder/?source=dlp

There is a document guide that shows it should be there ( This is why I wanted to talk to the guy that posted the response).

Code:

import javaFlacEncoder.FLAC_FileEncoder;

.....

  private void convertWavToFlac(String wavFilename, String flacFilename) {
      // TODO Auto-generated method stub
      FLAC_FileEncoder flacEncoder = new FLAC_FileEncoder();   // <---- Error
      File inputFile = new File(wavFilename);
      File outputFile = new File(flacFilename);

      flacEncoder.encode(inputFile, outputFile);
      System.out.println("Converted Wave to Flac - Done");
  }

解决方案

So, I ended up figuring out that I needed to restart eclipse. Mistakes that contributed to the error are while changing the manifest, plus building/cleaning, I added/removed files not through eclipse. Eclipse didn't like this every much and must have been confused on what was linking the files too.

There were additional errors after the restart. They are identified in the post below. Eclipse for android: Issues with R

这篇关于Android的 - FLAC_FileEn codeR不能被解析为一个类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆