1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

PhoneGapプロジェクトをコマンドラインからコンパイルする

Posted at
$ cd lib/android/example/
$ android list targets
$ android update project -p . -t 1
携帯をUSBでつなぐ
$ ant debug install

本来はこれでいけるはずだが、ターゲットをAndroid2.1にしてしまったので

-code-gen:
     [echo] ----------
     [echo] Handling aidl files...
     [aidl] No AIDL files to compile.
     [echo] ----------
     [echo] Handling RenderScript files...
[renderscript] No RenderScript files to compile.
     [echo] ----------
     [echo] Handling Resources...
     [aapt] Generating resource IDs...
     [aapt] /Users/yhara/Downloads/phonegap-phonegap-b4e695d/lib/android/example/AndroidManifest.xml:4: error: No resource identifier found for attribute 'xlargeScreens' in package 'android'

というエラーになった。

昨日このエラーの説明をどっかで見たので、AndroidManifest.xmlから「xlargeScreens」が含まれる行を削除し再度installすると、端末に「CordovaExample」というアプリがインストールされた。


昨日Eclipseで作ったやつもこれでいけるかどうか試してみる。

$ android update project -p . -t 1
Updated project.properties
Updated local.properties
Updated file ./proguard-project.txt
携帯をUSBでつなぐ
$ ant debug install

うまく行った。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?