Save
Saving
  • D
    dhemitus

    it's fixed now. everything works perfectly.

    thank you

    posted in Kode read more
  • D
    dhemitus

    hai,
    I got an error when I started to clone the repo:

    error: Server does not allow request for unadvertised object 4e3caeca43c77304ecf8a454865d3a2dbeebeb12

    Fetched in submodule path 'Tools/haxe', but it did not contain 4e3caeca43c77304ecf8a454865d3a2dbeebeb12. Direct fetching of that commit failed.

    what should I do then?

    thank you

    posted in Kode read more
  • D
    dhemitus

    after i update Kha came up error message like this when i compile my script:
    "Error: khafile.js did not call resolve, no project created."

    what happend?

    posted in Kode read more
  • D
    dhemitus

    thank you robert. everything work perfectly.

    posted in Kode read more
  • D
    dhemitus

    hai robert. i already update my android studio and try to compile regular android apps. and success. then i try to comple empty project from kha. no error message but shows screen like this screenshoot.

    posted in Kode read more
  • D
    dhemitus

    i compile an empty project in android. after i run it in android studio, its came error like this bellow. did i missing something in my configuration?
    thank you

    05-21 16:50:48.469 1199-1199/com.ktxsoftware.kha E/dalvikvm: Could not find class 'android.util.ArrayMap', referenced from method com.android.tools.fd.runtime.MonkeyPatcher.monkeyPatchExistingResources
    05-21 16:50:48.469 1199-1199/com.ktxsoftware.kha W/dalvikvm: VFY: unable to resolve check-cast 87 (Landroid/util/ArrayMap;) in Lcom/android/tools/fd/runtime/MonkeyPatcher;
    05-21 16:50:48.469 1199-1199/com.ktxsoftware.kha D/dalvikvm: VFY: replacing opcode 0x1f at 0x0258
    05-21 16:50:48.469 1199-1199/com.ktxsoftware.kha E/dalvikvm: Could not find class 'android.util.ArrayMap', referenced from method com.android.tools.fd.runtime.MonkeyPatcher.pruneResourceCache
    05-21 16:50:48.469 1199-1199/com.ktxsoftware.kha W/dalvikvm: VFY: unable to resolve const-class 87 (Landroid/util/ArrayMap;) in Lcom/android/tools/fd/runtime/MonkeyPatcher;
    05-21 16:50:48.469 1199-1199/com.ktxsoftware.kha D/dalvikvm: VFY: replacing opcode 0x1c at 0x0058
    05-21 16:50:48.473 1199-1199/com.ktxsoftware.kha I/dalvikvm: Could not find method android.content.Context.getSystemService, referenced from method com.ktxsoftware.kha.KhaActivity.access$super
    05-21 16:50:48.473 1199-1199/com.ktxsoftware.kha W/dalvikvm: VFY: unable to resolve virtual method 274: Landroid/content/Context;.getSystemService (Ljava/lang/Class;)Ljava/lang/Object;
    05-21 16:50:48.473 1199-1199/com.ktxsoftware.kha D/dalvikvm: VFY: replacing opcode 0x6f at 0x004b
    05-21 16:50:48.473 1199-1199/com.ktxsoftware.kha I/dalvikvm: Could not find method android.app.Activity.stopLockTask, referenced from method com.ktxsoftware.kha.KhaActivity.access$super
    05-21 16:50:48.473 1199-1199/com.ktxsoftware.kha W/dalvikvm: VFY: unable to resolve virtual method 254: Landroid/app/Activity;.stopLockTask ()V
    05-21 16:50:48.473 1199-1199/com.ktxsoftware.kha D/dalvikvm: VFY: replacing opcode 0x6f at 0x00b9
    05-21 16:50:48.473 1199-1199/com.ktxsoftware.kha E/dalvikvm: Could not find class 'android.os.PersistableBundle', referenced from method com.ktxsoftware.kha.KhaActivity.access$super
    05-21 16:50:48.473 1199-1199/com.ktxsoftware.kha W/dalvikvm: VFY: unable to resolve check-cast 82 (Landroid/os/PersistableBundle;) in Lcom/ktxsoftware/kha/KhaActivity;
    05-21 16:50:48.473 1199-1199/com.ktxsoftware.kha D/dalvikvm: VFY: replacing opcode 0x1f at 0x00f1
    05-21 16:50:48.473 1199-1199/com.ktxsoftware.kha I/dalvikvm: Could not find method android.content.Context.getColorStateList, referenced from method com.ktxsoftware.kha.KhaActivity.access$super
    05-21 16:50:48.473 1199-1199/com.ktxsoftware.kha W/dalvikvm: VFY: unable to resolve virtual method 270: Landroid/content/Context;.getColorStateList (I)Landroid/content/res/ColorStateList;
    05-21 16:50:48.473 1199-1199/com.ktxsoftware.kha D/dalvikvm: VFY: replacing opcode 0x6f at 0x0101
    05-21 16:50:48.473 1199-1199/com.ktxsoftware.kha I/dalvikvm: Could not find method android.app.Activity.onVisibleBehindCanceled, referenced from method com.ktxsoftware.kha.KhaActivity.access$super
    05-21 16:50:48.473 1199-1199/com.ktxsoftware.kha W/dalvikvm: VFY: unable to resolve virtual method 174: Landroid/app/Activity;.onVisibleBehindCanceled ()V
    05-21 16:50:48.473 1199-1199/com.ktxsoftware.kha D/dalvikvm: VFY: replacing opcode 0x6f at 0x0111
    05-21 16:50:48.473 1199-1199/com.ktxsoftware.kha I/dalvikvm: Could not find method android.app.Activity.onWindowStartingActionMode, referenced from method com.ktxsoftware.kha.KhaActivity.access$super
    05-21 16:50:48.473 1199-1199/com.ktxsoftware.kha W/dalvikvm: VFY: unable to resolve virtual method 178: Landroid/app/Activity;.onWindowStartingActionMode (Landroid/view/ActionMode$Callback;I)Landroid/view/ActionMode;
    05-21 16:50:48.473 1199-1199/com.ktxsoftware.kha D/dalvikvm: VFY: replacing opcode 0x6f at 0x0137
    05-21 16:50:48.473 1199-1199/com.ktxsoftware.kha E/dalvikvm: Could not find class 'android.os.PersistableBundle', referenced from method com.ktxsoftware.kha.KhaActivity.access$super
    05-21 16:50:48.473 1199-1199/com.ktxsoftware.kha W/dalvikvm: VFY: unable to resolve check-cast 82 (Landroid/os/PersistableBundle;) in Lcom/ktxsoftware/kha/KhaActivity;
    05-21 16:50:48.473 1199-1199/com.ktxsoftware.kha D/dalvikvm: VFY: replacing opcode 0x1f at 0x019a
    05-21 16:50:48.473 1199-1199/com.ktxsoftware.kha E/dalvikvm: Could not find class 'android.media.session.MediaController', referenced from method com.ktxsoftware.kha.KhaActivity.access$super
    05-21 16:50:48.473 1199-1199/com.ktxsoftware.kha W/dalvikvm: VFY: unable to resolve check-cast 62 (Landroid/media/session/MediaController;) in Lcom/ktxsoftware/kha/KhaActivity;
    05-21 16:50:48.473 1199-1199/com.ktxsoftware.kha D/dalvikvm: VFY: replacing opcode 0x1f at 0x01b2
    05-21 16:50:48.473 1199-1199/com.ktxsoftware.kha E/dalvikvm: Could not find class 'android.widget.Toolbar', referenced from method com.ktxsoftware.kha.KhaActivity.access$super
    05-21 16:50:48.473 1199-1199/com.ktxsoftware.kha W/dalvikvm: VFY: unable to resolve check-cast 150 (Landroid/widget/Toolbar;) in Lcom/ktxsoftware/kha/KhaActivity;
    05-21 16:50:48.473 1199-1199/com.ktxsoftware.kha D/dalvikvm: VFY: replacing opcode 0x1f at 0x01bc
    05-21 16:50:48.473 1199-1199/com.ktxsoftware.kha I/dalvikvm: Could not find method android.app.Activity.onStateNotSaved, referenced from method com.ktxsoftware.kha.KhaActivity.access$super
    05-21 16:50:48.473 1199-1199/com.ktxsoftware.kha W/dalvikvm: VFY: unable to resolve virtual method 166: Landroid/app/Activity;.onStateNotSaved ()V
    05-21 16:50:48.473 1199-1199/com.ktxsoftware.kha D/dalvikvm: VFY: replacing opcode 0x6f at 0x01c4
    05-21 16:50:48.473 1199-1199/com.ktxsoftware.kha I/dalvikvm: Could not find method android.app.Activity.releaseInstance, referenced from method com.ktxsoftware.kha.KhaActivity.access$super
    05-21 16:50:48.473 1199-1199/com.ktxsoftware.kha W/dalvikvm: VFY: unable to resolve virtual method 185: Landroid/app/Activity;.releaseInstance ()Z
    05-21 16:50:48.473 1199-1199/com.ktxsoftware.kha D/dalvikvm: VFY: replacing opcode 0x6f at 0x02bf
    05-21 16:50:48.473 1199-1199/com.ktxsoftware.kha I/dalvikvm: Could not find method android.app.Activity.onActivityReenter, referenced from method com.ktxsoftware.kha.KhaActivity.access$super
    05-21 16:50:48.473 1199-1199/com.ktxsoftware.kha W/dalvikvm: VFY: unable to resolve virtual method 101: Landroid/app/Activity;.onActivityReenter (ILandroid/content/Intent;)V
    05-21 16:50:48.473 1199-1199/com.ktxsoftware.kha D/dalvikvm: VFY: replacing opcode 0x6f at 0x02d6
    05-21 16:50:48.473 1199-1199/com.ktxsoftware.kha I/dalvikvm: Could not find method android.content.ContextWrapper.getCodeCacheDir, referenced from method com.ktxsoftware.kha.KhaActivity.access$super
    05-21 16:50:48.473 1199-1199/com.ktxsoftware.kha W/dalvikvm: VFY: unable to resolve virtual method 313: Landroid/content/ContextWrapper;.getCodeCacheDir ()Ljava/io/File;
    05-21 16:50:48.473 1199-1199/com.ktxsoftware.kha D/dalvikvm: VFY: replacing opcode 0x6f at 0x032b
    05-21 16:50:48.477 1199-1199/com.ktxsoftware.kha I/dalvikvm: Could not find method android.app.Activity.getVoiceInteractor, referenced from method com.ktxsoftware.kha.KhaActivity.access$super
    05-21 16:50:48.477 1199-1199/com.ktxsoftware.kha W/dalvikvm: VFY: unable to resolve virtual method 81: Landroid/app/Activity;.getVoiceInteractor ()Landroid/app/VoiceInteractor;
    05-21 16:50:48.477 1199-1199/com.ktxsoftware.kha D/dalvikvm: VFY: replacing opcode 0x6f at 0x044c
    05-21 16:50:48.477 1199-1199/com.ktxsoftware.kha E/dalvikvm: Could not find class 'android.app.ActivityManager$TaskDescription', referenced from method com.ktxsoftware.kha.KhaActivity.access$super
    05-21 16:50:48.477 1199-1199/com.ktxsoftware.kha W/dalvikvm: VFY: unable to resolve check-cast 12 (Landroid/app/ActivityManager$TaskDescription;) in Lcom/ktxsoftware/kha/KhaActivity;
    05-21 16:50:48.477 1199-1199/com.ktxsoftware.kha D/dalvikvm: VFY: replacing opcode 0x1f at 0x050d
    05-21 16:50:48.477 1199-1199/com.ktxsoftware.kha I/dalvikvm: Could not find method android.app.Activity.startActionMode, referenced from method com.ktxsoftware.kha.KhaActivity.access$super
    05-21 16:50:48.477 1199-1199/com.ktxsoftware.kha W/dalvikvm: VFY: unable to resolve virtual method 229: Landroid/app/Activity;.startActionMode (Landroid/view/ActionMode$Callback;I)Landroid/view/ActionMode;
    05-21 16:50:48.477 1199-1199/com.ktxsoftware.kha D/dalvikvm: VFY: replacing opcode 0x6f at 0x0548
    05-21 16:50:48.477 1199-1199/com.ktxsoftware.kha I/dalvikvm: Could not find method android.app.Activity.showAssist, referenced from method com.ktxsoftware.kha.KhaActivity.access$super
    05-21 16:50:48.477 1199-1199/com.ktxsoftware.kha W/dalvikvm: VFY: unable to resolve virtual method 224: Landroid/app/Activity;.showAssist (Landroid/os/Bundle;)Z
    05-21 16:50:48.477 1199-1199/com.ktxsoftware.kha D/dalvikvm: VFY: replacing opcode 0x6f at 0x058a
    05-21 16:50:48.477 1199-1199/com.ktxsoftware.kha I/dalvikvm: Could not find method android.app.Activity.postponeEnterTransition, referenced from method com.ktxsoftware.kha.KhaActivity.access$super
    05-21 16:50:48.477 1199-1199/com.ktxsoftware.kha W/dalvikvm: VFY: unable to resolve virtual method 182: Landroid/app/Activity;.postponeEnterTransition ()V
    05-21 16:50:48.477 1199-1199/com.ktxsoftware.kha D/dalvikvm: VFY: replacing opcode 0x6f at 0x0595
    05-21 16:50:48.477 1199-1199/com.ktxsoftware.kha I/dalvikvm: Could not find method android.content.ContextWrapper.getNoBackupFilesDir, referenced from method com.ktxsoftware.kha.KhaActivity.access$super
    05-21 16:50:48.477 1199-1199/com.ktxsoftware.kha W/dalvikvm: VFY: unable to resolve virtual method 325: Landroid/content/ContextWrapper;.getNoBackupFilesDir ()Ljava/io/File;
    05-21 16:50:48.477 1199-1199/com.ktxsoftware.kha D/dalvikvm: VFY: replacing opcode 0x6f at 0x05fc
    05-21 16:50:48.477 1199-1199/com.ktxsoftware.kha I/dalvikvm: Could not find method android.app.Activity.requestPermissions, referenced from method com.ktxsoftware.kha.KhaActivity.access$super
    05-21 16:50:48.477 1199-1199/com.ktxsoftware.kha W/dalvikvm: VFY: unable to resolve virtual method 188: Landroid/app/Activity;.requestPermissions ([Ljava/lang/String;I)V
    05-21 16:50:48.477 1199-1199/com.ktxsoftware.kha D/dalvikvm: VFY: replacing opcode 0x6f at 0x06ee
    05-21 16:50:48.477 1199-1199/com.ktxsoftware.kha E/dalvikvm: Could not find class 'android.app.SharedElementCallback', referenced from method com.ktxsoftware.kha.KhaActivity.access$super
    05-21 16:50:48.477 1199-1199/com.ktxsoftware.kha W/dalvikvm: VFY: unable to resolve check-cast 21 (Landroid/app/SharedElementCallback;) in Lcom/ktxsoftware/kha/KhaActivity;
    05-21 16:50:48.477 1199-1199/com.ktxsoftware.kha D/dalvikvm: VFY: replacing opcode 0x1f at 0x0708
    05-21 16:50:48.477 1199-1199/com.ktxsoftware.kha E/dalvikvm: Could not find class 'android.os.PersistableBundle', referenced from method com.ktxsoftware.kha.KhaActivity.access$super
    05-21 16:50:48.477 1199-1199/com.ktxsoftware.kha W/dalvikvm: VFY: unable to resolve check-cast 82 (Landroid/os/PersistableBundle;) in Lcom/ktxsoftware/kha/KhaActivity;
    05-21 16:50:48.477 1199-1199/com.ktxsoftware.kha D/dalvikvm: VFY: replacing opcode 0x1f at 0x074f
    05-21 16:50:48.481 1199-1199/com.ktxsoftware.kha I/dalvikvm: Could not find method android.content.ContextWrapper.getExternalFilesDirs, referenced from method com.ktxsoftware.kha.KhaActivity.access$super
    05-21 16:50:48.481 1199-1199/com.ktxsoftware.kha W/dalvikvm: VFY: unable to resolve virtual method 320: Landroid/content/ContextWrapper;.getExternalFilesDirs (Ljava/lang/String;)[Ljava/io/File;
    05-21 16:50:48.481 1199-1199/com.ktxsoftware.kha D/dalvikvm: VFY: replacing opcode 0x6f at 0x07df
    05-21 16:50:48.481 1199-1199/com.ktxsoftware.kha E/dalvikvm: Could not find class 'android.transition.TransitionManager', referenced from method com.ktxsoftware.kha.KhaActivity.access$super
    05-21 16:50:48.481 1199-1199/com.ktxsoftware.kha W/dalvikvm: VFY: unable to resolve check-cast 86 (Landroid/transition/TransitionManager;) in Lcom/ktxsoftware/kha/KhaActivity;
    05-21 16:50:48.481 1199-1199/com.ktxsoftware.kha D/dalvikvm: VFY: replacing opcode 0x1f at 0x0895
    05-21 16:50:48.481 1199-1199/com.ktxsoftware.kha I/dalvikvm: Could not find method android.app.Activity.onProvideReferrer, referenced from method com.ktxsoftware.kha.KhaActivity.access$super
    05-21 16:50:48.481 1199-1199/com.ktxsoftware.kha W/dalvikvm: VFY: unable to resolve virtual method 154: Landroid/app/Activity;.onProvideReferrer ()Landroid/net/Uri;
    05-21 16:50:48.481 1199-1199/com.ktxsoftware.kha D/dalvikvm: VFY: replacing opcode 0x6f at 0x08c7
    05-21 16:50:48.481 1199-1199/com.ktxsoftware.kha I/dalvikvm: Could not find method android.content.Context.getDrawable, referenced from method com.ktxsoftware.kha.KhaActivity.access$super
    05-21 16:50:48.481 1199-1199/com.ktxsoftware.kha W/dalvikvm: VFY: unable to resolve virtual method 271: Landroid/content/Context;.getDrawable (I)Landroid/graphics/drawable/Drawable;
    05-21 16:50:48.481 1199-1199/com.ktxsoftware.kha D/dalvikvm: VFY: replacing opcode 0x6f at 0x0920
    05-21 16:50:48.481 1199-1199/com.ktxsoftware.kha I/dalvikvm: Could not find method android.app.Activity.showLockTaskEscapeMessage, referenced from method com.ktxsoftware.kha.KhaActivity.access$super
    05-21 16:50:48.481 1199-1199/com.ktxsoftware.kha W/dalvikvm: VFY: unable to resolve virtual method 227: Landroid/app/Activity;.showLockTaskEscapeMessage ()V
    05-21 16:50:48.481 1199-1199/com.ktxsoftware.kha D/dalvikvm: VFY: replacing opcode 0x6f at 0x0930
    05-21 16:50:48.481 1199-1199/com.ktxsoftware.kha I/dalvikvm: Could not find method android.app.Activity.getContentTransitionManager, referenced from method com.ktxsoftware.kha.KhaActivity.access$super
    05-21 16:50:48.481 1199-1199/com.ktxsoftware.kha W/dalvikvm: VFY: unable to resolve virtual method 59: Landroid/app/Activity;.getContentTransitionManager ()Landroid/transition/TransitionManager;
    05-21 16:50:48.481 1199-1199/com.ktxsoftware.kha D/dalvikvm: VFY: replacing opcode 0x6f at 0x0936
    05-21 16:50:48.481 1199-1199/com.ktxsoftware.kha E/dalvikvm: Could not find class 'android.app.SharedElementCallback', referenced from method com.ktxsoftware.kha.KhaActivity.access$super
    05-21 16:50:48.481 1199-1199/com.ktxsoftware.kha W/dalvikvm: VFY: unable to resolve check-cast 21 (Landroid/app/SharedElementCallback;) in Lcom/ktxsoftware/kha/KhaActivity;
    05-21 16:50:48.481 1199-1199/com.ktxsoftware.kha D/dalvikvm: VFY: replacing opcode 0x1f at 0x09f2
    05-21 16:50:48.481 1199-1199/com.ktxsoftware.kha I/dalvikvm: Could not find method android.app.Activity.getReferrer, referenced from method com.ktxsoftware.kha.KhaActivity.access$super
    05-21 16:50:48.481 1199-1199/com.ktxsoftware.kha W/dalvikvm: VFY: unable to resolve virtual method 72: Landroid/app/Activity;.getReferrer ()Landroid/net/Uri;
    05-21 16:50:48.481 1199-1199/com.ktxsoftware.kha D/dalvikvm: VFY: replacing opcode 0x6f at 0x0a4e
    05-21 16:50:48.481 1199-1199/com.ktxsoftware.kha I/dalvikvm: Could not find method android.content.ContextWrapper.getSystemServiceName, referenced from method com.ktxsoftware.kha.KhaActivity.access$super
    05-21 16:50:48.481 1199-1199/com.ktxsoftware.kha W/dalvikvm: VFY: unable to resolve virtual method 333: Landroid/content/ContextWrapper;.getSystemServiceName (Ljava/lang/Class;)Ljava/lang/String;

                                                             [ 05-21 16:50:48.485   397:  412 D/         ]
                                                             HostConnection::get() New Host Connection established 0xb967d418, tid 412
    

    05-21 16:50:48.485 1199-1199/com.ktxsoftware.kha D/dalvikvm: VFY: replacing opcode 0x6f at 0x0ac5
    05-21 16:50:48.485 1199-1199/com.ktxsoftware.kha I/dalvikvm: Could not find method android.app.Activity.isVoiceInteractionRoot, referenced from method com.ktxsoftware.kha.KhaActivity.access$super
    05-21 16:50:48.485 1199-1199/com.ktxsoftware.kha W/dalvikvm: VFY: unable to resolve virtual method 94: Landroid/app/Activity;.isVoiceInteractionRoot ()Z
    05-21 16:50:48.485 1199-1199/com.ktxsoftware.kha D/dalvikvm: VFY: replacing opcode 0x6f at 0x0ae7

    posted in Kode read more
  • D
    dhemitus

    actually I rewrite justin hamilton kha shmup tutorial and all assets files I download from his github. i'm succeed compile it into flash, html5 and osx --run.

    posted in Kode read more
  • D
    dhemitus

    hey robert,
    i'm succeed compile into apk with android studio but after i run it on emulator, came up error like this:

    04-11 09:35:53.569 1214-1226/com.ktxsoftware.kha E/AndroidRuntime: FATAL EXCEPTION: GLThread 95
    java.lang.NullPointerException
    at haxe.io.BytesInput.__hx_ctor_haxe_io_BytesInput(BytesInput.java:36)
    at haxe.io.BytesInput.<init>(BytesInput.java:19)
    at kha.audio2.ogg.vorbis.Reader.readAll(Reader.java:74)
    at kha.Sound.uncompress(Sound.java:49)
    at kha.Assets_loadEverything_101__Fun.__hx_invoke0_o(Assets_loadEverything_101__Fun.java:27)
    at kha.SoundList_bulletShootLoad_129__Fun.__hx_invoke1_o(SoundList_bulletShootLoad_129__Fun.java:23)
    at kha.Assets_loadSound_175__Fun.__hx_invoke1_o(Assets_loadSound_175__Fun.java:27)
    at kha.LoaderImpl.loadSoundFromDescription(LoaderImpl.java:71)
    at kha.Assets.loadSound(Assets.java:356)
    at kha.SoundList.bulletShootLoad(SoundList.java:67)
    at kha.SoundList.__hx_invokeField(SoundList.java:773)
    at haxe.lang.Runtime.callField(Runtime.java:521)
    at haxe.lang.Closure.__hx_invokeDynamic(Closure.java:27)
    at haxe.lang.VarArgsBase.__hx_invoke1_o(VarArgsBase.java:96)
    at kha.Assets.loadEverything(Assets.java:248)
    at haxe.root.Main_main_10__Fun.__hx_invoke0_o(Main_main_10__Fun.java:21)
    at kha.SystemImpl.init(SystemImpl.java:197)
    at kha.System.init(System.java:85)
    at haxe.root.Main.main(Main.java:34)
    at kha.SystemImpl.preinit(SystemImpl.java:312)
    at com.ktxsoftware.kha.KhaRenderer.onSurfaceCreated(KhaRenderer.java:59)
    at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1494)
    at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1240)

    posted in Kode read more
  • D
    dhemitus

    thanks robert, that's really help me

    posted in Kode read more