antを使用せずにコマンドラインからAndroidアプリを管理および実行しているので、次の手順に従いました。
- R.javaを生成します
- R.javaとすべての
.java
ファイルsrc
を.class
ファイルにコンパイルします dex
以下のコマンドを使用して、クラスファイルのセットをファイルにアセンブルします
dx --dex --verbose --output=./bin/classes.dex ./bin
.class
ファイルはbinディレクトリにあります。
しかし、これらの手順で次のエラーが発生します。
java.lang.Runtime exception:.\bin file not found
at com.android.dx.cf.direct.ClassPathOpener.process
at com.android.dx.command.dexer.Main.processOne
at com.android.dx.command.dexer.Main.processAllFiles
at com.android.dx.command.dexer.Main..run
at com.android.dx.command.dexer.Main.main
at com.android.dx.command.Main.main
このため、Classes.dex
ファイルを作成できません。
誰かがこれに対する解決策を提案できますか?
[コマンドラインからのみEclipseとantを使用しない]