libgdx / gdx-pay

A libGDX cross-platform API for InApp purchasing.
Apache License 2.0
225 stars 82 forks source link

java.lang.NoClassDefFoundError #2

Closed just4phil closed 9 years ago

just4phil commented 9 years ago

@noblemaster i added the gdx-pay projects to my game and added them to the build-paths but i always get java.lang.NoClassDefFoundError: com.badlogic.gdx.pay.android.ouya.PurchaseManagerAndroidOUYA (and for the androidIAB too) what can be the reason? (does all that reflection code work properly?)

just4phil commented 9 years ago

no it doesnt fail! the manager is simply null

just4phil commented 9 years ago

i had to disable export of "Android private libraries" because i always had the error "dalvik format conversion failed" but android test works fine!

noblemaster commented 9 years ago

Yes it won't fail, but there is still some log output for what happens when reflection is called. I guess it should show where things go wrong.

just4phil commented 9 years ago

10-19 21:18:21.956: I/ActivityManager(324): START {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=de.philweb.tanks/de.philweb.game2.android.AndroidLauncher u=0} from pid 5384 10-19 21:18:21.976: W/InputMethodManagerService(324): Ignoring showSoftInput of uid 1000: android.view.inputmethod.InputMethodManager$1@41ef9df8 10-19 21:18:21.986: D/AndroidRuntime(5384): Shutting down VM 10-19 21:18:21.986: D/jdwp(5384): Got wake-up signal, bailing out of select 10-19 21:18:21.986: D/dalvikvm(5384): Debugger has detached; object registry had 1 entries 10-19 21:18:21.996: W/InputMethodManagerService(324): Ignoring showSoftInput of uid 1000: android.view.inputmethod.InputMethodManager$1@41ef9df8 10-19 21:18:22.006: D/dalvikvm(5396): Late-enabling CheckJNI 10-19 21:18:22.006: I/ActivityManager(324): Start proc de.philweb.tanks for activity de.philweb.tanks/de.philweb.game2.android.AndroidLauncher: pid=5396 uid=10064 gids={3003, 1028} 10-19 21:18:22.076: D/ACRA(5396): ACRA is enabled for de.philweb.tanks, intializing... 10-19 21:18:22.086: D/ACRA(5396): Looking for error files in /data/data/de.philweb.tanks/files 10-19 21:18:22.096: D/dalvikvm(5396): Trying to load lib /data/data/de.philweb.tanks/lib/libgdx.so 0x41dc0800 10-19 21:18:22.096: D/dalvikvm(5396): Added shared lib /data/data/de.philweb.tanks/lib/libgdx.so 0x41dc0800 10-19 21:18:22.096: D/dalvikvm(5396): No JNI_OnLoad found in /data/data/de.philweb.tanks/lib/libgdx.so 0x41dc0800, skipping init 10-19 21:18:22.096: D/libEGL(5396): loaded /system/lib/egl/libEGL_tegra.so 10-19 21:18:22.096: E/(5396): file /data/data/com.nvidia.NvCPLSvc/files/driverlist.txt: not found! 10-19 21:18:22.096: I/(5396): Attempting to load EGL implementation /system/lib//egl/libEGL_tegra_impl 10-19 21:18:22.106: I/(5396): Loaded EGL implementation /system/lib//egl/libEGL_tegra_impl 10-19 21:18:22.106: D/libEGL(5396): loaded /system/lib/egl/libGLESv1_CM_tegra.so 10-19 21:18:22.106: D/libEGL(5396): loaded /system/lib/egl/libGLESv2_tegra.so 10-19 21:18:22.126: I/AndroidInput(5396): sensor listener setup 10-19 21:18:22.146: I/WindowManager(324): Switching to real app window: Window{41e7a5f0 de.philweb.tanks/de.philweb.game2.android.AndroidLauncher paused=false} 10-19 21:18:22.186: I/(5396): Loading GLESv2 implementation /system/lib//egl/libGLESv2_tegra_impl 10-19 21:18:22.186: D/OpenGLRenderer(5396): Enabling debug mode 0 10-19 21:18:22.186: W/GL2JNIView(5396): creating OpenGL ES 2.0 context 10-19 21:18:22.206: D/dalvikvm(5396): Trying to load lib /data/data/de.philweb.tanks/lib/libgdx.so 0x41dc0800 10-19 21:18:22.206: D/dalvikvm(5396): Shared lib '/data/data/de.philweb.tanks/lib/libgdx.so' already loaded in same CL 0x41dc0800 10-19 21:18:22.246: I/GL2(5396): all initialized 2 10-19 21:18:22.246: I/AndroidGraphics(5396): OGL renderer: NVIDIA Tegra 3 10-19 21:18:22.246: I/AndroidGraphics(5396): OGL vendor: NVIDIA Corporation 10-19 21:18:22.246: I/AndroidGraphics(5396): OGL version: OpenGL ES 2.0 16.05001 10-19 21:18:22.246: I/AndroidGraphics(5396): OGL extensions: GL_OES_rgb8_rgba8 GL_OES_EGL_sync GL_OES_surfaceless_context GL_OES_fbo_render_mipmap GL_NV_depth_nonlinear GL_NV_draw_path GL_NV_draw_texture GL_NV_texture_npot_2D_mipmap GL_OES_EGL_image GL_OES_EGL_image_external GL_OES_vertex_half_float GL_OES_mapbuffer GL_NV_draw_buffers GL_NV_multiview_draw_buffers GL_EXT_Cg_shader GL_EXT_packed_float GL_OES_texture_half_float GL_EXT_texture_array GL_OES_compressed_ETC1_RGB8_texture GL_EXT_texture_compression_latc GL_NV_texture_compression_latc GL_EXT_texture_compression_dxt1 GL_EXT_texture_compression_s3tc GL_NV_texture_compression_s3tc GL_EXT_texture_filter_anisotropic GL_NV_get_tex_image GL_NV_read_buffer GL_NV_shader_framebuffer_fetch GL_NV_copy_image GL_NV_fbo_color_attachments GL_EXT_bgra GL_EXT_texture_format_BGRA8888 GL_EXT_read_format_bgra GL_EXT_unpack_subimage GL_NV_pack_subimage GL_NV_texture_compression_s3tc_update GL_NV_read_depth GL_NV_read_stencil GL_NV_uniform_buffer_object GL_NV_map_buffer_range GL_EXT_robustness GL_OES_standard_derivatives GL_NV_EGL_stream_consumer_external GL_EXT_separate_shader_objects GL_NV_copy_buffer GL_NV_3dvision_settings GL_EXT_debug_marker GL_EXT_debug_label GL_KHR_debug GL_EXT_texture_storage GL_NV_pixel_buffer_object GL_NV_framebuffer_blit GL_NV_non_square_matrices GL_NV_explicit_attrib_location GL_OES_vertex_array_object GL_NV_smooth_points_lines GL_NV_coverage_sample GL_EXT_occlusion_query_boolean GL_NV_occlusion_query_samples GL_NV_timer_query 10-19 21:18:22.246: I/AndroidGraphics(5396): framebuffer: (5, 6, 5, 0) 10-19 21:18:22.246: I/AndroidGraphics(5396): depthbuffer: (16) 10-19 21:18:22.246: I/AndroidGraphics(5396): stencilbuffer: (0) 10-19 21:18:22.246: I/AndroidGraphics(5396): samples: (0) 10-19 21:18:22.246: I/AndroidGraphics(5396): coverage sampling: (false) 10-19 21:18:22.266: I/ActivityManager(324): Displayed de.philweb.tanks/de.philweb.game2.android.AndroidLauncher: +279ms 10-19 21:18:22.266: I/AndroidGraphics(5396): Managed meshes/app: { } 10-19 21:18:22.266: I/AndroidGraphics(5396): Managed textures/app: { } 10-19 21:18:22.266: I/AndroidGraphics(5396): Managed shaders/app: { } 10-19 21:18:22.266: I/AndroidGraphics(5396): Managed buffers/app: { } 10-19 21:18:22.266: W/InputMethodManagerService(324): Ignoring showSoftInput of uid 10016: com.android.internal.view.IInputMethodClient$Stub$Proxy@41f8c628 10-19 21:18:22.286: W/InputMethodManagerService(324): Ignoring showSoftInput of uid 10016: com.android.internal.view.IInputMethodClient$Stub$Proxy@41f90448 10-19 21:18:22.456: W/InputMethodManagerService(324): Ignoring showSoftInput of uid 10016: com.android.internal.view.IInputMethodClient$Stub$Proxy@42026388 10-19 21:18:24.036: I/files(5396): Local storage available 10-19 21:18:24.036: I/files(5396): Local storage path: /data/data/de.philweb.tanks/files/ 10-19 21:18:24.036: I/.configs(5396): exists 10-19 21:18:24.046: I/AndroidControllers(5396): added controller 'OUYA Game Controller' 10-19 21:18:24.046: I/Controllers(5396): added manager for application, 1 managers active 10-19 21:18:24.046: D/dalvikvm(5396): newInstance failed: Lde/philweb/philengine/controllers/ControllerConfig2;.() not accessible to Lcom/badlogic/gdx/utils/reflect/ClassReflection; 10-19 21:18:24.076: D/dalvikvm(5396): newInstance failed: Lde/philweb/philengine/controllers/ControllerConfig2;.() not accessible to Lcom/badlogic/gdx/utils/reflect/ClassReflection; 10-19 21:18:24.086: I/resolvedPath(5396): imageatlas/1080/HLGsplash.png 10-19 21:18:24.086: I/dalvikvm-heap(5396): Grow heap (frag case) to 18.560MB for 273400-byte allocation 10-19 21:18:24.346: I/resolvedAtlas(5396): imageatlas/1080/pages.atlas 10-19 21:18:24.346: I/System.out(5396): imageatlas/1080/pages.atlas // int: 3 10-19 21:18:24.556: I/dalvikvm-heap(5396): Grow heap (frag case) to 19.281MB for 217875-byte allocation 10-19 21:18:24.626: I/dalvikvm-heap(5396): Grow heap (frag case) to 18.864MB for 938325-byte allocation 10-19 21:18:25.066: I/dalvikvm-heap(5396): Grow heap (frag case) to 22.453MB for 3067501-byte allocation 10-19 21:18:25.386: I/NuCachedSource2(110): ERROR_END_OF_STREAM 10-19 21:18:25.426: I/NuCachedSource2(110): ERROR_END_OF_STREAM 10-19 21:18:25.436: I/loaded: imageatlas/pages.atlas(5396): // int: 3 10-19 21:18:25.466: I/NuCachedSource2(110): ERROR_END_OF_STREAM 10-19 21:18:25.516: D/dalvikvm(5396): Trying to load lib /data/data/de.philweb.tanks/lib/libgdx-box2d.so 0x41dc0800 10-19 21:18:25.516: D/dalvikvm(5396): Added shared lib /data/data/de.philweb.tanks/lib/libgdx-box2d.so 0x41dc0800 10-19 21:18:25.516: D/dalvikvm(5396): No JNI_OnLoad found in /data/data/de.philweb.tanks/lib/libgdx-box2d.so 0x41dc0800, skipping init 10-19 21:18:29.576: I/ActivityManager(324): No longer want com.android.musicfx (pid 5365): hidden #2 10-19 21:18:51.766: E/BandwidthController(105): Updating quota globalAlert failed (No such file or directory) 10-19 21:18:51.766: W/NetworkStats(324): problem registering for global alert: java.lang.IllegalStateException: command '25 bandwidth setglobalalert 2097152' failed with '400 25 Bandwidth command failed' 10-19 21:19:55.106: V/QueuedDownloadPollService(555): Scheduling next check

