So I'm trying to port some cocos2d iOS apps over to Android and it looks like WiEngine is the most fully featured port of cocos2d to android ( http://www.wiyun.com/web/wiengine ), however I'm having issues getting the skeleton project to run. The latest problem I'm running into is I get a "Exception Ljava/lang/UnsatisfiedLinkError; thrown while initializing Lcom/wiyun/engine/skeleton/Skeleton" error in the ADB. I'm trying to run it in the emulator which also may be an issue. I'm kind of stuck because i need to see if I can get certain things to work (particle effects etc) before i can justify a hardware purchase.
Originally I tried to import the Skeleton project into eclipse but ran into too many errors so i created a blank android project with the same package name as the skeleton project and added the libraries to the build path through properties>libraries>add external Jars
the project compiles but it crashes as soon as it tries to initialize the Skeleton class here is the console stuff:
http://pastebin.com/XAc0XYiA
Appreciate any help on this.
Thanks,
Nick
You have to include JNI accessible precompiled libraries to you project. You can find them on the SDK archive.
For running your WiEngine Projects you have to add the WiEngine Library which is available when you download it from Github.
https://github.com/stubma/WiEngine
You can add library:
Right click on your Project-> Properties->Android->Library->Add WiEngine
Related
I have to integrate android opensource Dialer source code into my application and also need to do customizations on the same.
Currently I cloned the Dialer source code from https://android.googlesource.com/platform/packages/apps/Dialer/
It doesn't seems to be a gradle project. How can I build this project ?
I need to add this entire project as reusable module in my project. Could you please help me on this. How can I start with this ?
This Answer seems very informative https://stackoverflow.com/a/8668334/3020568 but I need to get some more help from guys those who tried to build this type of applications.
WE tried below steps.
Checked out source code from google source.
Tried to import the project in Android Studio.
It has dependencies outside the project which are not able to resolve. - Some classes and methods has no reference inside the source code.
Thanks in advance.
I know this is old but this is for future reference.
You cannot build the Dialer application without access to the rest of the source code. You need to first download the whole Android source (AOSP) and then build it because the Dialer application that comes with AOSP requires some framework files which is included in AOSP; hence the Dialer code may not actually work on all devices. Your best bet is using a tutorial to build a dialer application from scratch.
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
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.
I use IntelliJ IDEA 12, Play 2.2.0, I have Scala plugin installed, Play 2.0 support plugin installed.
I created java play application via termina (play new). Andas you can see in this pictures I always get this error: "cannot resolve method ok()" or "cannot resolve symbol at"
http://sluchatka.kvalitne.cz/pics/1.png
http://sluchatka.kvalitne.cz/pics/2.png
I searched the web for this problem the whole day, but I didn't find solution.
Can you please help me?
The first problem (unable to resolve reference to template) is because your template probably has not been compiled by the moment (and thus IDEA does not see compiled template and can't resolve reference to it).
I usually develop Play apps having ~run command launched in Play console. So that any changes to templates are immediately compiled and changes detected by IDEA.
As for the second one it seems like a deficiency in Play IDEA plugin. It does not work seamlessly within templates I should say. Lots of glitches. The best way I found is to have ~run launched so that small problems are detected immediately.
According to intelliJ support it is better to import the command line created play 2 project using the IDE import project wizard instead.
File -> Import Project
Select play2 project location
Import as SBT project
This was due to the "play idea" command being outdated or not fully compatible with the current play 2 and scala plugins for intelliJ.
A bonus is that errors start to appear properly, we had trouble with that earlier.
I was having a similar issue with Play 2.4.2 and Intellij 14.1.4. I could run the basic "play-java" example/starter app in Intellij, even though the editor showed errors like "cannot resolve method ok()".
Here's what solves the problem for me:
Before starting, make sure your project is not open in Intellij.
Delete the ".idea" folder from your existing app, OR just create a new app using "activator new".
On the command line, cd to the app's folder and compile using "activator compile".
In Intellij, File -> Open, and select your app's folder. For the SBT import options, I left the boxes unchecked (e.g. "Use auto-import", "Create directories for empty content roots automatically", etc.) but I don't think it matters.
Once everything finishes loading, you shouldn't see the errors any more.
This click in the Project Structure is your answer.
I am currently working on an android application that needs to use some shared classes which are also used on some serverside.
So on the one hand I have this standard java project inside eclipse where I have some POJOs, infercaes and so on. And on the other hand I have an android application project with an activity that should use those POJOs.
My first try to get the android project to know the java project was simply adding it as a "required project" in the build-path properties inside eclipse. That resulted into:
java.lang.NoClassDefFoundError: my.package.Pojo
I googled it and tried a lot, but still the question stands:
How do I set everything up properly, so that my ADT v21.1 android project will still know my java project, even at runtime?
Some things I already tried that did not seem to change anything:
after adding the "required project" I also set the dependency to be exported under eclipse "Order and Export" dialog
I tried building the java project as a jar-file and adding it as a jar-dependency to the android project
I created a android library project as 'glue': I added the java project as a dependency to the library project and the library project as a 'android dependency' to the android project
I checked that all projects where inside the filesystem in the same parent folder (read, that the underlying ant task might have some troubles otherwise)
I googled for a loooong time
Would really be nice if someone could help. Maybe I'm just missing some tiny little thind?
Bluddy
The Problem is that I build the java project using Java 7 which seems to by not supported by android. 'Phix' pointed that out in his very helpful posting (he was also andwering himself):
https://stackoverflow.com/a/13304441/1145459
(answer by Bluddymarri, I just posted it here to help him get it closed)