PojavLauncherTeam / PojavLauncher

A Minecraft: Java Edition Launcher for Android and iOS based on Boardwalk. This repository contains source code for Android platform.
GNU Lesser General Public License v3.0
6.83k stars 1.28k forks source link

Way to run versions higher than 1.8 on Android 9 #1

Closed artdeell closed 4 years ago

artdeell commented 4 years ago

When i started investigating this problem, i found something interesting when started multidoj outside of an application. It was utputting something about wrong class file versions. I browsed Google, and figured out: to convert code, compiled for Javas newer than Java 6, Multidoj is a rewrite for dx ver. 1.7, and this DX version refuses to convert Java 8 classes. So, I found DX version 1.16, and tried to convert with it. 1.16 converted all files successfuly.

So, you need to rewrite dx 1.16 instead of dx 1.7. 1.16 dx is attached to this issue. dx.zip

artdeell commented 4 years ago

What about preview4? @khanhduytran0

khanhduytran0 commented 4 years ago

@artdeell @abdo-A028 https://drive.google.com/file/d/1pQjCZhZnetK4hwPaV4K3n_YQGNLFs8X7/view?usp=drivesdk Sound still not working. Backport of javax.sound.midi will be added later in preview5. EDIT: this is the public preview.

khanhduytran0 commented 4 years ago

Versions and libraries moved to /storage/emulated/0/games/minecraft. You will be able to add custom version. To add custom jar, add _orig at the end of file name. Ex: 1.7.10mod_orig.jar Also copy the original json to the custom version.

khanhduytran0 commented 4 years ago

Folder contains version and files inside: jar, json must be same name.

Name: 1.7.10

/storage/emulated/0/games/minecraft/versions
  ↳ 1.7.10
    ↳ 1.7.10_orig.jar
    ↳ 1.7.10.jar // the converted jar
    ↳ 1.7.10.json

Name: 1.7.10mod

/storage/emulated/0/games/minecraft/versions
  ↳ 1.7.10mod
    ↳ 1.7.10mod_orig.jar
    ↳ 1.7.10mod.jar // the converted jar
    ↳ 1.7.10mod.json
artdeell commented 4 years ago

The reason why this mod system will not work is:

  1. All mods DOES NOT have any links to mod libraries in .json file.
  2. Launcher doesn't support inheritsFrom tag.
  3. Launcher doesn't use minecraftArguments tag, which makes loading any modifications like Forge and Optifine impossible (excluding some of hacked clients).
khanhduytran0 commented 4 years ago

1. Add a link of custom libraries to json file.

{"downloads": 
  {"artifact":
    {
      "path": "org/apache/commons/commons-lang3/3.1/commons-lang3-3.1.jar",
      "sha1": "905075e6c80f206bbe6cf1e809d2caa69f420c76", 
      "size": 315805,
      // Remove url tag because it's a local library.
      // "url": "https://libraries.minecraft.net/org/apache/commons/commons-lang3/3.1/commons-lang3-3.1.jar"
    }
  },
  "name": "org.apache.commons:commons-lang3:3.1"
}

2. I don't know what is inheritsFrom? I didn't play PC usually. Can't find in the json file.

3. Is below right?

"minecraftArguments": "--username ${auth_player_name} --version ${version_name} --gameDir ${game_directory} --assetsDir ${assets_root} --assetIndex ${assets_index_name} --uuid ${auth_uuid} --accessToken ${auth_access_token} --userProperties ${user_properties} --userType ${user_type}"

Not hard for migrating to use json tag.

khanhduytran0 commented 4 years ago

Uh-oh \n cause the log always breakline. Delete your comment. I saved the comment

khanhduytran0 commented 4 years ago

So I decoded:

Unable to convert library %s
processing archive /storage/emulated/0/games/minecraft/libraries/net/java/dev/jna/platform/3.4.0/platform-3.4.0_orig.jar...
processing META-INF/...
writing META-INF/; size 0...
processing META-INF/MANIFEST.MF...
processing com/...
writing com/; size 0...
processing com/sun/...
writing com/sun/; size 0...
processing com/sun/jna/...
writing com/sun/jna/; size 0...
processing com/sun/jna/platform/...
writing com/sun/jna/platform/; size 0...
processing com/sun/jna/platform/FileMonitor.class...
processing com/sun/jna/platform/FileMonitor$FileEvent.class...
processing com/sun/jna/platform/FileMonitor$FileListener.class...
processing com/sun/jna/platform/FileMonitor$Holder.class...
processing com/sun/jna/platform/FileUtils.class...
processing com/sun/jna/platform/FileUtils$1.class...
processing com/sun/jna/platform/FileUtils$DefaultFileUtils.class...
processing com/sun/jna/platform/FileUtils$Holder.class...
processing com/sun/jna/platform/KeyboardUtils.class...
processing com/sun/jna/platform/KeyboardUtils$1.class...
processing com/sun/jna/platform/KeyboardUtils$MacKeyboardUtils.class...
processing com/sun/jna/platform/KeyboardUtils$NativeKeyboardUtils.class...
processing com/sun/jna/platform/KeyboardUtils$W32KeyboardUtils.class...
processing com/sun/jna/platform/KeyboardUtils$X11KeyboardUtils.class...
processing com/sun/jna/platform/RasterRangesUtils.class...
processing com/sun/jna/platform/RasterRangesUtils$1.class...
processing com/sun/jna/platform/RasterRangesUtils$RangesOutput.class...
processing com/sun/jna/platform/WindowUtils.class...
processing com/sun/jna/platform/WindowUtils$1.class...
processing com/sun/jna/platform/WindowUtils$HeavyweightForcer.class...
processing com/sun/jna/platform/WindowUtils$Holder.class...
processing com/sun/jna/platform/WindowUtils$MacWindowUtils.class...
processing com/sun/jna/platform/WindowUtils$MacWindowUtils$1.class...
processing com/sun/jna/platform/WindowUtils$MacWindowUtils$OSXMaskingContentPane.class...
processing com/sun/jna/platform/WindowUtils$NativeWindowUtils.class...
processing com/sun/jna/platform/WindowUtils$NativeWindowUtils$1.class...
processing com/sun/jna/platform/WindowUtils$NativeWindowUtils$2.class...
processing com/sun/jna/platform/WindowUtils$NativeWindowUtils$3.class...
processing com/sun/jna/platform/WindowUtils$NativeWindowUtils$TransparentContentPane.class...
processing com/sun/jna/platform/WindowUtils$RepaintTrigger.class...
processing com/sun/jna/platform/WindowUtils$RepaintTrigger$Listener.class...
processing com/sun/jna/platform/WindowUtils$W32WindowUtils.class...
processing com/sun/jna/platform/WindowUtils$W32WindowUtils$1.class...
processing com/sun/jna/platform/WindowUtils$W32WindowUtils$2.class...
processing com/sun/jna/platform/WindowUtils$W32WindowUtils$3.class...
processing com/sun/jna/platform/WindowUtils$W32WindowUtils$4.class...
processing com/sun/jna/platform/WindowUtils$W32WindowUtils$W32TransparentContentPane.class...
processing com/sun/jna/platform/WindowUtils$X11WindowUtils.class...
processing com/sun/jna/platform/WindowUtils$X11WindowUtils$1.class...
processing com/sun/jna/platform/WindowUtils$X11WindowUtils$2.class...
processing com/sun/jna/platform/WindowUtils$X11WindowUtils$3.class...
processing com/sun/jna/platform/WindowUtils$X11WindowUtils$4.class...
processing com/sun/jna/platform/WindowUtils$X11WindowUtils$5.class...
processing com/sun/jna/platform/WindowUtils$X11WindowUtils$PixmapSource.class...
processing com/sun/jna/platform/WindowUtils$X11WindowUtils$X11TransparentContentPane.class...
processing com/sun/jna/platform/dnd/...
writing com/sun/jna/platform/dnd/; size 0...
processing com/sun/jna/platform/dnd/DragHandler.class...
processing com/sun/jna/platform/dnd/DropHandler.class...
processing com/sun/jna/platform/dnd/DropTargetPainter.class...
processing com/sun/jna/platform/dnd/GhostedDragImage.class...
processing com/sun/jna/platform/dnd/GhostedDragImage$1.class...
processing com/sun/jna/platform/dnd/GhostedDragImage$2.class...
processing com/sun/jna/platform/dnd/GhostedDragImage$3.class...
processing com/sun/jna/platform/dnd/package.html...
writing com/sun/jna/platform/dnd/package.html; size 253...
processing com/sun/jna/platform/mac/...
writing com/sun/jna/platform/mac/; size 0...
processing com/sun/jna/platform/mac/Carbon.class...
processing com/sun/jna/platform/mac/Carbon$EventHandlerProcPtr.class...
processing com/sun/jna/platform/mac/Carbon$EventHotKeyID.class...
processing com/sun/jna/platform/mac/Carbon$EventHotKeyID$ByValue.class...
processing com/sun/jna/platform/mac/Carbon$EventTypeSpec.class...
processing com/sun/jna/platform/mac/MacFileUtils.class...
processing com/sun/jna/platform/mac/MacFileUtils$FileManager.class...
processing com/sun/jna/platform/mac/package.html...
writing com/sun/jna/platform/mac/package.html; size 192...
processing com/sun/jna/platform/package.html...
writing com/sun/jna/platform/package.html; size 208...
processing com/sun/jna/platform/unix/...
writing com/sun/jna/platform/unix/; size 0...
processing com/sun/jna/platform/unix/X11.class...
processing com/sun/jna/platform/unix/X11$Atom.class...
processing com/sun/jna/platform/unix/X11$AtomByReference.class...
processing com/sun/jna/platform/unix/X11$Colormap.class...
processing com/sun/jna/platform/unix/X11$Cursor.class...
processing com/sun/jna/platform/unix/X11$Display.class...
processing com/sun/jna/platform/unix/X11$Drawable.class...
processing com/sun/jna/platform/unix/X11$Font.class...
processing com/sun/jna/platform/unix/X11$GC.class...
processing com/sun/jna/platform/unix/X11$KeySym.class...
processing com/sun/jna/platform/unix/X11$Pixmap.class...
processing com/sun/jna/platform/unix/X11$Screen.class...
processing com/sun/jna/platform/unix/X11$Visual.class...
processing com/sun/jna/platform/unix/X11$VisualID.class...
processing com/sun/jna/platform/unix/X11$Window.class...
processing com/sun/jna/platform/unix/X11$WindowByReference.class...
processing com/sun/jna/platform/unix/X11$XAnyEvent.class...
processing com/sun/jna/platform/unix/X11$XButtonEvent.class...
processing com/sun/jna/platform/unix/X11$XButtonPressedEvent.class...
processing com/sun/jna/platform/unix/X11$XButtonReleasedEvent.class...
processing com/sun/jna/platform/unix/X11$XCirculateEvent.class...
processing com/sun/jna/platform/unix/X11$XCirculateRequestEvent.class...
processing com/sun/jna/platform/unix/X11$XClientMessageEvent.class...
processing com/sun/jna/platform/unix/X11$XClientMessageEvent$Data.class...
processing com/sun/jna/platform/unix/X11$XColormapEvent.class...
processing com/sun/jna/platform/unix/X11$XConfigureEvent.class...
processing com/sun/jna/platform/unix/X11$XConfigureRequestEvent.class...
processing com/sun/jna/platform/unix/X11$XCreateWindowEvent.class...
processing com/sun/jna/platform/unix/X11$XCrossingEvent.class...
processing com/sun/jna/platform/unix/X11$XDestroyWindowEvent.class...
processing com/sun/jna/platform/unix/X11$XDeviceByReference.class...
processing com/sun/jna/platform/unix/X11$XEnterWindowEvent.class...
processing com/sun/jna/platform/unix/X11$XErrorEvent.class...
processing com/sun/jna/platform/unix/X11$XErrorHandler.class...
processing com/sun/jna/platform/unix/X11$XEvent.class...
processing com/sun/jna/platform/unix/X11$XExposeEvent.class...
processing com/sun/jna/platform/unix/X11$XFocusChangeEvent.class...
processing com/sun/jna/platform/unix/X11$XFocusInEvent.class...
processing com/sun/jna/platform/unix/X11$XFocusOutEvent.class...
processing com/sun/jna/platform/unix/X11$XGCValues.class...
processing com/sun/jna/platform/unix/X11$XGraphicsExposeEvent.class...
processing com/sun/jna/platform/unix/X11$XGravityEvent.class...
processing com/sun/jna/platform/unix/X11$XID.class...
processing com/sun/jna/platform/unix/X11$XImage.class...
processing com/sun/jna/platform/unix/X11$XInputClassInfoByReference.class...
processing com/sun/jna/platform/unix/X11$XKeyEvent.class...
processing com/sun/jna/platform/unix/X11$XKeyboardControlRef.class...
processing com/sun/jna/platform/unix/X11$XKeyboardStateRef.class...
processing com/sun/jna/platform/unix/X11$XKeymapEvent.class...
processing com/sun/jna/platform/unix/X11$XLeaveWindowEvent.class...
processing com/sun/jna/platform/unix/X11$XMapEvent.class...
processing com/sun/jna/platform/unix/X11$XMapRequestEvent.class...
processing com/sun/jna/platform/unix/X11$XMappingEvent.class...
processing com/sun/jna/platform/unix/X11$XModifierKeymapRef.class...
processing com/sun/jna/platform/unix/X11$XMotionEvent.class...
processing com/sun/jna/platform/unix/X11$XNoExposeEvent.class...
processing com/sun/jna/platform/unix/X11$XPoint.class...
processing com/sun/jna/platform/unix/X11$XPointerMovedEvent.class...
processing com/sun/jna/platform/unix/X11$XPropertyEvent.class...
processing com/sun/jna/platform/unix/X11$XRectangle.class...
processing com/sun/jna/platform/unix/X11$XReparentEvent.class...
processing com/sun/jna/platform/unix/X11$XResizeRequestEvent.class...
processing com/sun/jna/platform/unix/X11$XSelectionClearEvent.class...
processing com/sun/jna/platform/unix/X11$XSelectionEvent.class...
processing com/sun/jna/platform/unix/X11$XSelectionRequestEvent.class...
processing com/sun/jna/platform/unix/X11$XSetWindowAttributes.class...
processing com/sun/jna/platform/unix/X11$XSizeHints.class...
processing com/sun/jna/platform/unix/X11$XSizeHints$Aspect.class...
processing com/sun/jna/platform/unix/X11$XTest.class...
processing com/sun/jna/platform/unix/X11$XTextProperty.class...
processing com/sun/jna/platform/unix/X11$XUnmapEvent.class...
processing com/sun/jna/platform/unix/X11$XVisibilityEvent.class...
processing com/sun/jna/platform/unix/X11$XVisualInfo.class...
processing com/sun/jna/platform/unix/X11$XWMHints.class...
processing com/sun/jna/platform/unix/X11$XWindowAttributes.class...
processing com/sun/jna/platform/unix/X11$Xevie.class...
processing com/sun/jna/platform/unix/X11$Xext.class...
processing com/sun/jna/platform/unix/X11$Xrender.class...
processing com/sun/jna/platform/unix/X11$Xrender$PictFormat.class...
processing com/sun/jna/platform/unix/X11$Xrender$XRenderDirectFormat.class...
processing com/sun/jna/platform/unix/X11$Xrender$XRenderPictFormat.class...
processing com/sun/jna/platform/unix/package.html...
writing com/sun/jna/platform/unix/package.html; size 203...
processing com/sun/jna/platform/win32/...
writing com/sun/jna/platform/win32/; size 0...
processing com/sun/jna/platform/win32/Advapi32.class...
processing com/sun/jna/platform/win32/Advapi32Util.class...
processing com/sun/jna/platform/win32/Advapi32Util$Account.class...
processing com/sun/jna/platform/win32/Advapi32Util$EventLogIterator.class...
processing com/sun/jna/platform/win32/Advapi32Util$EventLogRecord.class...
processing com/sun/jna/platform/win32/Advapi32Util$EventLogType.class...
processing com/sun/jna/platform/win32/BaseTSD.class...
processing com/sun/jna/platform/win32/BaseTSD$DWORD_PTR.class...
processing com/sun/jna/platform/win32/BaseTSD$LONG_PTR.class...
processing com/sun/jna/platform/win32/BaseTSD$SIZE_T.class...
processing com/sun/jna/platform/win32/BaseTSD$SSIZE_T.class...
processing com/sun/jna/platform/win32/BaseTSD$ULONG_PTR.class...
processing com/sun/jna/platform/win32/BaseTSD$ULONG_PTRByReference.class...
processing com/sun/jna/platform/win32/Crypt32.class...
processing com/sun/jna/platform/win32/Crypt32Util.class...
processing com/sun/jna/platform/win32/DsGetDC.class...
processing com/sun/jna/platform/win32/DsGetDC$DOMAIN_CONTROLLER_INFO.class...
processing com/sun/jna/platform/win32/DsGetDC$DOMAIN_CONTROLLER_INFO$ByReference.class...
processing com/sun/jna/platform/win32/DsGetDC$DS_DOMAIN_TRUSTS.class...
processing com/sun/jna/platform/win32/DsGetDC$DS_DOMAIN_TRUSTS$ByReference.class...
processing com/sun/jna/platform/win32/DsGetDC$PDOMAIN_CONTROLLER_INFO.class...
processing com/sun/jna/platform/win32/DsGetDC$PDOMAIN_CONTROLLER_INFO$ByReference.class...
processing com/sun/jna/platform/win32/DsGetDC$PDS_DOMAIN_TRUSTS.class...
processing com/sun/jna/platform/win32/DsGetDC$PDS_DOMAIN_TRUSTS$ByReference.class...
processing com/sun/jna/platform/win32/GDI32.class...
processing com/sun/jna/platform/win32/Guid.class...
processing com/sun/jna/platform/win32/Guid$GUID.class...
processing com/sun/jna/platform/win32/Guid$GUID$ByReference.class...
processing com/sun/jna/platform/win32/Kernel32.class...
processing com/sun/jna/platform/win32/Kernel32Util.class...
processing com/sun/jna/platform/win32/LMAccess.class...
processing com/sun/jna/platform/win32/LMAccess$GROUP_INFO_0.class...
processing com/sun/jna/platform/win32/LMAccess$GROUP_INFO_1.class...
processing com/sun/jna/platform/win32/LMAccess$GROUP_INFO_2.class...
processing com/sun/jna/platform/win32/LMAccess$GROUP_INFO_3.class...
processing com/sun/jna/platform/win32/LMAccess$GROUP_USERS_INFO_0.class...
processing com/sun/jna/platform/win32/LMAccess$LOCALGROUP_INFO_0.class...
processing com/sun/jna/platform/win32/LMAccess$LOCALGROUP_INFO_1.class...
processing com/sun/jna/platform/win32/LMAccess$LOCALGROUP_USERS_INFO_0.class...
processing com/sun/jna/platform/win32/LMAccess$USER_INFO_0.class...
processing com/sun/jna/platform/win32/LMAccess$USER_INFO_1.class...
processing com/sun/jna/platform/win32/LMAccess$USER_INFO_23.class...
processing com/sun/jna/platform/win32/LMCons.class...
processing com/sun/jna/platform/win32/LMErr.class...
processing com/sun/jna/platform/win32/LMJoin.class...
processing com/sun/jna/platform/win32/LMJoin$NETSETUP_JOIN_STATUS.class...
processing com/sun/jna/platform/win32/Msi.class...
processing com/sun/jna/platform/win32/NTSecApi.class...
processing com/sun/jna/platform/win32/NTSecApi$LSA_FOREST_TRUST_BINARY_DATA.class...
processing com/sun/jna/platform/win32/NTSecApi$LSA_FOREST_TRUST_DOMAIN_INFO.class...
processing com/sun/jna/platform/win32/NTSecApi$LSA_FOREST_TRUST_INFORMATION.class...
processing com/sun/jna/platform/win32/NTSecApi$LSA_FOREST_TRUST_INFORMATION$ByReference.class...
processing com/sun/jna/platform/win32/NTSecApi$LSA_FOREST_TRUST_RECORD.class...
processing com/sun/jna/platform/win32/NTSecApi$LSA_FOREST_TRUST_RECORD$ByReference.class...
processing com/sun/jna/platform/win32/NTSecApi$LSA_FOREST_TRUST_RECORD$UNION.class...
processing com/sun/jna/platform/win32/NTSecApi$LSA_FOREST_TRUST_RECORD$UNION$ByReference.class...
processing com/sun/jna/platform/win32/NTSecApi$LSA_UNICODE_STRING.class...
processing com/sun/jna/platform/win32/NTSecApi$LSA_UNICODE_STRING$ByReference.class...
processing com/sun/jna/platform/win32/NTSecApi$PLSA_FOREST_TRUST_INFORMATION.class...
processing com/sun/jna/platform/win32/NTSecApi$PLSA_FOREST_TRUST_INFORMATION$ByReference.class...
processing com/sun/jna/platform/win32/NTSecApi$PLSA_FOREST_TRUST_RECORD.class...
processing com/sun/jna/platform/win32/NTSecApi$PLSA_FOREST_TRUST_RECORD$ByReference.class...
processing com/sun/jna/platform/win32/NTSecApi$PLSA_UNICODE_STRING.class...
processing com/sun/jna/platform/win32/NTSecApi$PLSA_UNICODE_STRING$ByReference.class...
processing com/sun/jna/platform/win32/NTStatus.class...
processing com/sun/jna/platform/win32/Netapi32.class...
processing com/sun/jna/platform/win32/Netapi32Util.class...
processing com/sun/jna/platform/win32/Netapi32Util$DomainController.class...
processing com/sun/jna/platform/win32/Netapi32Util$DomainTrust.class...
processing com/sun/jna/platform/win32/Netapi32Util$Group.class...
processing com/sun/jna/platform/win32/Netapi32Util$LocalGroup.class...
processing com/sun/jna/platform/win32/Netapi32Util$User.class...
processing com/sun/jna/platform/win32/Netapi32Util$UserInfo.class...
processing com/sun/jna/platform/win32/NtDll.class...
processing com/sun/jna/platform/win32/NtDllUtil.class...
processing com/sun/jna/platform/win32/ObjBase.class...
processing com/sun/jna/platform/win32/Ole32.class...
processing com/sun/jna/platform/win32/Ole32Util.class...
processing com/sun/jna/platform/win32/Oleaut32.class...
processing com/sun/jna/platform/win32/Secur32.class...
processing com/sun/jna/platform/win32/Secur32$EXTENDED_NAME_FORMAT.class...
processing com/sun/jna/platform/win32/Secur32Util.class...
processing com/sun/jna/platform/win32/Secur32Util$SecurityPackage.class...
processing com/sun/jna/platform/win32/SetupApi.class...
processing com/sun/jna/platform/win32/SetupApi$SP_DEVICE_INTERFACE_DATA.class...
processing com/sun/jna/platform/win32/SetupApi$SP_DEVICE_INTERFACE_DATA$ByReference.class...
processing com/sun/jna/platform/win32/SetupApi$SP_DEVINFO_DATA.class...
processing com/sun/jna/platform/win32/SetupApi$SP_DEVINFO_DATA$ByReference.class...
processing com/sun/jna/platform/win32/Shell32.class...
processing com/sun/jna/platform/win32/Shell32Util.class...
processing com/sun/jna/platform/win32/ShellAPI.class...
processing com/sun/jna/platform/win32/ShellAPI$SHFILEOPSTRUCT.class...
processing com/sun/jna/platform/win32/ShlObj.class...
processing com/sun/jna/platform/win32/Sspi.class...
processing com/sun/jna/platform/win32/Sspi$CredHandle.class...
processing com/sun/jna/platform/win32/Sspi$CtxtHandle.class...
processing com/sun/jna/platform/win32/Sspi$PSecHandle.class...
processing com/sun/jna/platform/win32/Sspi$PSecHandle$ByReference.class...
processing com/sun/jna/platform/win32/Sspi$PSecPkgInfo.class...
processing com/sun/jna/platform/win32/Sspi$PSecPkgInfo$ByReference.class...
processing com/sun/jna/platform/win32/Sspi$SECURITY_INTEGER.class...
processing com/sun/jna/platform/win32/Sspi$SecBuffer.class...
processing com/sun/jna/platform/win32/Sspi$SecBuffer$ByReference.class...
processing com/sun/jna/platform/win32/Sspi$SecBufferDesc.class...
processing com/sun/jna/platform/win32/Sspi$SecHandle.class...
processing com/sun/jna/platform/win32/Sspi$SecHandle$ByReference.class...
processing com/sun/jna/platform/win32/Sspi$SecPkgInfo.class...
processing com/sun/jna/platform/win32/Sspi$SecPkgInfo$ByReference.class...
processing com/sun/jna/platform/win32/Sspi$TimeStamp.class...
processing com/sun/jna/platform/win32/Tlhelp32.class...
processing com/sun/jna/platform/win32/Tlhelp32$PROCESSENTRY32.class...
processing com/sun/jna/platform/win32/Tlhelp32$PROCESSENTRY32$ByReference.class...
processing com/sun/jna/platform/win32/User32.class...
processing com/sun/jna/platform/win32/VerRsrc.class...
processing com/sun/jna/platform/win32/VerRsrc$VS_FIXEDFILEINFO.class...
processing com/sun/jna/platform/win32/VerRsrc$VS_FIXEDFILEINFO$ByReference.class...
processing com/sun/jna/platform/win32/Version.class...
processing com/sun/jna/platform/win32/W32Errors.class...
processing com/sun/jna/platform/win32/W32FileMonitor.class...
processing com/sun/jna/platform/win32/W32FileMonitor$1.class...
processing com/sun/jna/platform/win32/W32FileMonitor$FileInfo.class...
processing com/sun/jna/platform/win32/W32FileUtils.class...
processing com/sun/jna/platform/win32/W32Service.class...
processing com/sun/jna/platform/win32/W32ServiceManager.class...
processing com/sun/jna/platform/win32/WTypes.class...
processing com/sun/jna/platform/win32/Wdm.class...
processing com/sun/jna/platform/win32/Wdm$KEY_BASIC_INFORMATION.class...
processing com/sun/jna/platform/win32/Wdm$KEY_INFORMATION_CLASS.class...
processing com/sun/jna/platform/win32/Win32Exception.class...
processing com/sun/jna/platform/win32/WinBase.class...
processing com/sun/jna/platform/win32/WinBase$FILETIME.class...
processing com/sun/jna/platform/win32/WinBase$FILETIME$ByReference.class...
processing com/sun/jna/platform/win32/WinBase$MEMORYSTATUSEX.class...
processing com/sun/jna/platform/win32/WinBase$OVERLAPPED.class...
processing com/sun/jna/platform/win32/WinBase$PROCESS_INFORMATION.class...
processing com/sun/jna/platform/win32/WinBase$PROCESS_INFORMATION$ByReference.class...
processing com/sun/jna/platform/win32/WinBase$SECURITY_ATTRIBUTES.class...
processing com/sun/jna/platform/win32/WinBase$STARTUPINFO.class...
processing com/sun/jna/platform/win32/WinBase$SYSTEMTIME.class...
processing com/sun/jna/platform/win32/WinBase$SYSTEM_INFO.class...
processing com/sun/jna/platform/win32/WinBase$SYSTEM_INFO$PI.class...
processing com/sun/jna/platform/win32/WinBase$SYSTEM_INFO$PI$ByReference.class...
processing com/sun/jna/platform/win32/WinBase$SYSTEM_INFO$UNION.class...
processing com/sun/jna/platform/win32/WinBase$SYSTEM_INFO$UNION$ByReference.class...
processing com/sun/jna/platform/win32/WinCrypt.class...
processing com/sun/jna/platform/win32/WinCrypt$CRYPTPROTECT_PROMPTSTRUCT.class...
processing com/sun/jna/platform/win32/WinCrypt$DATA_BLOB.class...
processing com/sun/jna/platform/win32/WinDef.class...
processing com/sun/jna/platform/win32/WinDef$DWORD.class...
processing com/sun/jna/platform/win32/WinDef$DWORDLONG.class...
processing com/sun/jna/platform/win32/WinDef$HBITMAP.class...
processing com/sun/jna/platform/win32/WinDef$HCURSOR.class...
processing com/sun/jna/platform/win32/WinDef$HDC.class...
processing com/sun/jna/platform/win32/WinDef$HFONT.class...
processing com/sun/jna/platform/win32/WinDef$HICON.class...
processing com/sun/jna/platform/win32/WinDef$HINSTANCE.class...
processing com/sun/jna/platform/win32/WinDef$HMENU.class...
processing com/sun/jna/platform/win32/WinDef$HMODULE.class...
processing com/sun/jna/platform/win32/WinDef$HPALETTE.class...
processing com/sun/jna/platform/win32/WinDef$HPEN.class...
processing com/sun/jna/platform/win32/WinDef$HRGN.class...
processing com/sun/jna/platform/win32/WinDef$HRSRC.class...
processing com/sun/jna/platform/win32/WinDef$HWND.class...
processing com/sun/jna/platform/win32/WinDef$LONG.class...
processing com/sun/jna/platform/win32/WinDef$LPARAM.class...
processing com/sun/jna/platform/win32/WinDef$LRESULT.class...
processing com/sun/jna/platform/win32/WinDef$RECT.class...
processing com/sun/jna/platform/win32/WinDef$UINT_PTR.class...
processing com/sun/jna/platform/win32/WinDef$ULONGLONG.class...
processing com/sun/jna/platform/win32/WinDef$WORD.class...
processing com/sun/jna/platform/win32/WinDef$WPARAM.class...
processing com/sun/jna/platform/win32/WinError.class...
writing classes.dex; size 278264...
processing com/sun/jna/platform/win32/WinGDI.class...trouble 
writing output: Too many field references to fit in one dex file: 4347; max is 4096.You may try using multi-dex. If multi-dex is enabled then the list of classes for the main dex list is too large.References by package:  4347 com.sun.jna.platform.win32UNEXPECTED TOP-LEVEL EXCEPTION:java.lang.RuntimeException: Exception parsing classes    
at com.android.dx.command.dexer.Main.processClass(Main.java:766)    
at com.android.dx.command.dexer.Main.processFileBytes(Main.java:729)    
at com.android.dx.command.dexer.Main.access$1000036(Unknown Source:0)   
at com.android.dx.command.dexer.Main$FileBytesConsumer.processFileBytes(Main.java:1699) 
at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:287)    
at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:166)    
at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:144)   
at com.android.dx.command.dexer.Main.processOne(Main.java:682)  
at com.android.dx.command.dexer.Main.processAllFiles(Main.java:575) 
at com.android.dx.command.dexer.Main.runMultiDex(Main.java:361) 
at com.android.dx.command.dexer.Main.runDx(Main.java:283)   
at com.android.dx.command.dexer.Main.main(Main.java:241)    
at com.android.dx.command.Main.main(Main.java:95)   
at net.kdt.pojavlaunch.Tools.runDx(Tools.java:286)  
at net.kdt.pojavlaunch.MCLauncherActivity$GameRunnerTask.doInBackground(MCLauncherActivity.java:547)    
at net.kdt.pojavlaunch.MCLauncherActivity$GameRunnerTask.doInBackground(Unknown Source:2)   
at android.os.AsyncTask$3.call(AsyncTask.java:378)  
at java.util.concurrent.FutureTask.run(FutureTask.java:266) 
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:289)    
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)  
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)  
at java.lang.Thread.run(Thread.java:919)
Caused by: java.lang.RuntimeException: java.lang.NullPointerException: Attempt to get length of null array  
at com.android.dx.command.dexer.Main.rotateDexFile(Main.java:659)   
at com.android.dx.command.dexer.Main.access$1000033(Unknown Source:0)   
at com.android.dx.command.dexer.Main$DirectClassFileConsumer.call(Main.java:1834)   
at com.android.dx.command.dexer.Main$DirectClassFileConsumer.access$1000070(Unknown Source:0)   
at com.android.dx.command.dexer.Main.processClass(Main.java:760)    ... 21 more
Caused by: java.lang.NullPointerException: Attempt to get length of null array  
at com.android.dx.command.dexer.Main$OutputResources.putNoCheck(Main.java:2024) 
at com.android.dx.command.dexer.Main$OutputResources.putDex(Main.java:2011) 
at com.android.dx.command.dexer.Main$OutputResources.access$1000079(Unknown Source:0)   
at com.android.dx.command.dexer.Main.rotateDexFile(Main.java:657)   ... 25 more1 error; abortingExiting with code 1
khanhduytran0 commented 4 years ago