noblemaster commented 9 years ago

mhh, gdx-pay isn't shown in that stacktrace. There should be more!

just4phil commented 9 years ago

this is all i have:

10-19 21:29:33.666: D/AndroidRuntime(5954): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<< 10-19 21:29:33.666: D/AndroidRuntime(5954): CheckJNI is OFF 10-19 21:29:33.666: D/dalvikvm(5954): Trying to load lib libjavacore.so 0x0 10-19 21:29:33.666: D/dalvikvm(5954): Added shared lib libjavacore.so 0x0 10-19 21:29:33.676: D/dalvikvm(5954): Trying to load lib libnativehelper.so 0x0 10-19 21:29:33.676: D/dalvikvm(5954): Added shared lib libnativehelper.so 0x0 10-19 21:29:33.746: I/ethernet(5954): Loading ethernet jni class 10-19 21:29:33.776: D/AndroidRuntime(5954): Calling main entry com.android.commands.pm.Pm 10-19 21:29:33.786: I/ActivityManager(324): Start proc com.android.defcontainer for service com.android.defcontainer/.DefaultContainerService: pid=5964 uid=10005 gids={1015, 1023, 2001, 1028} 10-19 21:29:33.806: W/ActivityManager(324): No content provider found for permission revoke: file:///data/local/tmp/game2-android.apk 10-19 21:29:33.926: W/ActivityManager(324): No content provider found for permission revoke: file:///data/local/tmp/game2-android.apk 10-19 21:29:34.246: I/PackageManager(324): Removing non-system package:de.philweb.tanks 10-19 21:29:34.246: I/ActivityManager(324): Force stopping package de.philweb.tanks uid=10064 10-19 21:29:34.296: I/PackageManager(324): Running dexopt on: de.philweb.tanks 10-19 21:29:34.296: I/PackageManager(324): Package de.philweb.tanks codePath changed from /data/app/de.philweb.tanks-2.apk to /data/app/de.philweb.tanks-1.apk; Retaining data and using new 10-19 21:29:34.516: D/dalvikvm(5977): DexOpt: 'Ltv/ouya/console/api/OuyaIntent;' has an earlier definition; blocking out 10-19 21:29:34.806: D/dalvikvm(5977): DexOpt: not verifying/optimizing 'Ltv/ouya/console/api/OuyaIntent;': multiple definitions 10-19 21:29:35.116: D/dalvikvm(5977): DexOpt: load 65ms, verify+opt 567ms, 1982956 bytes 10-19 21:29:35.516: W/PackageManager(324): Code path for pkg : de.philweb.tanks changing from /data/app/de.philweb.tanks-2.apk to /data/app/de.philweb.tanks-1.apk 10-19 21:29:35.516: W/PackageManager(324): Resource path for pkg : de.philweb.tanks changing from /data/app/de.philweb.tanks-2.apk to /data/app/de.philweb.tanks-1.apk 10-19 21:29:35.516: I/ActivityManager(324): Force stopping package de.philweb.tanks uid=10064 10-19 21:29:35.586: D/PackageManager(324): New package installed in /data/app/de.philweb.tanks-1.apk 10-19 21:29:35.656: I/ActivityManager(324): Force stopping package de.philweb.tanks uid=10064 10-19 21:29:35.676: I/InputReader(324): Reconfiguring input devices. changes=0x00000010 10-19 21:29:35.696: I/ActivityManager(324): Start proc com.android.keychain for broadcast com.android.keychain/.KeyChainBroadcastReceiver: pid=5979 uid=1000 gids={3003, 1015, 1023, 3002, 3001, 1028} 10-19 21:29:35.706: D/PackageManager(324): generateServicesMap(android.accounts.AccountAuthenticator): 1 services unchanged 10-19 21:29:35.706: D/PackageManager(324): generateServicesMap(android.content.SyncAdapter): 4 services unchanged 10-19 21:29:35.706: D/BackupManagerService(324): Received broadcast Intent { act=android.intent.action.PACKAGE_REMOVED dat=package:de.philweb.tanks flg=0x8000010 (has extras) } 10-19 21:29:35.716: I/InputReader(324): Reconfiguring input devices. changes=0x00000010 10-19 21:29:35.726: W/RecognitionManagerService(324): no available voice recognition services found 10-19 21:29:35.736: W/Searchables(324): No global search activity found 10-19 21:29:35.736: W/Searchables(324): No global search activity found 10-19 21:29:35.766: I/ActivityManager(324): Start proc com.android.musicfx for broadcast com.android.musicfx/.Compatibility$Receiver: pid=5992 uid=10013 gids={3003, 3002, 1028} 10-19 21:29:35.776: D/PackageManager(324): generateServicesMap(android.accounts.AccountAuthenticator): 1 services unchanged 10-19 21:29:35.786: I/ActivityManager(324): No longer want tv.ouya.sysprops (pid 5919): hidden #2 10-19 21:29:35.786: D/PackageManager(324): generateServicesMap(android.content.SyncAdapter): 4 services unchanged 10-19 21:29:35.786: D/BackupManagerService(324): Received broadcast Intent { act=android.intent.action.PACKAGE_ADDED dat=package:de.philweb.tanks flg=0x8000010 (has extras) } 10-19 21:29:35.786: V/BackupManagerService(324): removePackageParticipantsLocked: uid=10064 #1 10-19 21:29:35.806: V/BackupManagerService(324): addPackageParticipantsLocked: #1 10-19 21:29:35.826: I/ActivityManager(324): Start proc com.svox.pico for broadcast com.svox.pico/.VoiceDataInstallerReceiver: pid=6005 uid=10021 gids={1015, 1023, 1028} 10-19 21:29:35.876: I/ActivityThread(6005): Pub com.svox.pico.providers.SettingsProvider: com.svox.pico.providers.SettingsProvider 10-19 21:29:35.876: D/AndroidRuntime(5954): Shutting down VM 10-19 21:29:35.876: D/PackageEventReceiver(979): Received event: android.intent.action.PACKAGE_ADDED for package de.philweb.tanks 10-19 21:29:35.876: D/PackageEventReceiver(979): Finished installing app de.philweb.tanks 10-19 21:29:35.876: D/PackageManagerService(979): broadcasting install succeeded 10-19 21:29:35.876: D/PackageManagerService(979): getApplicationApkFile: /storage/sdcard0/de.philweb.tanks.apk 10-19 21:29:35.876: D/PackageManagerService(979): getApplicationApkFile: /mnt/usbdrive/de.philweb.tanks.apk 10-19 21:29:35.876: I/PackageManagerService(979): Upgraded app: de.philweb.tanks 10-19 21:29:35.876: I/ActivityManager(324): No longer want com.android.keychain (pid 5979): hidden #2 10-19 21:29:35.876: I/ActivityManager(324): No longer want com.android.musicfx (pid 5992): hidden #2 10-19 21:29:35.886: I/AndroidRuntime(5954): NOTE: attach of thread 'Binder_3' failed 10-19 21:29:35.886: D/jdwp(5954): Got wake-up signal, bailing out of select 10-19 21:29:35.886: D/dalvikvm(5954): Debugger has detached; object registry had 1 entries 10-19 21:29:35.906: D/PackageManagerService(979): Removing 'installing' sticky broadcast: 10-19 21:29:35.906: I/PackageEventReceiver(979): Broadcast Received Intent { act=android.intent.action.PACKAGE_ADDED dat=package:de.philweb.tanks flg=0x8000010 cmp=tv.ouya.packagemanager/.PackageEventReceiver (has extras) } 10-19 21:29:35.906: D/ConnectivityPollService(555): Woken before time elapsed - going back to sleep. 10-19 21:29:35.916: I/ActivityManager(324): Start proc com.android.musicfx for broadcast com.android.musicfx/.Compatibility$Receiver: pid=6019 uid=10013 gids={3003, 3002, 1028} 10-19 21:29:35.946: D/AppDownloadServiceReceiver(612): Received: Intent { act=tv.ouya.PACKAGE_INSTALLED flg=0x10 cmp=tv.ouya/.provider.app.download.AppDownloadServiceReceiver (has extras) } 10-19 21:29:35.946: D/AppDownloadServiceReceiver(612): Received: Intent { act=tv.ouya.download.ACTION_RESUME_DOWNLOADS flg=0x10 cmp=tv.ouya/.provider.app.download.AppDownloadServiceReceiver (has extras) } 10-19 21:29:35.966: I/ActivityManager(324): No longer want com.svox.pico (pid 6005): hidden #2 10-19 21:29:36.306: D/AndroidRuntime(6038): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<< 10-19 21:29:36.306: D/AndroidRuntime(6038): CheckJNI is OFF 10-19 21:29:36.316: D/dalvikvm(6038): Trying to load lib libjavacore.so 0x0 10-19 21:29:36.316: D/dalvikvm(6038): Added shared lib libjavacore.so 0x0 10-19 21:29:36.326: D/dalvikvm(6038): Trying to load lib libnativehelper.so 0x0 10-19 21:29:36.326: D/dalvikvm(6038): Added shared lib libnativehelper.so 0x0 10-19 21:29:36.396: I/ethernet(6038): Loading ethernet jni class 10-19 21:29:36.416: D/AndroidRuntime(6038): Calling main entry com.android.commands.am.Am 10-19 21:29:36.426: I/ActivityManager(324): START {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=de.philweb.tanks/de.philweb.game2.android.AndroidLauncher u=0} from pid 6038 10-19 21:29:36.446: W/InputMethodManagerService(324): Ignoring showSoftInput of uid 1000: android.view.inputmethod.InputMethodManager$1@41ef9df8 10-19 21:29:36.446: D/AndroidRuntime(6038): Shutting down VM 10-19 21:29:36.456: D/jdwp(6038): Got wake-up signal, bailing out of select 10-19 21:29:36.456: D/dalvikvm(6038): Debugger has detached; object registry had 1 entries 10-19 21:29:36.466: D/dalvikvm(6049): Late-enabling CheckJNI 10-19 21:29:36.466: W/InputMethodManagerService(324): Ignoring showSoftInput of uid 1000: android.view.inputmethod.InputMethodManager$1@41ef9df8 10-19 21:29:36.466: I/ActivityManager(324): Start proc de.philweb.tanks for activity de.philweb.tanks/de.philweb.game2.android.AndroidLauncher: pid=6049 uid=10064 gids={3003, 1028} 10-19 21:29:36.536: D/ACRA(6049): ACRA is enabled for de.philweb.tanks, intializing... 10-19 21:29:36.546: D/ACRA(6049): Looking for error files in /data/data/de.philweb.tanks/files 10-19 21:29:36.546: D/dalvikvm(6049): Trying to load lib /data/data/de.philweb.tanks/lib/libgdx.so 0x41dbf910 10-19 21:29:36.546: D/dalvikvm(6049): Added shared lib /data/data/de.philweb.tanks/lib/libgdx.so 0x41dbf910 10-19 21:29:36.546: D/dalvikvm(6049): No JNI_OnLoad found in /data/data/de.philweb.tanks/lib/libgdx.so 0x41dbf910, skipping init 10-19 21:29:36.556: D/libEGL(6049): loaded /system/lib/egl/libEGL_tegra.so 10-19 21:29:36.556: E/(6049): file /data/data/com.nvidia.NvCPLSvc/files/driverlist.txt: not found! 10-19 21:29:36.556: I/(6049): Attempting to load EGL implementation /system/lib//egl/libEGL_tegra_impl 10-19 21:29:36.556: I/(6049): Loaded EGL implementation /system/lib//egl/libEGL_tegra_impl 10-19 21:29:36.556: D/libEGL(6049): loaded /system/lib/egl/libGLESv1_CM_tegra.so 10-19 21:29:36.566: D/libEGL(6049): loaded /system/lib/egl/libGLESv2_tegra.so 10-19 21:29:36.586: I/AndroidInput(6049): sensor listener setup 10-19 21:29:36.636: I/WindowManager(324): Switching to real app window: Window{41e7c780 de.philweb.tanks/de.philweb.game2.android.AndroidLauncher paused=false} 10-19 21:29:36.676: I/(6049): Loading GLESv2 implementation /system/lib//egl/libGLESv2_tegra_impl 10-19 21:29:36.686: D/OpenGLRenderer(6049): Enabling debug mode 0 10-19 21:29:36.686: W/GL2JNIView(6049): creating OpenGL ES 2.0 context 10-19 21:29:36.716: D/dalvikvm(6049): Trying to load lib /data/data/de.philweb.tanks/lib/libgdx.so 0x41dbf910 10-19 21:29:36.716: D/dalvikvm(6049): Shared lib '/data/data/de.philweb.tanks/lib/libgdx.so' already loaded in same CL 0x41dbf910 10-19 21:29:36.736: I/GL2(6049): all initialized 2 10-19 21:29:36.736: I/AndroidGraphics(6049): OGL renderer: NVIDIA Tegra 3 10-19 21:29:36.736: I/AndroidGraphics(6049): OGL vendor: NVIDIA Corporation 10-19 21:29:36.736: I/AndroidGraphics(6049): OGL version: OpenGL ES 2.0 16.05001 10-19 21:29:36.736: I/AndroidGraphics(6049): OGL extensions: GL_OES_rgb8_rgba8 GL_OES_EGL_sync GL_OES_surfaceless_context GL_OES_fbo_render_mipmap GL_NV_depth_nonlinear GL_NV_draw_path GL_NV_draw_texture GL_NV_texture_npot_2D_mipmap GL_OES_EGL_image GL_OES_EGL_image_external GL_OES_vertex_half_float GL_OES_mapbuffer GL_NV_draw_buffers GL_NV_multiview_draw_buffers GL_EXT_Cg_shader GL_EXT_packed_float GL_OES_texture_half_float GL_EXT_texture_array GL_OES_compressed_ETC1_RGB8_texture GL_EXT_texture_compression_latc GL_NV_texture_compression_latc GL_EXT_texture_compression_dxt1 GL_EXT_texture_compression_s3tc GL_NV_texture_compression_s3tc GL_EXT_texture_filter_anisotropic GL_NV_get_tex_image GL_NV_read_buffer GL_NV_shader_framebuffer_fetch GL_NV_copy_image GL_NV_fbo_color_attachments GL_EXT_bgra GL_EXT_texture_format_BGRA8888 GL_EXT_read_format_bgra GL_EXT_unpack_subimage GL_NV_pack_subimage GL_NV_texture_compression_s3tc_update GL_NV_read_depth GL_NV_read_stencil GL_NV_uniform_buffer_object GL_NV_map_buffer_range GL_EXT_robustness GL_OES_standard_derivatives GL_NV_EGL_stream_consumer_external GL_EXT_separate_shader_objects GL_NV_copy_buffer GL_NV_3dvision_settings GL_EXT_debug_marker GL_EXT_debug_label GL_KHR_debug GL_EXT_texture_storage GL_NV_pixel_buffer_object GL_NV_framebuffer_blit GL_NV_non_square_matrices GL_NV_explicit_attrib_location GL_OES_vertex_array_object GL_NV_smooth_points_lines GL_NV_coverage_sample GL_EXT_occlusion_query_boolean GL_NV_occlusion_query_samples GL_NV_timer_query 10-19 21:29:36.736: I/AndroidGraphics(6049): framebuffer: (5, 6, 5, 0) 10-19 21:29:36.736: I/AndroidGraphics(6049): depthbuffer: (16) 10-19 21:29:36.736: I/AndroidGraphics(6049): stencilbuffer: (0) 10-19 21:29:36.736: I/AndroidGraphics(6049): samples: (0) 10-19 21:29:36.736: I/AndroidGraphics(6049): coverage sampling: (false) 10-19 21:29:36.736: I/AndroidGraphics(6049): Managed meshes/app: { } 10-19 21:29:36.736: I/AndroidGraphics(6049): Managed textures/app: { } 10-19 21:29:36.736: I/AndroidGraphics(6049): Managed shaders/app: { } 10-19 21:29:36.736: I/AndroidGraphics(6049): Managed buffers/app: { } 10-19 21:29:36.746: I/ActivityManager(324): Displayed de.philweb.tanks/de.philweb.game2.android.AndroidLauncher: +295ms 10-19 21:29:36.746: W/InputMethodManagerService(324): Ignoring showSoftInput of uid 10016: com.android.internal.view.IInputMethodClient$Stub$Proxy@41f7a5d0 10-19 21:29:36.766: W/InputMethodManagerService(324): Ignoring showSoftInput of uid 10016: com.android.internal.view.IInputMethodClient$Stub$Proxy@41f40a78 10-19 21:29:36.786: W/InputMethodManagerService(324): Ignoring showSoftInput of uid 10016: com.android.internal.view.IInputMethodClient$Stub$Proxy@41f14fa8 10-19 21:29:36.966: W/InputMethodManagerService(324): Ignoring showSoftInput of uid 10016: com.android.internal.view.IInputMethodClient$Stub$Proxy@41e9f368 10-19 21:29:36.976: W/InputMethodManagerService(324): Ignoring showSoftInput of uid 10016: com.android.internal.view.IInputMethodClient$Stub$Proxy@41e76b48 10-19 21:29:38.546: I/files(6049): Local storage available 10-19 21:29:38.546: I/files(6049): Local storage path: /data/data/de.philweb.tanks/files/ 10-19 21:29:38.546: I/.configs(6049): exists 10-19 21:29:38.556: I/AndroidControllers(6049): added controller 'OUYA Game Controller' 10-19 21:29:38.556: I/AndroidControllers(6049): added controller 'Amazon Fire Game Controller' 10-19 21:29:38.556: I/Controllers(6049): added manager for application, 1 managers active 10-19 21:29:38.556: D/dalvikvm(6049): newInstance failed: Lde/philweb/philengine/controllers/ControllerConfig2;.() not accessible to Lcom/badlogic/gdx/utils/reflect/ClassReflection; 10-19 21:29:38.616: D/dalvikvm(6049): newInstance failed: Lde/philweb/philengine/controllers/ControllerConfig2;.() not accessible to Lcom/badlogic/gdx/utils/reflect/ClassReflection; 10-19 21:29:38.616: I/resolvedPath(6049): imageatlas/1080/HLGsplash.png 10-19 21:29:38.616: I/dalvikvm-heap(6049): Grow heap (frag case) to 18.559MB for 273400-byte allocation 10-19 21:29:38.886: I/resolvedAtlas(6049): imageatlas/1080/pages.atlas 10-19 21:29:38.886: I/System.out(6049): imageatlas/1080/pages.atlas // int: 3 10-19 21:29:39.086: I/dalvikvm-heap(6049): Grow heap (frag case) to 19.291MB for 217875-byte allocation 10-19 21:29:39.156: I/dalvikvm-heap(6049): Grow heap (frag case) to 18.866MB for 938325-byte allocation 10-19 21:29:39.606: I/dalvikvm-heap(6049): Grow heap (frag case) to 22.455MB for 3067501-byte allocation 10-19 21:29:39.956: I/NuCachedSource2(110): ERROR_END_OF_STREAM 10-19 21:29:39.996: I/NuCachedSource2(110): ERROR_END_OF_STREAM 10-19 21:29:40.026: I/loaded: imageatlas/pages.atlas(6049): // int: 3 10-19 21:29:40.036: I/NuCachedSource2(110): ERROR_END_OF_STREAM 10-19 21:29:40.096: D/dalvikvm(6049): Trying to load lib /data/data/de.philweb.tanks/lib/libgdx-box2d.so 0x41dbf910 10-19 21:29:40.096: D/dalvikvm(6049): Added shared lib /data/data/de.philweb.tanks/lib/libgdx-box2d.so 0x41dbf910 10-19 21:29:40.096: D/dalvikvm(6049): No JNI_OnLoad found in /data/data/de.philweb.tanks/lib/libgdx-box2d.so 0x41dbf910, skipping init 10-19 21:29:43.966: I/ActivityManager(324): No longer want com.android.musicfx (pid 6019): hidden #2

