sabriallani / mobile-web-development-with-phonegap

Automatically exported from code.google.com/p/mobile-web-development-with-phonegap
0 stars 0 forks source link

Eclipse Phonegap plug in installed but cannot create new project from Sample folder #4

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Click the PhoneGap Logo on the Main Tool bar
2. Select the folder with the Sample project downloaded with Phonegap: 
"C:\phonegap-android\phonegap-0.9.3\Android\Sample"

I expected that this enabled the "Next" button but an error message appeared at 
the top of the window: " Invalid phonegap-android location. It's missing the 
framework and/or example subdirectory"

Version of the product: 1.1
ADT plugin: 8.0.1

I've already generated a project from this Sample using instructions of the 
Phonegap site and is already working but I want to use the plug-in as a next 
step because it seems a more straight forward way.

Original issue reported on code.google.com by mser...@gmail.com on 7 Jan 2011 at 3:55

GoogleCodeExporter commented 8 years ago
The plugin is set up to work with the directory structure from github 
https://github.com/phonegap/phonegap-android

I'll update the plugin to support both phonegap directory structures in the 
next release.

Original comment by paul.beu...@gmail.com on 7 Jan 2011 at 6:12

GoogleCodeExporter commented 8 years ago
Thanks Paul but I tried with the directory structure from the github and it 
didn't work at all. The message is the same. Now the name I provided is 
"C:\phonegap-android-812a4b3\example"

Original comment by mser...@gmail.com on 7 Jan 2011 at 10:42

GoogleCodeExporter commented 8 years ago
Hmmm.   You should not need to provide a location.  

On the first wizard page, you can select "Use phonegap example source as 
template for project".  It should also work to specify 
"C:\phonegap-android-812a4b3\example" if "C:\phonegap-android-812a4b3 is the 
phonegap-android Location.

On the second page you should leave "Create new project in workspace" selected 
and the "Use default location" unchanged.

Original comment by paul.beu...@gmail.com on 7 Jan 2011 at 11:15

GoogleCodeExporter commented 8 years ago
Ups!, You are right!. I provided ""C:\phonegap-android-812a4b3" and then set 
the "Use phonegap example source.." and go to the next step.
The project is generated but a lot of errors (105) appeared.
One example:
"Description    Resource    Path    Location    Type
Account cannot be resolved to a 
type    ContactAccessorSdk5.java    /PhonegapTest/src/com/phonegap  line 678    Java 
Problem"
Another:
"Description    Resource    Path    Location    Type
ContactsContract cannot be resolved to a 
variable    ContactAccessorSdk5.java    /PhonegapTest/src/com/phonegap  line 633    Java 
Problem"

Original comment by mser...@gmail.com on 8 Jan 2011 at 12:32

GoogleCodeExporter commented 8 years ago
It looks like you're using 1.5 or 1.6.  A few edits to the java files are 
needed.  I'll work on it in the next few days.

You should be error free if you choose at least a 2.1 target on the second 
wizard page.

Sorry about the issues and thanks for letting me know!

Original comment by paul.beu...@gmail.com on 8 Jan 2011 at 1:03

GoogleCodeExporter commented 8 years ago
Created issue 6 
http://code.google.com/a/eclipselabs.org/p/mobile-web-development-with-phonegap/
issues/detail?id=6 to track the 1.6 issue and workarounds

Original comment by paul.beu...@gmail.com on 8 Jan 2011 at 10:57

GoogleCodeExporter commented 8 years ago
Again you are right. I should read better the instructions. I set the target as 
2.1 and now the sample is working. And I tested also in a Samsung Galaxy Spica 
con Android 2.1 (Upgraded by me!)Great work Paul. Now I need to know how to 
program using Phonegap. Where can I get information? Thanks in advance.

Original comment by mser...@gmail.com on 8 Jan 2011 at 11:26

GoogleCodeExporter commented 8 years ago
I appreciate the feedback.  The docs can definitely be improved.

For getting rolling with phonegap, you should explore www.phonegap.com and 
check out the docs, presentations, code, etc.  Also, you could try to tweak the 
example program that came with the plugin.

Original comment by paul.beu...@gmail.com on 8 Jan 2011 at 11:51

GoogleCodeExporter commented 8 years ago
The next rev - 1.1.1 - will allow support both PhoneGap directory structures - 
from www.phonegap.com, as well as github

Original comment by paul.beu...@gmail.com on 10 Jan 2011 at 10:22