I enable multidex by setting down to fields 4k. This cause the problem.

khanhduytran0 commented 4 years ago

Seems like you are attempt to run 1.11? Use 1.7.10, 1.8 or 1.9? will not have com.sun.jna...

artdeell commented 4 years ago

I tried 1.8 and 1.9. 1.8 works okay, but 1.9 still doesn't work.

artdeell commented 4 years ago

Because 1.9 uses jna, too.

artdeell commented 4 years ago

Forge and Optifine uses tweaker classes provided by libraries. Your arg list is valid for vanilka, but not for Forge/Optifine. Optifine's json looks like that: { "id": "1.10-OptiFine_HD_U_H5", "inheritsFrom": "1.10", "time": "2020-03-18T21:06:43+03:00", "releaseTime": "2020-03-18T21:06:43+03:00", "type": "release", "libraries": [ { "name": "optifine:OptiFine:1.10_HD_U_H5" }, { "name": "optifine:launchwrapper-of:2.1" } ], "mainClass": "net.minecraft.launchwrapper.Launch", "minecraftArguments": "--username ${auth_player_name} --version ${version_name} --gameDir ${game_directory} --assetsDir ${assets_root} --assetIndex ${assets_index_name} --uuid ${auth_uuid} --accessToken ${auth_access_token} --userType ${user_type} --versionType ${version_type} --tweakClass optifine.OptiFineTweaker" }