noblemaster commented 9 years ago

Still nothing in there: please make sure to try to use the PurchaseSystem when you test-run your app or gdx-pay-android-test otherwise the purchase system is not instantiated via reflection and there is nothing in the log.

just4phil commented 9 years ago

@noblemaster ..... hi christoph thats the problem i am talking about ;) purchasemanager ouya is always null! instantiation via reflection seems not to work for ouya......

noblemaster commented 9 years ago

Oh, I see! You are using libGDX, correct? The latest version? I added "com.badlogic.gdx.backends.android.AndroidEventListener" not too long ago to listen to onActivityResult messages. If you are using an older version of libGDX, reflection will silently crash because that listener is not available.

By the way, do you mind testing gdx-pay-android-tests to see if the tests at least work for OUYA?

i had to disable export of "Android private libraries" because i always had the error "dalvik format conversion failed"

Oh, yes, I had to do that too. Somehow some project auto-setup problem...

just4phil commented 9 years ago

@noblemaster YES!!!! FINALLY IT WORKS! i upgraded my game to libgdx 1.4.2-SNAPSHOT That fixed it :)

by the way: wiring the gdx-pay-dependencies manually up (.... ouya.jar .. openIAB.jar ...) after a libgdx upgrade sucks a bit... but doesnt happen too often ...

