android - 如何配置 Eclipse 以在 Ubuntu 上使用 Phonegap?

标签 android eclipse ubuntu cordova


Phonegap = tool to make things such as HTML5/Javascript games into phones. It is pretty cool because desktop versions should work in phones without extensive redoing things for other platforms.

我可以找到一般说明,但可以找到关于 Eclipse 之类的所有内容。我找不到关于 Ubuntu 的字眼,例如 here除非有大量谷歌垃圾邮件,其中包含大量关于不同平台的令人困惑的线索,人们或多或少地互相欺凌,例如 here带有诸如 google 之类的红鲱鱼。我希望有一些不错的 make 文件来做事,但不,自述文件是阅读或多或少模棱两可的入门指南。所以:


  1. 在哪里可以找到关于 Ubuntu 设置 Phonegap 的分步说明?

  2. 我希望在不同的平台上进行一些概述。

  3. 没有在 Eclipse 中安装 ADT 插件。为什么?

Android Eclipse ADT -problem

I can find here the instructions but cannot move forward for some odd reason, no instructions or help -text to proceed. You can see in the photo that it does not allow me to click OK although I am following the instructions. I wish I could do this on console!

enter image description here



AVP = Android virtual phone (you do not need all phones to test your code, use emulator)

ADB = application to push application from command-line to the phone

ADT -plugin in Eclipse = adding some buttons to Eclipse for things such as to add AVPs

ADT = Android Development Tools (not sure what they are actually, perhaps emulation-related things containing things such as linux kernels, APIs etc)


1. set up the development environment such as the Android SDK here.

$ wget

$ tar -xvzf *.tgz

$ ...follow README or some tutorial there...

I. Now go back to the Android SDK site where you can find the ADT Plugin for Eclipse here. The unclikable button becomes clickable if you search now with the search-bar for Android something. The ADT stands for Android Development Tools so install everything you get there under something tools or related.

II. Fix the @override -problem (shortly requires 1.6 compiler -compliance-level), more here.

III. Test your Android installation work by loading an Android Sample -file and then plugging in your phone (with USB -debugging enabled: Settings > Development > click) or use Android Virtual Phone (=AVP)

$ adb devices   # Shows your physics devices such 
                # as phones with USB -debugging enabled.

$ adb install ~/workspace/yourChosenSampleDemo/bin/*.apk 
                # Your first Android -app emerges to your phone, have FuN!

<强>2。使用以下设置 Phonegap:

  1. Some general instructions apparently here.

  2. iOS: you need Xcode so somewhat limited.

  3. Perhaps useful, source -code here and general download here.

使用 Eclipse 的 click-click-something,这些指令非常难以访问,可怜!在 Eclipse 的符号链接(symbolic link)上浪费时间之后,我切换到控制台:

$ tree|less
$ search for the files needed, mark them done or use find -command directly ^C
$ copy the files to some dir such as ~/Android/Public so easier to do ^C
$ things at once ^C
$ pwd
$ cp ~/Android/phonegap-phonegap-475bfd2/lib/android/xml/* .
$ cp ~/Android/Public/cordova-1.7.0.js assets/www/
$ cp ~/Android/Public/cordova-1.7.0.jar libs/

关于android - 如何配置 Eclipse 以在 Ubuntu 上使用 Phonegap?,我们在Stack Overflow上找到一个类似的问题:


android - LogCat 消息 : The Google Play services resources were not found

android - 音频线控制MediaPlayer服务

java - 我怎样才能验证 mer. 2019 年 1 月 1 日按钮?

eclipse - 我怎样才能治愈... cvc-elt.1 : Cannot find the declaration of element 'jaxb:bindings'

ubuntu - 找不到 sudo pecl 命令

android - 在android中以编程方式静音麦克风

android - Assets 和引用


python - 坚持在 Python 中使用 Megam(nltk.classify.MaxentClassifier)

linux - 如何使用 vlan id 标记传出流量