how to use crosswalk project in eclipse plugin - java

i am facing much difficulty using crosswalk project with eclipse , is there any plugin for eclipse .
gone through their documentation which seems too complicated:
https://crosswalk-project.org/documentation/getting_started/windows_host_setup.html#Install-Ant
has anyone idea how to integrate and use it with eclipse
anyway i found one plugin for eclipse at :
https://github.com/crosswalk-project/crosswalk-developer-tools-eclipse-plugin
i followed below link:
https://github.com/crosswalk-project/crosswalk-developer-tools-eclipse-plugin
to create cross walk hello world project fro android .
now it creates blank project
facedetection
--index.html
--manifest.json
there are no java file and other .
how can i run this project ??.

If you have Eclipse and Android SDK already, you can install Crosswalk-Eclipse-plugin into your Eclipse. It supports to create an empty Crosswalk Application and to package it. More details refer to the link.

The project is a HTML5 applications. You just need to edit these two files. Please refer to https://crosswalk-project.org/documentation/getting_started/build_an_application.html.
After you edit your code. You can generate the android apk as follow:
Export Crosswalk Application
1.In Eclipse menu: Select "File->Export"
2.Select "Crosswalk/Export Crosswalk App" then click next
3.Input the required information then click "Finish" button
The you can install the apk to your device.

Related

After creating android project in Eclipse ADT, tons of errors show up

I'm using eclipse ADT (most recent version) to develop some android apps. I've followed the getting started tutorial at the dev.android.com and it worked just fine.
But when i tried to create another project with the same targets and sdk's, i've got nothing but errors:
Some errors and my sdk's:
That's the same sdk's i used before these errors started showing up.
What can be causing this?
EDIT: my project won't generate the R.java file
You might need to add a support library to your new project.
Check this link for downloading the support libraries -
http://developer.android.com/tools/support-library/setup.html#download
Please notice that you need to import them into your eclipse and then include one (preferably the newest, not sure about this) in your project.
EDIT:
Before downloading the support libraries you should first check if you have them already.
Try this, right click project folder in the eclipse package explorer, Properties>Android>Library>Add>select a library if you have one.
There might be an invalid library included in your project already, if that happens then you will see it in the Library>Add> menu, remove it and add a new one.
You might have clean your project ........
if yes.....you must check whether R.java file is present in **Project(your project)->gen->package name->R.java**
if not than u have to update Tool Folder in SDK manager

package unavilable shared library failing android

Hi I am trying to use a external project i got from github(AccordionWidgetDemoActivity) as library in my application. I made the project as library in eclipse adt and addeed the same library in my application. I have also added the application in the project buildpath. however I am getting the following errror when i try to launch the application
*[2014-03-15 05:19:35 - Sample] Installation error: INSTALL_FAILED_MISSING_SHARED_LIBRARY [2014-03-15 05:19:35 - Sample]
Please check logcat output for more details. [2014-03-15 05:19:35 -
Sample] Launch canceled!*
In Log cat I am getting the following errro
**
*> Package com.example.sample requires unavailable shared library
com.sentaca.android.accordion; failing!*
**
I have added the library in android manifest as follows as package name in src folder in the library project
i have googled around and everythhing refers to google maps. I am a beginner in android and Request help
Thanks in advance
Be sure that you are including the library as part of the project, to do this go to properties->Android at the bottom you should see the library reference, if it is not there just click on add and select the library.
Also, go to properties->Java Build Path->Order and Export and check the library otherwise the it won't be uploaded to the device-emulator.
Hope this helps.

Project could not Start

When i create new project using Eclipse and its placed after my other created project its not start display error. and if its placed on start its start normally. see the image.
**
I ask because I am not very familiar with Java and am currently converting some Java code to C# code and this one is giving me some trouble. I tried to restart Eclipse and computer. Thanks in advance.
**
Follow this steps
right clcik on your project
go to properties
go to java build path
go to libraries tab
remove all the lib files from there (android dependency and android privet libraries) except android version lib
click ok
clean and build your project
run now
Check your android:targetSdkVersion in AndroidManifest.xml matches
target=android-<value> in project.properties
If these two values are not equal, set your build tools version 19.0.0 will solved the BufferOverflowException
Added this Line in your android "project.properties" file
sdk.buildtools=18.1.1
Thanks

Android SDK Eclipse AndroidManifest.xml not created