abdo-A028 commented 4 years ago

Minecraft 1.9 doesn't workSent from Samsung tablet. -------- Original message --------From: artdeell notifications@github.com Date: 23/03/2020 09:27 (GMT+02:00) To: khanhduytran0/PojavLauncher PojavLauncher@noreply.github.com Cc: abdo-A028 abdulrahman.adel2006@gmail.com, Mention mention@noreply.github.com Subject: Re: [khanhduytran0/PojavLauncher] Way to run versions higher than 1.8 on Android 9 (#1) Because 1.9 uses jna, too.

—You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub, or unsubscribe. [ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/khanhduytran0/PojavLauncher/issues/1#issuecomment-602428819", "url": "https://github.com/khanhduytran0/PojavLauncher/issues/1#issuecomment-602428819", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]

abdo-A028 commented 4 years ago

That was a bad, make it work or anyone help u if he know about thisSent from Samsung tablet. -------- Original message --------From: khanhduytran0 notifications@github.com Date: 23/03/2020 08:52 (GMT+02:00) To: khanhduytran0/PojavLauncher PojavLauncher@noreply.github.com Cc: abdo-A028 abdulrahman.adel2006@gmail.com, Mention mention@noreply.github.com Subject: Re: [khanhduytran0/PojavLauncher] Way to run versions higher than 1.8 on Android 9 (#1) So I decoded: Unable to convert library %s processing archive /storage/emulated/0/games/minecraft/libraries/net/java/dev/jna/platform/3.4.0/platform-3.4.0_orig.jar... processing META-INF/... writing META-INF/; size 0... processing META-INF/MANIFEST.MF... processing com/... writing com/; size 0... processing com/sun/... writing com/sun/; size 0... processing com/sun/jna/... writing com/sun/jna/; size 0... processing com/sun/jna/platform/... writing com/sun/jna/platform/; size 0... processing com/sun/jna/platform/FileMonitor.class... processing com/sun/jna/platform/FileMonitor$FileEvent.class... processing com/sun/jna/platform/FileMonitor$FileListener.class... processing com/sun/jna/platform/FileMonitor$Holder.class... processing com/sun/jna/platform/FileUtils.class... processing com/sun/jna/platform/FileUtils$1.class... processing com/sun/jna/platform/FileUtils$DefaultFileUtils.class... processing com/sun/jna/platform/FileUtils$Holder.class... processing com/sun/jna/platform/KeyboardUtils.class... processing com/sun/jna/platform/KeyboardUtils$1.class... processing com/sun/jna/platform/KeyboardUtils$MacKeyboardUtils.class... processing com/sun/jna/platform/KeyboardUtils$NativeKeyboardUtils.class... processing com/sun/jna/platform/KeyboardUtils$W32KeyboardUtils.class... processing com/sun/jna/platform/KeyboardUtils$X11KeyboardUtils.class... processing com/sun/jna/platform/RasterRangesUtils.class... processing com/sun/jna/platform/RasterRangesUtils$1.class... processing com/sun/jna/platform/RasterRangesUtils$RangesOutput.class... processing com/sun/jna/platform/WindowUtils.class... processing com/sun/jna/platform/WindowUtils$1.class... processing com/sun/jna/platform/WindowUtils$HeavyweightForcer.class... processing com/sun/jna/platform/WindowUtils$Holder.class... processing com/sun/jna/platform/WindowUtils$MacWindowUtils.class... processing com/sun/jna/platform/WindowUtils$MacWindowUtils$1.class... processing com/sun/jna/platform/WindowUtils$MacWindowUtils$OSXMaskingContentPane.class... processing com/sun/jna/platform/WindowUtils$NativeWindowUtils.class... processing com/sun/jna/platform/WindowUtils$NativeWindowUtils$1.class... processing com/sun/jna/platform/WindowUtils$NativeWindowUtils$2.class... processing com/sun/jna/platform/WindowUtils$NativeWindowUtils$3.class... processing com/sun/jna/platform/WindowUtils$NativeWindowUtils$TransparentContentPane.class... processing com/sun/jna/platform/WindowUtils$RepaintTrigger.class... processing com/sun/jna/platform/WindowUtils$RepaintTrigger$Listener.class... processing com/sun/jna/platform/WindowUtils$W32WindowUtils.class... processing com/sun/jna/platform/WindowUtils$W32WindowUtils$1.class... processing com/sun/jna/platform/WindowUtils$W32WindowUtils$2.class... processing com/sun/jna/platform/WindowUtils$W32WindowUtils$3.class... processing com/sun/jna/platform/WindowUtils$W32WindowUtils$4.class... processing com/sun/jna/platform/WindowUtils$W32WindowUtils$W32TransparentContentPane.class... processing com/sun/jna/platform/WindowUtils$X11WindowUtils.class... processing com/sun/jna/platform/WindowUtils$X11WindowUtils$1.class... processing com/sun/jna/platform/WindowUtils$X11WindowUtils$2.class... processing com/sun/jna/platform/WindowUtils$X11WindowUtils$3.class... processing com/sun/jna/platform/WindowUtils$X11WindowUtils$4.class... processing com/sun/jna/platform/WindowUtils$X11WindowUtils$5.class... processing com/sun/jna/platform/WindowUtils$X11WindowUtils$PixmapSource.class... processing com/sun/jna/platform/WindowUtils$X11WindowUtils$X11TransparentContentPane.class... processing com/sun/jna/platform/dnd/... writing com/sun/jna/platform/dnd/; size 0... processing com/sun/jna/platform/dnd/DragHandler.class... processing com/sun/jna/platform/dnd/DropHandler.class... processing com/sun/jna/platform/dnd/DropTargetPainter.class... processing com/sun/jna/platform/dnd/GhostedDragImage.class... processing com/sun/jna/platform/dnd/GhostedDragImage$1.class... processing com/sun/jna/platform/dnd/GhostedDragImage$2.class... processing com/sun/jna/platform/dnd/GhostedDragImage$3.class... processing com/sun/jna/platform/dnd/package.html... writing com/sun/jna/platform/dnd/package.html; size 253... processing com/sun/jna/platform/mac/... writing com/sun/jna/platform/mac/; size 0... processing com/sun/jna/platform/mac/Carbon.class... processing com/sun/jna/platform/mac/Carbon$EventHandlerProcPtr.class... processing com/sun/jna/platform/mac/Carbon$EventHotKeyID.class... processing com/sun/jna/platform/mac/Carbon$EventHotKeyID$ByValue.class... processing com/sun/jna/platform/mac/Carbon$EventTypeSpec.class... processing com/sun/jna/platform/mac/MacFileUtils.class... processing com/sun/jna/platform/mac/MacFileUtils$FileManager.class... processing com/sun/jna/platform/mac/package.html... writing com/sun/jna/platform/mac/package.html; size 192... processing com/sun/jna/platform/package.html... writing com/sun/jna/platform/package.html; size 208... processing com/sun/jna/platform/unix/... writing com/sun/jna/platform/unix/; size 0... processing com/sun/jna/platform/unix/X11.class... processing com/sun/jna/platform/unix/X11$Atom.class... processing com/sun/jna/platform/unix/X11$AtomByReference.class... processing com/sun/jna/platform/unix/X11$Colormap.class... processing com/sun/jna/platform/unix/X11$Cursor.class... processing com/sun/jna/platform/unix/X11$Display.class... processing com/sun/jna/platform/unix/X11$Drawable.class... processing com/sun/jna/platform/unix/X11$Font.class... processing com/sun/jna/platform/unix/X11$GC.class... processing com/sun/jna/platform/unix/X11$KeySym.class... processing com/sun/jna/platform/unix/X11$Pixmap.class... processing com/sun/jna/platform/unix/X11$Screen.class... processing com/sun/jna/platform/unix/X11$Visual.class... processing com/sun/jna/platform/unix/X11$VisualID.class... processing com/sun/jna/platform/unix/X11$Window.class... processing com/sun/jna/platform/unix/X11$WindowByReference.class... processing com/sun/jna/platform/unix/X11$XAnyEvent.class... processing com/sun/jna/platform/unix/X11$XButtonEvent.class... processing com/sun/jna/platform/unix/X11$XButtonPressedEvent.class... processing com/sun/jna/platform/unix/X11$XButtonReleasedEvent.class... processing com/sun/jna/platform/unix/X11$XCirculateEvent.class... processing com/sun/jna/platform/unix/X11$XCirculateRequestEvent.class... processing com/sun/jna/platform/unix/X11$XClientMessageEvent.class... processing com/sun/jna/platform/unix/X11$XClientMessageEvent$Data.class... processing com/sun/jna/platform/unix/X11$XColormapEvent.class... processing com/sun/jna/platform/unix/X11$XConfigureEvent.class... processing com/sun/jna/platform/unix/X11$XConfigureRequestEvent.class... processing com/sun/jna/platform/unix/X11$XCreateWindowEvent.class... processing com/sun/jna/platform/unix/X11$XCrossingEvent.class... processing com/sun/jna/platform/unix/X11$XDestroyWindowEvent.class... processing com/sun/jna/platform/unix/X11$XDeviceByReference.class... processing com/sun/jna/platform/unix/X11$XEnterWindowEvent.class... processing com/sun/jna/platform/unix/X11$XErrorEvent.class... processing com/sun/jna/platform/unix/X11$XErrorHandler.class... processing com/sun/jna/platform/unix/X11$XEvent.class... processing com/sun/jna/platform/unix/X11$XExposeEvent.class... processing com/sun/jna/platform/unix/X11$XFocusChangeEvent.class... processing com/sun/jna/platform/unix/X11$XFocusInEvent.class... processing com/sun/jna/platform/unix/X11$XFocusOutEvent.class... processing com/sun/jna/platform/unix/X11$XGCValues.class... processing com/sun/jna/platform/unix/X11$XGraphicsExposeEvent.class... processing com/sun/jna/platform/unix/X11$XGravityEvent.class... processing com/sun/jna/platform/unix/X11$XID.class... processing com/sun/jna/platform/unix/X11$XImage.class... processing com/sun/jna/platform/unix/X11$XInputClassInfoByReference.class... processing com/sun/jna/platform/unix/X11$XKeyEvent.class... processing com/sun/jna/platform/unix/X11$XKeyboardControlRef.class... processing com/sun/jna/platform/unix/X11$XKeyboardStateRef.class... processing com/sun/jna/platform/unix/X11$XKeymapEvent.class... processing com/sun/jna/platform/unix/X11$XLeaveWindowEvent.class... processing com/sun/jna/platform/unix/X11$XMapEvent.class... processing com/sun/jna/platform/unix/X11$XMapRequestEvent.class... processing com/sun/jna/platform/unix/X11$XMappingEvent.class... processing com/sun/jna/platform/unix/X11$XModifierKeymapRef.class... processing com/sun/jna/platform/unix/X11$XMotionEvent.class... processing com/sun/jna/platform/unix/X11$XNoExposeEvent.class... processing com/sun/jna/platform/unix/X11$XPoint.class... processing com/sun/jna/platform/unix/X11$XPointerMovedEvent.class... processing com/sun/jna/platform/unix/X11$XPropertyEvent.class... processing com/sun/jna/platform/unix/X11$XRectangle.class... processing com/sun/jna/platform/unix/X11$XReparentEvent.class... processing com/sun/jna/platform/unix/X11$XResizeRequestEvent.class... processing com/sun/jna/platform/unix/X11$XSelectionClearEvent.class... processing com/sun/jna/platform/unix/X11$XSelectionEvent.class... processing com/sun/jna/platform/unix/X11$XSelectionRequestEvent.class... processing com/sun/jna/platform/unix/X11$XSetWindowAttributes.class... processing com/sun/jna/platform/unix/X11$XSizeHints.class... processing com/sun/jna/platform/unix/X11$XSizeHints$Aspect.class... processing com/sun/jna/platform/unix/X11$XTest.class... processing com/sun/jna/platform/unix/X11$XTextProperty.class... processing com/sun/jna/platform/unix/X11$XUnmapEvent.class... processing com/sun/jna/platform/unix/X11$XVisibilityEvent.class... processing com/sun/jna/platform/unix/X11$XVisualInfo.class... processing com/sun/jna/platform/unix/X11$XWMHints.class... processing com/sun/jna/platform/unix/X11$XWindowAttributes.class... processing com/sun/jna/platform/unix/X11$Xevie.class... processing com/sun/jna/platform/unix/X11$Xext.class... processing com/sun/jna/platform/unix/X11$Xrender.class... processing com/sun/jna/platform/unix/X11$Xrender$PictFormat.class... processing com/sun/jna/platform/unix/X11$Xrender$XRenderDirectFormat.class... processing com/sun/jna/platform/unix/X11$Xrender$XRenderPictFormat.class... processing com/sun/jna/platform/unix/package.html... writing com/sun/jna/platform/unix/package.html; size 203... processing com/sun/jna/platform/win32/... writing com/sun/jna/platform/win32/; size 0... processing com/sun/jna/platform/win32/Advapi32.class... processing com/sun/jna/platform/win32/Advapi32Util.class... processing com/sun/jna/platform/win32/Advapi32Util$Account.class... processing com/sun/jna/platform/win32/Advapi32Util$EventLogIterator.class... processing com/sun/jna/platform/win32/Advapi32Util$EventLogRecord.class... processing com/sun/jna/platform/win32/Advapi32Util$EventLogType.class... processing com/sun/jna/platform/win32/BaseTSD.class... processing com/sun/jna/platform/win32/BaseTSD$DWORD_PTR.class... processing com/sun/jna/platform/win32/BaseTSD$LONG_PTR.class... processing com/sun/jna/platform/win32/BaseTSD$SIZE_T.class... processing com/sun/jna/platform/win32/BaseTSD$SSIZE_T.class... processing com/sun/jna/platform/win32/BaseTSD$ULONG_PTR.class... processing com/sun/jna/platform/win32/BaseTSD$ULONG_PTRByReference.class... processing com/sun/jna/platform/win32/Crypt32.class... processing com/sun/jna/platform/win32/Crypt32Util.class... processing com/sun/jna/platform/win32/DsGetDC.class... processing com/sun/jna/platform/win32/DsGetDC$DOMAIN_CONTROLLER_INFO.class... processing com/sun/jna/platform/win32/DsGetDC$DOMAIN_CONTROLLER_INFO$ByReference.class... processing com/sun/jna/platform/win32/DsGetDC$DS_DOMAIN_TRUSTS.class... processing com/sun/jna/platform/win32/DsGetDC$DS_DOMAIN_TRUSTS$ByReference.class... processing com/sun/jna/platform/win32/DsGetDC$PDOMAIN_CONTROLLER_INFO.class... processing com/sun/jna/platform/win32/DsGetDC$PDOMAIN_CONTROLLER_INFO$ByReference.class... processing com/sun/jna/platform/win32/DsGetDC$PDS_DOMAIN_TRUSTS.class... processing com/sun/jna/platform/win32/DsGetDC$PDS_DOMAIN_TRUSTS$ByReference.class... processing com/sun/jna/platform/win32/GDI32.class... processing com/sun/jna/platform/win32/Guid.class... processing com/sun/jna/platform/win32/Guid$GUID.class... processing com/sun/jna/platform/win32/Guid$GUID$ByReference.class... processing com/sun/jna/platform/win32/Kernel32.class... processing com/sun/jna/platform/win32/Kernel32Util.class... processing com/sun/jna/platform/win32/LMAccess.class... processing com/sun/jna/platform/win32/LMAccess$GROUP_INFO_0.class... processing com/sun/jna/platform/win32/LMAccess$GROUP_INFO_1.class... processing com/sun/jna/platform/win32/LMAccess$GROUP_INFO_2.class... processing com/sun/jna/platform/win32/LMAccess$GROUP_INFO_3.class... processing com/sun/jna/platform/win32/LMAccess$GROUP_USERS_INFO_0.class... processing com/sun/jna/platform/win32/LMAccess$LOCALGROUP_INFO_0.class... processing com/sun/jna/platform/win32/LMAccess$LOCALGROUP_INFO_1.class... processing com/sun/jna/platform/win32/LMAccess$LOCALGROUP_USERS_INFO_0.class... processing com/sun/jna/platform/win32/LMAccess$USER_INFO_0.class... processing com/sun/jna/platform/win32/LMAccess$USER_INFO_1.class... processing com/sun/jna/platform/win32/LMAccess$USER_INFO_23.class... processing com/sun/jna/platform/win32/LMCons.class... processing com/sun/jna/platform/win32/LMErr.class... processing com/sun/jna/platform/win32/LMJoin.class... processing com/sun/jna/platform/win32/LMJoin$NETSETUP_JOIN_STATUS.class... processing com/sun/jna/platform/win32/Msi.class... processing com/sun/jna/platform/win32/NTSecApi.class... processing com/sun/jna/platform/win32/NTSecApi$LSA_FOREST_TRUST_BINARY_DATA.class... processing com/sun/jna/platform/win32/NTSecApi$LSA_FOREST_TRUST_DOMAIN_INFO.class... processing com/sun/jna/platform/win32/NTSecApi$LSA_FOREST_TRUST_INFORMATION.class... processing com/sun/jna/platform/win32/NTSecApi$LSA_FOREST_TRUST_INFORMATION$ByReference.class... processing com/sun/jna/platform/win32/NTSecApi$LSA_FOREST_TRUST_RECORD.class... processing com/sun/jna/platform/win32/NTSecApi$LSA_FOREST_TRUST_RECORD$ByReference.class... processing com/sun/jna/platform/win32/NTSecApi$LSA_FOREST_TRUST_RECORD$UNION.class... processing com/sun/jna/platform/win32/NTSecApi$LSA_FOREST_TRUST_RECORD$UNION$ByReference.class... processing com/sun/jna/platform/win32/NTSecApi$LSA_UNICODE_STRING.class... processing com/sun/jna/platform/win32/NTSecApi$LSA_UNICODE_STRING$ByReference.class... processing com/sun/jna/platform/win32/NTSecApi$PLSA_FOREST_TRUST_INFORMATION.class... processing com/sun/jna/platform/win32/NTSecApi$PLSA_FOREST_TRUST_INFORMATION$ByReference.class... processing com/sun/jna/platform/win32/NTSecApi$PLSA_FOREST_TRUST_RECORD.class... processing com/sun/jna/platform/win32/NTSecApi$PLSA_FOREST_TRUST_RECORD$ByReference.class... processing com/sun/jna/platform/win32/NTSecApi$PLSA_UNICODE_STRING.class... processing com/sun/jna/platform/win32/NTSecApi$PLSA_UNICODE_STRING$ByReference.class... processing com/sun/jna/platform/win32/NTStatus.class... processing com/sun/jna/platform/win32/Netapi32.class... processing com/sun/jna/platform/win32/Netapi32Util.class... processing com/sun/jna/platform/win32/Netapi32Util$DomainController.class... processing com/sun/jna/platform/win32/Netapi32Util$DomainTrust.class... processing com/sun/jna/platform/win32/Netapi32Util$Group.class... processing com/sun/jna/platform/win32/Netapi32Util$LocalGroup.class... processing com/sun/jna/platform/win32/Netapi32Util$User.class... processing com/sun/jna/platform/win32/Netapi32Util$UserInfo.class... processing com/sun/jna/platform/win32/NtDll.class... processing com/sun/jna/platform/win32/NtDllUtil.class... processing com/sun/jna/platform/win32/ObjBase.class... processing com/sun/jna/platform/win32/Ole32.class... processing com/sun/jna/platform/win32/Ole32Util.class... processing com/sun/jna/platform/win32/Oleaut32.class... processing com/sun/jna/platform/win32/Secur32.class... processing com/sun/jna/platform/win32/Secur32$EXTENDED_NAME_FORMAT.class... processing com/sun/jna/platform/win32/Secur32Util.class... processing com/sun/jna/platform/win32/Secur32Util$SecurityPackage.class... processing com/sun/jna/platform/win32/SetupApi.class... processing com/sun/jna/platform/win32/SetupApi$SP_DEVICE_INTERFACE_DATA.class... processing com/sun/jna/platform/win32/SetupApi$SP_DEVICE_INTERFACE_DATA$ByReference.class... processing com/sun/jna/platform/win32/SetupApi$SP_DEVINFO_DATA.class... processing com/sun/jna/platform/win32/SetupApi$SP_DEVINFO_DATA$ByReference.class... processing com/sun/jna/platform/win32/Shell32.class... processing com/sun/jna/platform/win32/Shell32Util.class... processing com/sun/jna/platform/win32/ShellAPI.class... processing com/sun/jna/platform/win32/ShellAPI$SHFILEOPSTRUCT.class... processing com/sun/jna/platform/win32/ShlObj.class... processing com/sun/jna/platform/win32/Sspi.class... processing com/sun/jna/platform/win32/Sspi$CredHandle.class... processing com/sun/jna/platform/win32/Sspi$CtxtHandle.class... processing com/sun/jna/platform/win32/Sspi$PSecHandle.class... processing com/sun/jna/platform/win32/Sspi$PSecHandle$ByReference.class... processing com/sun/jna/platform/win32/Sspi$PSecPkgInfo.class... processing com/sun/jna/platform/win32/Sspi$PSecPkgInfo$ByReference.class... processing com/sun/jna/platform/win32/Sspi$SECURITY_INTEGER.class... processing com/sun/jna/platform/win32/Sspi$SecBuffer.class... processing com/sun/jna/platform/win32/Sspi$SecBuffer$ByReference.class... processing com/sun/jna/platform/win32/Sspi$SecBufferDesc.class... processing com/sun/jna/platform/win32/Sspi$SecHandle.class... processing com/sun/jna/platform/win32/Sspi$SecHandle$ByReference.class... processing com/sun/jna/platform/win32/Sspi$SecPkgInfo.class... processing com/sun/jna/platform/win32/Sspi$SecPkgInfo$ByReference.class... processing com/sun/jna/platform/win32/Sspi$TimeStamp.class... processing com/sun/jna/platform/win32/Tlhelp32.class... processing com/sun/jna/platform/win32/Tlhelp32$PROCESSENTRY32.class... processing com/sun/jna/platform/win32/Tlhelp32$PROCESSENTRY32$ByReference.class... processing com/sun/jna/platform/win32/User32.class... processing com/sun/jna/platform/win32/VerRsrc.class... processing com/sun/jna/platform/win32/VerRsrc$VS_FIXEDFILEINFO.class... processing com/sun/jna/platform/win32/VerRsrc$VS_FIXEDFILEINFO$ByReference.class... processing com/sun/jna/platform/win32/Version.class... processing com/sun/jna/platform/win32/W32Errors.class... processing com/sun/jna/platform/win32/W32FileMonitor.class... processing com/sun/jna/platform/win32/W32FileMonitor$1.class... processing com/sun/jna/platform/win32/W32FileMonitor$FileInfo.class... processing com/sun/jna/platform/win32/W32FileUtils.class... processing com/sun/jna/platform/win32/W32Service.class... processing com/sun/jna/platform/win32/W32ServiceManager.class... processing com/sun/jna/platform/win32/WTypes.class... processing com/sun/jna/platform/win32/Wdm.class... processing com/sun/jna/platform/win32/Wdm$KEY_BASIC_INFORMATION.class... processing com/sun/jna/platform/win32/Wdm$KEY_INFORMATION_CLASS.class... processing com/sun/jna/platform/win32/Win32Exception.class... processing com/sun/jna/platform/win32/WinBase.class... processing com/sun/jna/platform/win32/WinBase$FILETIME.class... processing com/sun/jna/platform/win32/WinBase$FILETIME$ByReference.class... processing com/sun/jna/platform/win32/WinBase$MEMORYSTATUSEX.class... processing com/sun/jna/platform/win32/WinBase$OVERLAPPED.class... processing com/sun/jna/platform/win32/WinBase$PROCESS_INFORMATION.class... processing com/sun/jna/platform/win32/WinBase$PROCESS_INFORMATION$ByReference.class... processing com/sun/jna/platform/win32/WinBase$SECURITY_ATTRIBUTES.class... processing com/sun/jna/platform/win32/WinBase$STARTUPINFO.class... processing com/sun/jna/platform/win32/WinBase$SYSTEMTIME.class... processing com/sun/jna/platform/win32/WinBase$SYSTEM_INFO.class... processing com/sun/jna/platform/win32/WinBase$SYSTEM_INFO$PI.class... processing com/sun/jna/platform/win32/WinBase$SYSTEM_INFO$PI$ByReference.class... processing com/sun/jna/platform/win32/WinBase$SYSTEM_INFO$UNION.class... processing com/sun/jna/platform/win32/WinBase$SYSTEM_INFO$UNION$ByReference.class... processing com/sun/jna/platform/win32/WinCrypt.class... processing com/sun/jna/platform/win32/WinCrypt$CRYPTPROTECT_PROMPTSTRUCT.class... processing com/sun/jna/platform/win32/WinCrypt$DATA_BLOB.class... processing com/sun/jna/platform/win32/WinDef.class... processing com/sun/jna/platform/win32/WinDef$DWORD.class... processing com/sun/jna/platform/win32/WinDef$DWORDLONG.class... processing com/sun/jna/platform/win32/WinDef$HBITMAP.class... processing com/sun/jna/platform/win32/WinDef$HCURSOR.class... processing com/sun/jna/platform/win32/WinDef$HDC.class... processing com/sun/jna/platform/win32/WinDef$HFONT.class... processing com/sun/jna/platform/win32/WinDef$HICON.class... processing com/sun/jna/platform/win32/WinDef$HINSTANCE.class... processing com/sun/jna/platform/win32/WinDef$HMENU.class... processing com/sun/jna/platform/win32/WinDef$HMODULE.class... processing com/sun/jna/platform/win32/WinDef$HPALETTE.class... processing com/sun/jna/platform/win32/WinDef$HPEN.class... processing com/sun/jna/platform/win32/WinDef$HRGN.class... processing com/sun/jna/platform/win32/WinDef$HRSRC.class... processing com/sun/jna/platform/win32/WinDef$HWND.class... processing com/sun/jna/platform/win32/WinDef$LONG.class... processing com/sun/jna/platform/win32/WinDef$LPARAM.class... processing com/sun/jna/platform/win32/WinDef$LRESULT.class... processing com/sun/jna/platform/win32/WinDef$RECT.class... processing com/sun/jna/platform/win32/WinDef$UINT_PTR.class... processing com/sun/jna/platform/win32/WinDef$ULONGLONG.class... processing com/sun/jna/platform/win32/WinDef$WORD.class... processing com/sun/jna/platform/win32/WinDef$WPARAM.class... processing com/sun/jna/platform/win32/WinError.class... writing classes.dex; size 278264... processing com/sun/jna/platform/win32/WinGDI.class...trouble writing output: Too many field references to fit in one dex file: 4347; max is 4096.You may try using multi-dex. If multi-dex is enabled then the list of classes for the main dex list is too large.References by package: 4347 com.sun.jna.platform.win32UNEXPECTED TOP-LEVEL EXCEPTION:java.lang.RuntimeException: Exception parsing classes
at com.android.dx.command.dexer.Main.processClass(Main.java:766)
at com.android.dx.command.dexer.Main.processFileBytes(Main.java:729)
at com.android.dx.command.dexer.Main.access$1000036(Unknown Source:0)
at com.android.dx.command.dexer.Main$FileBytesConsumer.processFileBytes(Main.java:1699) at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:287)
at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:166)
at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:144)
at com.android.dx.command.dexer.Main.processOne(Main.java:682)
at com.android.dx.command.dexer.Main.processAllFiles(Main.java:575) at com.android.dx.command.dexer.Main.runMultiDex(Main.java:361) at com.android.dx.command.dexer.Main.runDx(Main.java:283)
at com.android.dx.command.dexer.Main.main(Main.java:241)
at com.android.dx.command.Main.main(Main.java:95)
at net.kdt.pojavlaunch.Tools.runDx(Tools.java:286)
at net.kdt.pojavlaunch.MCLauncherActivity$GameRunnerTask.doInBackground(MCLauncherActivity.java:547)
at net.kdt.pojavlaunch.MCLauncherActivity$GameRunnerTask.doInBackground(Unknown Source:2)
at android.os.AsyncTask$3.call(AsyncTask.java:378)
at java.util.concurrent.FutureTask.run(FutureTask.java:266) at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:289)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:919) Caused by: java.lang.RuntimeException: java.lang.NullPointerException: Attempt to get length of null array
at com.android.dx.command.dexer.Main.rotateDexFile(Main.java:659)
at com.android.dx.command.dexer.Main.access$1000033(Unknown Source:0)
at com.android.dx.command.dexer.Main$DirectClassFileConsumer.call(Main.java:1834)
at com.android.dx.command.dexer.Main$DirectClassFileConsumer.access$1000070(Unknown Source:0)
at com.android.dx.command.dexer.Main.processClass(Main.java:760) ... 21 more Caused by: java.lang.NullPointerException: Attempt to get length of null array
at com.android.dx.command.dexer.Main$OutputResources.putNoCheck(Main.java:2024) at com.android.dx.command.dexer.Main$OutputResources.putDex(Main.java:2011) at com.android.dx.command.dexer.Main$OutputResources.access$1000079(Unknown Source:0)
at com.android.dx.command.dexer.Main.rotateDexFile(Main.java:657) ... 25 more1 error; abortingExiting with code 1

