Giter Site home page Giter Site logo

minor bug with env about fileexplorer HOT 18 CLOSED

micode avatar micode commented on August 22, 2024
minor bug with env

from fileexplorer.

Comments (18)

SunRain avatar SunRain commented on August 22, 2024

R.java,如果在eclipse里面是会自动生成的,如果是用mmm编译,aapt(貌似是这个?)也是会在编译的司法自动生成的。
String.xml这个就不了解了
BTW,还没有编译过,木有4.0的jj,表示很无力

from fileexplorer.

usc avatar usc commented on August 22, 2024

sorry, 还是因为开源的不是 eclipse project,导致需要自己 new android project. 现在已经ok了,请 closed,不好意思。

from fileexplorer.

daidaiwa avatar daidaiwa commented on August 22, 2024

一般开源软件的习惯是不给IDE相关的配置文件,因为每个人习惯的IDE都不一样,没有太大意义,不过有的会给make,ant或maven的脚本
对于第二个问题,版本控制的一个最佳实践是,自动生成的代码不放在代码库中,而R.java如同.class文件一样,因为是自动生成的,所以都是不需要放进来的

from fileexplorer.

usc avatar usc commented on August 22, 2024

恩,确实是一个不错的实践。

from fileexplorer.

cabral-tiago avatar cabral-tiago commented on August 22, 2024

sorry for writing in English but... i really didn't understand what you're talking because the translator isn't translating well.

But, can someone give instructions on how to compile this? i've tried in Eclipse and on a android build but it doesn't work both methods.

i've tried including the android.r but neither it worked. It's still missing things from that r.java

from fileexplorer.

daidaiwa avatar daidaiwa commented on August 22, 2024

You should make sure you have already installed ADT plugin (http://developer.android.com/sdk/eclipse-adt.html) first. Then you can create a new Android project from existing source in Eclipse (File -> New -> Android Project -> Create project from existing source). After the wizard, Eclipse will do all left stuffs for you including generating the gen folder to contains R.java.

from fileexplorer.

usc avatar usc commented on August 22, 2024

Above that has a very detailed(Create project from existing source is key), add i should add that this project only compile with Android4.0 or later + jdk1.6 (or later?), and if you find anything is wrong,please fix it first, this is the reasons for i missing R.java.
And i think maybe it's open with maven project, that will reduce a lot of environmental trouble above.

from fileexplorer.

daidaiwa avatar daidaiwa commented on August 22, 2024

A significant advantage of Maven is dependency management, but Android projects do not have complicated dependency situations indeed. Another reason is, Maven does not work well with Android projects, especially with ADT plugin in Eclipse, for instance, Maven will not consider gen folder is a source folder. So it is not quite necessary to introduce Maven in Android projects. However, you may try to use some Eclipse plugins or Maven plugins to resolve the integration issues.

from fileexplorer.

cabral-tiago avatar cabral-tiago commented on August 22, 2024

i have that ADT plugin, and i've done that, but it's not working :S

i will update all Android SDK, get another distro of the Eclipse and reinstall the ADT, maybe the problem is there

from fileexplorer.

cabral-tiago avatar cabral-tiago commented on August 22, 2024

i updated everything. i'm using SDK with Api Level 15. No R.Java problems and less errors given, but... there's still a few errors and warnings that don't let me build the package. Here, there are some screenshots of both Errors and Warnings list.

http://img585.imageshack.us/img585/4637/semttulo1he.png
http://img823.imageshack.us/img823/1811/semttulo2thi.png

from fileexplorer.

usc avatar usc commented on August 22, 2024

i pull it and push it onto google code with svn. maybe you can try checkout it, at http://fileexplorer-android.googlecode.com/svn/trunk/ .

from fileexplorer.

cabral-tiago avatar cabral-tiago commented on August 22, 2024

so, what's the difference between that source you've uploaded and the original one?

from fileexplorer.

usc avatar usc commented on August 22, 2024

nothing, but i want fork it and enhance it, and ing...

from fileexplorer.

cabral-tiago avatar cabral-tiago commented on August 22, 2024

so, you sucessfully build it through eclipse or an android build?

from fileexplorer.

usc avatar usc commented on August 22, 2024

yes.

from fileexplorer.

cabral-tiago avatar cabral-tiago commented on August 22, 2024

strange, i can't :S

wich api version r you using?

edit: i'm downloading now the api version 14, i had 15, let's see what happen if i use 14 on Eclipse

from fileexplorer.

cabral-tiago avatar cabral-tiago commented on August 22, 2024

i got build problems... :s

same errors with Api 14

from fileexplorer.

cabral-tiago avatar cabral-tiago commented on August 22, 2024

ok, i added android-support-v4.jar and added it to the class patch, also addded android-support-v13.jar to the class patch, now there's no building errors on Eclipse, only Warnings

it doesn't build any APK file

from fileexplorer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.