krishna1190 / droidar

Automatically exported from code.google.com/p/droidar
0 stars 0 forks source link

ModelLoaderAdapters assets #83

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install ModelLoaderAdapters from Eclipse
2. Select one of the models (e.g. Load knight.md2)
3.  The AR view starts - click the icon on top-left to cancel 
accuracy-detection - click on prompt to cancel accuracy-detection
4. Red screen with error log appears

-----------------------------------------------------------------------------
What is the expected output? What do you see instead?
Expected to see the model (robot, head etc.) - instead I see a red-screen with 
an error:

java.lang.NoClassDefFoundError: com.badlogic.gdx.backends.android.AndroidFiles
at de.rwth.GDXConnection.init(GDXConnection.java:234)
at de.rwth.ModelLoaderSetup.addObjectsTo(ModelLoaderSetup.java:76)
at 
system.DefaultARSetup.callAddObjectsToWorldIfNotCalledAlready(DefaultARSetup.jav
a:116)
at system.DefaultARSetup$1.minAccuracyReachedFirstTime(DefaultARSetup.java:104)
at 
actions.ActionWaitForAccuracy.callFirstTimeAccReachedIfNotYetCalled(ActionWaitFo
rAccuracy.java:106)
at actions.ActionWaitForAccuracy.access$4(ActionWaitForAccuracy.java:102)
at actions.ActionWaitForAccuracy$4.onClick(ActionWaitForAccuracy.java:200)
at android.view.View.performClick(View.java:4640)
at android.view.View$PerformClick.run(View.java:19425)
at android.os.Handler.handleCallback(Handler.java:733)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:146)
at android.app.ActivityThread.main(ActivityThread.java:5593)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1283)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1099)
at dalvik.system.NativeStart.main(Native Method)

-----------------------------------------------------------------------------

What version of the product are you using? On what operating system?

1. DroidAr and ModelLoaderAdapters versions downloaded here: 
https://github.com/bitstars/droidar.git
2. gdx: https://github.com/libgdx/libgdx
3. SGS4 Mini Android 4.4.2
4. Windows 7, Java 1.7 ADT Eclipse 

------------------------------------------------------------------------------
Please provide any additional information below.

Here is the error snippet, I think that happens when the GDXConnection object 
is trying to get the resources from the assets.
Class: GDXConnection.java
line 234: Gdx.files = new AndroidFiles(activity.getAssets());

I did what you commended in an ancient issue: "create an assets folder in the 
project folder (ModelLoaderAdapters\assets) and put the models (from gdx) in 
there"

I attached a picture of my project in order to observe any issue.
Beforehand, thenk you very much.

Original issue reported on code.google.com by dajup...@gmail.com on 15 Sep 2014 at 8:52

Attachments:

GoogleCodeExporter commented 9 years ago
I am also trying to do the exact same thing, and I encounter the same error. I 
also tried the resolution from the ancient issue and it did not fix the issue. 
Any resolution to this issue?

Original comment by afshin.h...@gmail.com on 23 Sep 2014 at 7:37