—You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub, or unsubscribe. [ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/khanhduytran0/PojavLauncher/issues/1#issuecomment-602417410", "url": "https://github.com/khanhduytran0/PojavLauncher/issues/1#issuecomment-602417410", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]

artdeell commented 4 years ago

Can U just wait for new preview? Currently he does some WIP around this.

abdo-A028 commented 4 years ago

I tested v2.4.2Minecraft 1.8 worked, but 1.9 and higher version don't workSent from Samsung tablet. -------- Original message --------From: artdeell notifications@github.com Date: 23/03/2020 15:56 (GMT+02:00) To: khanhduytran0/PojavLauncher PojavLauncher@noreply.github.com Cc: abdo-A028 abdulrahman.adel2006@gmail.com, Mention mention@noreply.github.com Subject: Re: [khanhduytran0/PojavLauncher] Way to run versions higher than 1.8 on Android 9 (#1) Can U just wait for new preview? Currently he does some WIP around this.

—You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub, or unsubscribe. [ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/khanhduytran0/PojavLauncher/issues/1#issuecomment-602605563", "url": "https://github.com/khanhduytran0/PojavLauncher/issues/1#issuecomment-602605563", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]

artdeell commented 4 years ago

I know,this is currently the problem. Also, can you write from Github? When you write using mail it adds lotta garbage in the message.

artdeell commented 4 years ago

ф

abdo-A028 commented 4 years ago

Ok.I tested all versions and I discovered that Minecraft from version 1.8 to 1.11.2 works. But Minecraft 1.12 and higher version doesn't work on Pojavlauncher 2.4.2Sent from my Samsung Galaxy smartphone. -------- Original message --------From: artdeell notifications@github.com Date: 23/03/2020 18:16 (GMT+02:00) To: khanhduytran0/PojavLauncher PojavLauncher@noreply.github.com Cc: abdo-A028 abdulrahman.adel2006@gmail.com, Mention mention@noreply.github.com Subject: Re: [khanhduytran0/PojavLauncher] Way to run versions higher than 1.8 on Android 9 (#1) I know,this is currently the problem. Also, can you write from Github? When you write using mail it adds lotta garbage in the message.

—You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub, or unsubscribe. [ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/khanhduytran0/PojavLauncher/issues/1#issuecomment-602703061", "url": "https://github.com/khanhduytran0/PojavLauncher/issues/1#issuecomment-602703061", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]

artdeell commented 4 years ago

What is your Android version? Currently 1.12 can be run only on Android 8 and higher.

khanhduytran0 commented 4 years ago

I'm using Android 5.0 stock. Android-x86 is 9.0 but when I run 1.12.2 it display bootstrap is null...

artdeell commented 4 years ago

Can I test? Is there a new fix?

artdeell commented 4 years ago

I downloaded latest preview. Issue with JNA is still there. Looks like launcher passes --multi-dex by the wrong way. t r o u b l e w r i t i n g o u t p u t : T o o m a n y f i e l d r e f e r e n c e s t o f i t i n o n e d e x f i l e : 4 3 4 7 ; m a x i s 4 9 6 . Y o u m a y t r y u s i n g m u l t i - d e x . I f m u l t i - d e x i s e n a b l e d t h e n t h e l i s t o f c l a s s e s f o r t h e m a i n d e x l i s t i s t o o l a r g e . R e f e r e n c e s b y p a c k a g e : 4 3 4 7 c o m . s u n . j n a . p l a t f o r m . w i n 3 2 U N E X P E C T E D T O P - L E V E L E X C E P T I O N : j a v a . l a n g . R u n t i m e E x c e p t i o n : E x c e p t i o n p a r s i n g c l a s s e s a t c o m . a n d r o i d . d x . c o m m a n d . d e x e r . M a i n . p r o c e s s C l a s s ( M a i n . j a v a : 7 6 6 ) a t c o m . a n d r o i d . d x . c o m m a n d . d e x e r . M a i n . p r o c e s s F i l e B y t e s ( M a i n . j a v a : 7 2 9 ) a t c o m . a n d r o i d . d x . c o m m a n d . d e x e r . M a i n . a c c e s s $ 1 3 6 ( U n k n o w n S o u r c e : ) a t c o m . a n d r o i d . d x . c o m m a n d . d e x e r . M a i n $ F i l e B y t e s C o n s u m e r . p r o c e s s F i l e B y t e s ( M a i n . j a v a : 1 6 9 9 ) a t c o m . a n d r o i d . d x . c f . d i r e c t . C l a s s P a t h O p e n e r . p r o c e s s A r c h i v e ( C l a s s P a t h O p e n e r . j a v a : 2 8 7 ) a t c o m . a n d r o i d . d x . c f . d i r e c t . C l a s s P a t h O p e n e r . p r o c e s s O n e ( C l a s s P a t h O p e n e r . j a v a : 1 6 6 ) a t c o m . a n d r o i d . d x . c f . d i r e c t . C l a s s P a t h O p e n e r . p r o c e s s ( C l a s s P a t h O p e n e r . j a v a : 1 4 4 ) a t c o m . a n d r o i d . d x . c o m m a n d . d e x e r . M a i n . p r o c e s s O n e ( M a i n . j a v a : 6 8 2 ) a t c o m . a n d r o i d . d x . c o m m a n d . d e x e r . M a i n . p r o c e s s A l l F i l e s ( M a i n . j a v a : 5 7 5 ) a t c o m . a n d r o i d . d x . c o m m a n d . d e x e r . M a i n . r u n M u l t i D e x ( M a i n . j a v a : 3 6 1 ) a t c o m . a n d r o i d . d x . c o m m a n d . d e x e r . M a i n . r u n D x ( M a i n . j a v a : 2 8 3 ) a t c o m . a n d r o i d . d x . c o m m a n d . d e x e r . M a i n . m a i n ( M a i n . j a v a : 2 4 1 ) a t c o m . a n d r o i d . d x . c o m m a n d . M a i n . m a i n ( M a i n . j a v a : 9 5 ) a t n e t . k d t . p o j a v l a u n c h . T o o l s . r u n D x ( T o o l s . j a v a : 2 8 6 ) a t n e t . k d t . p o j a v l a u n c h . M C L a u n c h e r A c t i v i t y $ G a m e R u n n e r T a s k . d o I n B a c k g r o u n d ( M C L a u n c h e r A c t i v i t y . j a v a : 5 4 7 ) a t n e t . k d t . p o j a v l a u n c h . M C L a u n c h e r A c t i v i t y $ G a m e R u n n e r T a s k . d o I n B a c k g r o u n d ( U n k n o w n S o u r c e : 2 ) a t a n d r o i d . o s . A s y n c T a s k $ 3 . c a l l ( A s y n c T a s k . j a v a : 3 7 8 ) a t j a v a . u t i l . c o n c u r r e n t . F u t u r e T a s k . r u n ( F u t u r e T a s k . j a v a : 2 6 6 ) a t a n d r o i d . o s . A s y n c T a s k $ S e r i a l E x e c u t o r $ 1 . r u n ( A s y n c T a s k . j a v a : 2 8 9 ) a t j a v a . u t i l . c o n c u r r e n t . T h r e a d P o o l E x e c u t o r . r u n W o r k e r ( T h r e a d P o o l E x e c u t o r . j a v a : 1 1 6 7 ) a t j a v a . u t i l . c o n c u r r e n t . T h r e a d P o o l E x e c u t o r $ W o r k e r . r u n ( T h r e a d P o o l E x e c u t o r . j a v a : 6 4 1 ) a t j a v a . l a n g . T h r e a d . r u n ( T h r e a d . j a v a : 9 1 9 ) C a u s e d b y : j a v a . l a n g . R u n t i m e E x c e p t i o n : j a v a . l a n g . N u l l P o i n t e r E x c e p t i o n : A t t e m p t t o g e t l e n g t h o f n u l l a r r a y a t c o m . a n d r o i d . d x . c o m m a n d . d e x e r . M a i n . r o t a t e D e x F i l e ( M a i n . j a v a : 6 5 9 ) a t c o m . a n d r o i d . d x . c o m m a n d . d e x e r . M a i n . a c c e s s $ 1 3 3 ( U n k n o w n S o u r c e : ) a t c o m . a n d r o i d . d x . c o m m a n d . d e x e r . M a i n $ D i r e c t C l a s s F i l e C o n s u m e r . c a l l ( M a i n . j a v a : 1 8 3 4 ) a t c o m . a n d r o i d . d x . c o m m a n d . d e x e r . M a i n $ D i r e c t C l a s s F i l e C o n s u m e r . a c c e s s $ 1 7 ( U n k n o w n S o u r c e : ) a t c o m . a n d r o i d . d x . c o m m a n d . d e x e r . M a i n . p r o c e s s C l a s s ( M a i n . j a v a : 7 6 ) . . . 2 1 m o r e C a u s e d b y : j a v a . l a n g . N u l l P o i n t e r E x c e p t i o n : A t t e m p t t o g e t l e n g t h o f n u l l a r r a y a t c o m . a n d r o i d . d x . c o m m a n d . d e x e r . M a i n $ O u t p u t R e s o u r c e s . p u t N o C h e c k ( M a i n . j a v a : 2 2 4 ) a t c o m . a n d r o i d . d x . c o m m a n d . d e x e r . M a i n $ O u t p u t R e s o u r c e s . p u t D e x ( M a i n . j a v a : 2 1 1 ) a t c o m . a n d r o i d . d x . c o m m a n d . d e x e r . M a i n $ O u t p u t R e s o u r c e s . a c c e s s $ 1 7 9 ( U n k n o w n S o u r c e : ) a t c o m . a n d r o i d . d x . c o m m a n d . d e x e r . M a i n . r o t a t e D e x F i l e ( M a i n . j a v a : 6 5 7 ) . . . 2 5 m o r e 1 e r r o r ; a b o r t i n g E x i t i n g w i t h c o d e 1

artdeell commented 4 years ago

Oh, that's not the launcher problem. By some reason, developers annotated all classes with 'RUNTIME' annotation, so DX needs to put them all in main 'classes.dex' file, and there's no way to fix this easily.

khanhduytran0 commented 4 years ago

Uploaded preview5. This add an option to set Max DX References. Increase it if you got error when convert com.sun.jna. Increase it means increase RAM usage. https://drive.google.com/file/d/1q3QZbkAGuIDaaJ3JRNs_5SawYt9UF3xg/view?usp=drivesdk If you increase to max, it is default value of original DX 1.16

khanhduytran0 commented 4 years ago

Options > Settings

artdeell commented 4 years ago

Hm. My device allocates 512 megs of RAM to apps. What value do you recommend?

khanhduytran0 commented 4 years ago

I don't know. You can try with 8k, 12k or higher if not success.

artdeell commented 4 years ago

I'm currently at 8k, and it passed the stuckpoint; JNA library!

artdeell commented 4 years ago

Is 4096 a format limit or no? Or it's created for max compartiblity?

khanhduytran0 commented 4 years ago

4096 instead of 65536 in original DX, I changed to enable early multidex support and lower memory usage. Congratulations, and preview5 set minimum to 8k.

artdeell commented 4 years ago

8k minimum may cause some issues with older devices, i think. Now I trying to run 1.12.

khanhduytran0 commented 4 years ago

So I should decrease back to 4k for 256MB heap compatible.

artdeell commented 4 years ago

Does launcher load class or it launches separate VM?

khanhduytran0 commented 4 years ago

It launch using DexClassLoader which LaunchWrapper got an error java.lang.ClassCastException: Cannot cast PathClassLoader to LaunchClassLoader. This cause Optifine tweak can't be loaded. I will do some hacks to pass.

artdeell commented 4 years ago

Add an annotation to allow casting to PathClassLoader.

artdeell commented 4 years ago

Tested 1.12. It crashed right after launch. My log: java.lang.reflect.InvocationTargetException at java.lang.reflect.Method.invoke(Native Method) at net.kdt.pojavlaunch.MainActivity.runCraft(MainActivity.java:760) at net.kdt.pojavlaunch.MainActivity.access$1000072(Unknown Source:0) at net.kdt.pojavlaunch.MainActivity$100000012$100000011.run(MainActivity.java:499) at java.lang.Thread.run(Thread.java:919) Caused by: java.lang.NoSuchMethodError: No static method metafactory(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite; in class Ljava/lang/invoke/LambdaMetafactory; or its super classes (declaration of 'java.lang.invoke.LambdaMetafactory' appears in /apex/com.android.runtime/javalib/core-oj.jar) at bhz.<init>(SourceFile:395) at net.minecraft.client.main.Main.main(SourceFile:123) ... 5 more

May be it will work on Android 9.

khanhduytran0 commented 4 years ago

Android 9: https://github.com/khanhduytran0/PojavLauncher/issues/1#issuecomment-603033930

artdeell commented 4 years ago

Maybe test on ARM? @abdo-A028 ?д

khanhduytran0 commented 4 years ago

net.minecraft.launchwrapper.LaunchClassLoader extends java.net.URLClassLoader so can't cast to dalvik.system.PathClassLoader. Tried java.net.URLClassLoader before but always got java.lang.ClassNotFoundException

abdo-A028 commented 4 years ago

I don't know, but see my Samsung A7 (2017)Sent from my Samsung Galaxy smartphone. -------- Original message --------From: artdeell notifications@github.com Date: 24/03/2020 07:01 (GMT+02:00) To: khanhduytran0/PojavLauncher PojavLauncher@noreply.github.com Cc: abdo-A028 abdulrahman.adel2006@gmail.com, Mention mention@noreply.github.com Subject: Re: [khanhduytran0/PojavLauncher] Way to run versions higher than 1.8 on Android 9 (#1) What is your Android version? Currently 1.12 can be run only on Android 8 and higher.

—You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub, or unsubscribe. [ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/khanhduytran0/PojavLauncher/issues/1#issuecomment-603016603", "url": "https://github.com/khanhduytran0/PojavLauncher/issues/1#issuecomment-603016603", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]

artdeell commented 4 years ago

...because java.net.URLClassLoader not exists in Android.

khanhduytran0 commented 4 years ago

It exists but broken. https://developer.android.com/reference/java/net/URLClassLoader Can't understand why Android don't deprecate it.

artdeell commented 4 years ago

May be it throws exception because it tries to load a class but finds no Java classes? May be it's not broken? may be it loads pure-Java classes?

khanhduytran0 commented 4 years ago

Google search to see someone attempt to use it. They got recommended to DexClassLoader

abdo-A028 commented 4 years ago

If u can't install new update, make sure you clear your data to test downloading 1.12Sent from my Samsung Galaxy smartphone. -------- Original message --------From: artdeell notifications@github.com Date: 24/03/2020 10:29 (GMT+02:00) To: khanhduytran0/PojavLauncher PojavLauncher@noreply.github.com Cc: abdo-A028 abdulrahman.adel2006@gmail.com, Mention mention@noreply.github.com Subject: Re: [khanhduytran0/PojavLauncher] Way to run versions higher than 1.8 on Android 9 (#1) Can I test? Is there a new fix?

—You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub, or unsubscribe. [ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/khanhduytran0/PojavLauncher/issues/1#issuecomment-603099352", "url": "https://github.com/khanhduytran0/PojavLauncher/issues/1#issuecomment-603099352", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]

abdo-A028 commented 4 years ago

That was the message when I download library content to Minecraft Sent from my Samsung Galaxy smartphone. -------- Original message --------From: artdeell notifications@github.com Date: 24/03/2020 10:36 (GMT+02:00) To: khanhduytran0/PojavLauncher PojavLauncher@noreply.github.com Cc: abdo-A028 abdulrahman.adel2006@gmail.com, Mention mention@noreply.github.com Subject: Re: [khanhduytran0/PojavLauncher] Way to run versions higher than 1.8 on Android 9 (#1) I downloaded latest preview. Issue with JNA is still there. Looks like launcher passes --multi-dex by the wrong way. t r o u b l e w r i t i n g o u t p u t : T o o m a n y f i e l d r e f e r e n c e s t o f i t i n o n e d e x f i l e : 4 3 4 7 ; m a x i s 4 9 6 . Y o u m a y t r y u s i n g m u l t i - d e x . I f m u l t i - d e x i s e n a b l e d t h e n t h e l i s t o f c l a s s e s f o r t h e m a i n d e x l i s t i s t o o l a r g e . R e f e r e n c e s b y p a c k a g e : 4 3 4 7 c o m . s u n . j n a . p l a t f o r m . w i n 3 2 U N E X P E C T E D T O P - L E V E L E X C E P T I O N : j a v a . l a n g . R u n t i m e E x c e p t i o n : E x c e p t i o n p a r s i n g c l a s s e s a t c o m . a n d r o i d . d x . c o m m a n d . d e x e r . M a i n . p r o c e s s C l a s s ( M a i n . j a v a : 7 6 6 ) a t c o m . a n d r o i d . d x . c o m m a n d . d e x e r . M a i n . p r o c e s s F i l e B y t e s ( M a i n . j a v a : 7 2 9 ) a t c o m . a n d r o i d . d x . c o m m a n d . d e x e r . M a i n . a c c e s s $ 1 3 6 ( U n k n o w n S o u r c e : ) a t c o m . a n d r o i d . d x . c o m m a n d . d e x e r . M a i n $ F i l e B y t e s C o n s u m e r . p r o c e s s F i l e B y t e s ( M a i n . j a v a : 1 6 9 9 ) a t c o m . a n d r o i d . d x . c f . d i r e c t . C l a s s P a t h O p e n e r . p r o c e s s A r c h i v e ( C l a s s P a t h O p e n e r . j a v a : 2 8 7 ) a t c o m . a n d r o i d . d x . c f . d i r e c t . C l a s s P a t h O p e n e r . p r o c e s s O n e ( C l a s s P a t h O p e n e r . j a v a : 1 6 6 ) a t c o m . a n d r o i d . d x . c f . d i r e c t . C l a s s P a t h O p e n e r . p r o c e s s ( C l a s s P a t h O p e n e r . j a v a : 1 4 4 ) a t c o m . a n d r o i d . d x . c o m m a n d . d e x e r . M a i n . p r o c e s s O n e ( M a i n . j a v a : 6 8 2 ) a t c o m . a n d r o i d . d x . c o m m a n d . d e x e r . M a i n . p r o c e s s A l l F i l e s ( M a i n . j a v a : 5 7 5 ) a t c o m . a n d r o i d . d x . c o m m a n d . d e x e r . M a i n . r u n M u l t i D e x ( M a i n . j a v a : 3 6 1 ) a t c o m . a n d r o i d . d x . c o m m a n d . d e x e r . M a i n . r u n D x ( M a i n . j a v a : 2 8 3 ) a t c o m . a n d r o i d . d x . c o m m a n d . d e x e r . M a i n . m a i n ( M a i n . j a v a : 2 4 1 ) a t c o m . a n d r o i d . d x . c o m m a n d . M a i n . m a i n ( M a i n . j a v a : 9 5 ) a t n e t . k d t . p o j a v l a u n c h . T o o l s . r u n D x ( T o o l s . j a v a : 2 8 6 ) a t n e t . k d t . p o j a v l a u n c h . M C L a u n c h e r A c t i v i t y $ G a m e R u n n e r T a s k . d o I n B a c k g r o u n d ( M C L a u n c h e r A c t i v i t y . j a v a : 5 4 7 ) a t n e t . k d t . p o j a v l a u n c h . M C L a u n c h e r A c t i v i t y $ G a m e R u n n e r T a s k . d o I n B a c k g r o u n d ( U n k n o w n S o u r c e : 2 ) a t a n d r o i d . o s . A s y n c T a s k $ 3 . c a l l ( A s y n c T a s k . j a v a : 3 7 8 ) a t j a v a . u t i l . c o n c u r r e n t . F u t u r e T a s k . r u n ( F u t u r e T a s k . j a v a : 2 6 6 ) a t a n d r o i d . o s . A s y n c T a s k $ S e r i a l E x e c u t o r $ 1 . r u n ( A s y n c T a s k . j a v a : 2 8 9 ) a t j a v a . u t i l . c o n c u r r e n t . T h r e a d P o o l E x e c u t o r . r u n W o r k e r ( T h r e a d P o o l E x e c u t o r . j a v a : 1 1 6 7 ) a t j a v a . u t i l . c o n c u r r e n t . T h r e a d P o o l E x e c u t o r $ W o r k e r . r u n ( T h r e a d P o o l E x e c u t o r . j a v a : 6 4 1 ) a t j a v a . l a n g . T h r e a d . r u n ( T h r e a d . j a v a : 9 1 9 ) C a u s e d b y : j a v a . l a n g . R u n t i m e E x c e p t i o n : j a v a . l a n g . N u l l P o i n t e r E x c e p t i o n : A t t e m p t t o g e t l e n g t h o f n u l l a r r a y a t c o m . a n d r o i d . d x . c o m m a n d . d e x e r . M a i n . r o t a t e D e x F i l e ( M a i n . j a v a : 6 5 9 ) a t c o m . a n d r o i d . d x . c o m m a n d . d e x e r . M a i n . a c c e s s $ 1 3 3 ( U n k n o w n S o u r c e : ) a t c o m . a n d r o i d . d x . c o m m a n d . d e x e r . M a i n $ D i r e c t C l a s s F i l e C o n s u m e r . c a l l ( M a i n . j a v a : 1 8 3 4 ) a t c o m . a n d r o i d . d x . c o m m a n d . d e x e r . M a i n $ D i r e c t C l a s s F i l e C o n s u m e r . a c c e s s $ 1 7 ( U n k n o w n S o u r c e : ) a t c o m . a n d r o i d . d x . c o m m a n d . d e x e r . M a i n . p r o c e s s C l a s s ( M a i n . j a v a : 7 6 ) . . . 2 1 m o r e C a u s e d b y : j a v a . l a n g . N u l l P o i n t e r E x c e p t i o n : A t t e m p t t o g e t l e n g t h o f n u l l a r r a y a t c o m . a n d r o i d . d x . c o m m a n d . d e x e r . M a i n $ O u t p u t R e s o u r c e s . p u t N o C h e c k ( M a i n . j a v a : 2 2 4 ) a t c o m . a n d r o i d . d x . c o m m a n d . d e x e r . M a i n $ O u t p u t R e s o u r c e s . p u t D e x ( M a i n . j a v a : 2 1 1 ) a t c o m . a n d r o i d . d x . c o m m a n d . d e x e r . M a i n $ O u t p u t R e s o u r c e s . a c c e s s $ 1 7 9 ( U n k n o w n S o u r c e : ) a t c o m . a n d r o i d . d x . c o m m a n d . d e x e r . M a i n . r o t a t e D e x F i l e ( M a i n . j a v a : 6 5 7 ) . . . 2 5 m o r e 1 e r r o r ; a b o r t i n g E x i t i n g w i t h c o d e 1

—You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub, or unsubscribe. [ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/khanhduytran0/PojavLauncher/issues/1#issuecomment-603103047", "url": "https://github.com/khanhduytran0/PojavLauncher/issues/1#issuecomment-603103047", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]

abdo-A028 commented 4 years ago

There are some missing in Minecraft javaBanners don't have a texture and the sounds of Minecraft javaThis is the problemSent from my Samsung Galaxy smartphone. -------- Original message --------From: artdeell notifications@github.com Date: 24/03/2020 11:37 (GMT+02:00) To: khanhduytran0/PojavLauncher PojavLauncher@noreply.github.com Cc: abdo-A028 abdulrahman.adel2006@gmail.com, Mention mention@noreply.github.com Subject: Re: [khanhduytran0/PojavLauncher] Way to run versions higher than 1.8 on Android 9 (#1) Tested 1.12. It crashed right after launch. My log: java.lang.reflect.InvocationTargetException at java.lang.reflect.Method.invoke(Native Method) at net.kdt.pojavlaunch.MainActivity.runCraft(MainActivity.java:760) at net.kdt.pojavlaunch.MainActivity.access$1000072(Unknown Source:0) at net.kdt.pojavlaunch.MainActivity$100000012$100000011.run(MainActivity.java:499) at java.lang.Thread.run(Thread.java:919) Caused by: java.lang.NoSuchMethodError: No static method metafactory(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite; in class Ljava/lang/invoke/LambdaMetafactory; or its super classes (declaration of 'java.lang.invoke.LambdaMetafactory' appears in /apex/com.android.runtime/javalib/core-oj.jar) at bhz.(SourceFile:395) at net.minecraft.client.main.Main.main(SourceFile:123) ... 5 more

—You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub, or unsubscribe. [ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/khanhduytran0/PojavLauncher/issues/1#issuecomment-603132248", "url": "https://github.com/khanhduytran0/PojavLauncher/issues/1#issuecomment-603132248", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]

artdeell commented 4 years ago

Did you downloaded assests? Also, you may try to increase DEX limit.