I've downloaded the ADT Kit from the Android Developer Website, but if I try to create a new Project (New-> Android Application Project), the Manifest file is not created. In the console window, I get the message:
'[2013-12-13 15:50:08 - package name] AndroidManifest.xml file missing!'
How can I solve the problem?
I already tried to clean the Project and run again, but the xml file isn't created. I tried also to uninstall (delete) the SDK and download it again, but there is the same mistake.
I found the solution:
First, I Updated my SDK, but it wasnt the problem. The problem was the character 'ö' in the project / package name. Eclipse didn't create the Manifest because of him.
It's a German App...
To fix this problem, right click the project or edited resource and select “Refresh”.
If you edit outside of Eclipse a lot, you can enable auto-refresh by going to Window->Preferences menu, then in the Preferences dialog box, select General > Workspace.
Check the “Refresh automatically” box.
and even in the eclipse in the top menu bar you can find search-->check the automatically build

Android Eclipse Classpath - want to add classpath container path but eclipse won't let me

I'm using Eclipse to learn to develop Android applications in Java. I haven't used Eclipse before.
The project I'm trying to use (supplied by OReilly as part of 'Android Application Development') is MJAndroid. When attempting to run the project, the Run fails, and the Problems tab mentions com.java.Object can't be found, and Eclipse asks me to check the build path. Clicking
Properties -> Java Build Path -> Libraries, the message 'Unable to get system library for the project' is displayed.
On a working project, Properties -> Java Build Path -> Libraries has an entry for Android 1.1, which if I click Edit, has the classpath container path of com.android.ide.eclipse.adt.ANDROID_FRAMEWORK.
It seems a simple matter of adding the correct container path to my non-working project. However Eclipse seems determined to make this as difficult as possible. No matter what I chose to add - jars, externals jars, variables, libraries, class folders, external class folders, nothing seems to take the form of 'com.android.ide.eclipse.adt.ANDROID_FRAMEWORK' that the 'Android 1.1' entry on the working app has.
How can I add this namespace to my project so it resembles the working one?
I'm quite sure it's a problem with Eclipse's somewhat odd user interface. Frankly there' nothing I'd prefer more than a file to modify and set such information - my background is in Python, and the whole eclipse environment seems an unnecessary burden.
I had faced the same issue when I imported a sample code downloaded from the internet. I am using android sdk 1.5 with 0.9 ADT plugins. Here is a simpler way to fix the andoid library reference issues
Right click on the project which has
issues and select properties
Select the appropriate Android build
(1.1, 1.5 or 1.5 with google api) and
say ok
Again right click on the project and
select "Android Tools > Fix Project
Properties"
Fix the imports once (if required)
Refresh the project and you should be
ready to go without any manual
editing
I faced this same problem after importing a project through GIT. The problem was that I didn't have the same target android platform installed, and the build path somehow got corrupted.
The first obvious thing i did was changing the target sdk in the project.properties, but even after cleaning up the project and Android Tools > Fix Project Properties, it didn't help and I was still getting the build error.
My solution after wasting close to 1 hour trying to figure this out?
RESTART ECLIPSE
Everything worked fine after that. Eclipse is pretty fickle. Only through years of experience you'll then understand her well. :)
Had the same problem and it turns out the Android SDK Location was not set which was a really simple fix. Go to Window->Preferences, click on 'Android' on the left hand menu, fill in the location of the Android SDK (e.g. C:\Program Files\Android\android-sdk) and click OK. Everything worked fine for me after that.
Found the answer in this set up guide: http://developer.motorola.com/docstools/library/Installing-Android-Dev-Environment/
Sometimes Eclipse can get a bit funny (technical term) with classpath container resolution.
You have a working project in your workspace, so you can rule out plugin installation issues. You could try opening the .classpath file (hidden by default, select the triangle in the top-right of the Package Explorer view, select Filters... and uncheck .* resources) and manually adding the container declaration.
`<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>`
You may then have to close the project and open it again (right-click->Close Project) before Eclipse recognises the change.
You may also find that there is an Android builder and/or nature. If you compare the .project files for the working and non-working versions you may see entries for Android builders/natures. Copying the relevant entries may resolve the issue.
sometimes, eclipse can help you.
In Android projects, click right button on the project-> Android Tools -> Fix Project Properties.
It's usefull in class path errors!!
Luck!
I would verify you have the correct version of Java installed as well as the Android SDK. I would recommend installing/reinstalling the ADT plugin in your eclipse, makes it alot easier to create the android project.
http://developer.android.com/sdk/1.5_r2/installing.html
Also. I guess the path of the Android SDK must be setup correctly. This happened when I was overloaded with projects and I decided to create a new workspace copying some existing stuff into it.
Seems that the new workspace requires you to setup these details too once again
Is that setup properly?

Categories

Resources