Project 'Demo-Realtime' is missing required Java project: 'p

Hi,
I meet a problem when I try to build the sample in Photon-Android_v6-0-0_SDK\Demo-Realtime:
Project 'Demo-Realtime' is missing required Java project: 'photon-android'
I use eclipse Helios. The android sdk is already configured. I added the photon-android.jar using Properties->Java build path->Libraries->Add external JARs. The compiler seems cannot find it. On the Projects tab of Java Build Path, it still says "photon-android (missing)". Can you give me a hint?
Thanks!

Comments

  • I deleted the missing item and it goes through. Hope this helps others.

    Now new problem occurs:
    Conversion to Dalvik format failed with error 1

    Here is the console output:
    [2011-03-05 04:06:57 - Demo-Realtime]: Dx
    UNEXPECTED TOP-LEVEL EXCEPTION:
    java.lang.IllegalArgumentException: already added: Lde/exitgames/client/photon/ConnectionListener;
    [2011-03-05 04:06:57 - Demo-Realtime]: Dx at com.android.dx.dex.file.ClassDefsSection.add(ClassDefsSection.java:123)
    [2011-03-05 04:06:57 - Demo-Realtime]: Dx at com.android.dx.dex.file.DexFile.add(DexFile.java:143)
    [2011-03-05 04:06:57 - Demo-Realtime]: Dx at com.android.dx.command.dexer.Main.processClass(Main.java:338)
    [2011-03-05 04:06:57 - Demo-Realtime]: Dx at com.android.dx.command.dexer.Main.processFileBytes(Main.java:315)
    [2011-03-05 04:06:57 - Demo-Realtime]: Dx at com.android.dx.command.dexer.Main.access$100(Main.java:56)
    [2011-03-05 04:06:57 - Demo-Realtime]: Dx at com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:266)
    [2011-03-05 04:06:57 - Demo-Realtime]: Dx at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:244)
    [2011-03-05 04:06:57 - Demo-Realtime]: Dx at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:130)
    [2011-03-05 04:06:57 - Demo-Realtime]: Dx at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:108)
    [2011-03-05 04:06:57 - Demo-Realtime]: Dx at com.android.dx.command.dexer.Main.processOne(Main.java:284)
    [2011-03-05 04:06:57 - Demo-Realtime]: Dx at com.android.dx.command.dexer.Main.processAllFiles(Main.java:220)
    [2011-03-05 04:06:57 - Demo-Realtime]: Dx at com.android.dx.command.dexer.Main.run(Main.java:176)
    [2011-03-05 04:06:57 - Demo-Realtime]: Dx at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [2011-03-05 04:06:57 - Demo-Realtime]: Dx at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    [2011-03-05 04:06:57 - Demo-Realtime]: Dx at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    [2011-03-05 04:06:57 - Demo-Realtime]: Dx at java.lang.reflect.Method.invoke(Unknown Source)
    [2011-03-05 04:06:57 - Demo-Realtime]: Dx at com.android.ide.eclipse.adt.internal.build.DexWrapper.run(Unknown Source)
    [2011-03-05 04:06:57 - Demo-Realtime]: Dx at com.android.ide.eclipse.adt.internal.build.BuildHelper.executeDx(Unknown Source)
    [2011-03-05 04:06:57 - Demo-Realtime]: Dx at com.android.ide.eclipse.adt.internal.build.builders.PostCompilerBuilder.build(Unknown Source)
    [2011-03-05 04:06:57 - Demo-Realtime]: Dx at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:629)
    [2011-03-05 04:06:57 - Demo-Realtime]: Dx at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    [2011-03-05 04:06:57 - Demo-Realtime]: Dx at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:172)
    [2011-03-05 04:06:57 - Demo-Realtime]: Dx at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:203)
    [2011-03-05 04:06:57 - Demo-Realtime]: Dx at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:255)
    [2011-03-05 04:06:57 - Demo-Realtime]: Dx at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    [2011-03-05 04:06:57 - Demo-Realtime]: Dx at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:258)
    [2011-03-05 04:06:57 - Demo-Realtime]: Dx at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:311)
    [2011-03-05 04:06:57 - Demo-Realtime]: Dx at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:343)
    [2011-03-05 04:06:57 - Demo-Realtime]: Dx at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:144)
    [2011-03-05 04:06:57 - Demo-Realtime]: Dx at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:242)
    [2011-03-05 04:06:57 - Demo-Realtime]: Dx at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
    [2011-03-05 04:06:57 - Demo-Realtime]: Dx1 error; aborting
    [2011-03-05 04:06:57 - Demo-Realtime] Conversion to Dalvik format failed with error 1



    I'm using android sdk 1.6.
    s.jpg 19.5K
  • This has been solved. I accidently copied another photon-android.jar into the src directory. After deleting this file, it goes through.
Sign In or Register to comment.