i am just checking the gdx-pay-android-tests..... .... it works:

http://youtu.be/KUzVXCPN26Q

how does openIAB handle purchases of products that have already been purchased?

noblemaster commented 9 years ago

Great! Also, schaut so aus als könnten wir Deutsch sprechen :-D

by the way: wiring the gdx-pay-dependencies manually up (.... ouya.jar .. openIAB.jar ...) after a libgdx upgrade sucks a bit... but doesnt happen too often ...

I actually updated the build of gdx-pay so you won't have to wire up the jars manually if you don't like to. Have a look at the documentation: https://github.com/libgdx/gdx-pay/blob/master/README.md

Basically there are two ways. a) if you use the gdx-pay-.jar you need to wire up the ouya-sdk.jar, open-iab.jar etc. manually. b) take the gdx-pay--library.jar and the ouya-sdk.jar, etc. are already wired it.

This works for both Maven & adding the jars manually. If you want to use those fat "library"-jars in Maven you will need to add the following to your Maven import statement: <classifier>library</classifier>.

Are you using Maven by the way?

just4phil commented 9 years ago

hatte schon vermutet, dass Du deutscher / oesterreicher bist :)

well,.... i am using the gdx-pay-sources directly because i want to be able to make changes that i can test in my game and push pull-requests to the repo.... (the IAP stuff is imho still a WIP)

atm i am not using maven (only the libgdx gradle stuff) .... should i use gradle?

Tom-Ski commented 9 years ago

Doesn't make a difference gradle/maven, same deal. If you are working from source, you should import as a Gradle project into eclipse, the project is good to go from there as everything is already configured.