Giter Club home page Giter Club logo

Comments (5)

kefir500 avatar kefir500 commented on July 21, 2024

Sorry for the delay.
Does this happen to any APK?
Could you please provide the logs?

  • Repeat the steps until you get the error.
  • Click Help –> Logs –> Open Log Directory (or simply press Ctrl + L).
  • Provide the logfile (or its contents).

from apk-icon-editor.

milesbenson avatar milesbenson commented on July 21, 2024

Same issue here:

[12:18:15.892] APK Icon Editor v1.7.1
[12:18:15.893] Initializing...
[12:18:15.895] Starting...

[12:18:15.933] Screen DPI: 100
[12:18:17.001] Language set to "en"

[12:18:17.127] JRE (32-bit) version:
[12:18:17.127] JDK (32-bit) version:
[12:18:17.127] Apktool version:

[12:18:17.127] java -version
No Java runtime present, requesting install.

[12:18:17.127] javac -version
No Java runtime present, requesting install.

[12:18:19.184] Updater: v1.7.1

[12:19:30.316] Unpacking "/Users/Ben/Downloads/kodi-17.5.1-Krypton-armeabi-v7a.apk"
[12:19:30.316] Using Apktool: false
[12:19:30.316] Output directory: "/var/folders/g4/h8tbq5d9471_qnbfh6sffn2m0000gn/T/apk-icon-editor/"
[12:19:30.715] aapt exit code: 0
[12:19:30.715]
--- DUMP START ---
package: name='org.xbmc.kodi' versionCode='1750003' versionName='17.5' platformBuildVersionName='5.0.1-1624448'
sdkVersion:'21'
targetSdkVersion:'22'
uses-permission: name='android.permission.WRITE_EXTERNAL_STORAGE'
uses-permission: name='android.permission.INTERNET'
uses-permission: name='android.permission.WAKE_LOCK'
uses-permission: name='android.permission.GET_TASKS'
uses-permission: name='android.permission.BLUETOOTH'
uses-permission: name='android.permission.MODIFY_AUDIO_SETTINGS'
application-label:'Kodi'
application-icon-120:'res/drawable-ldpi-v4/ic_launcher.png'
application-icon-160:'res/drawable-mdpi-v4/ic_launcher.png'
application-icon-240:'res/drawable-hdpi-v4/ic_launcher.png'
application-icon-320:'res/drawable-xhdpi-v4/ic_launcher.png'
application-icon-480:'res/drawable-xxhdpi-v4/ic_launcher.png'
application-icon-640:'res/drawable-xxxhdpi-v4/ic_launcher.png'
application: label='Kodi' icon='res/drawable-mdpi-v4/ic_launcher.png' banner='res/drawable-xhdpi-v4/banner.png'
launchable-activity: name='org.xbmc.kodi.Splash' label='' icon=''
leanback-launchable-activity: name='org.xbmc.kodi.Splash' label='' icon='' banner=''
uses-permission: name='android.permission.READ_EXTERNAL_STORAGE'
uses-implied-permission: name='android.permission.READ_EXTERNAL_STORAGE' reason='requested WRITE_EXTERNAL_STORAGE'
feature-group: label=''
uses-feature-not-required: name='android.hardware.bluetooth'
uses-feature: name='android.hardware.screen.landscape'
uses-feature-not-required: name='android.hardware.touchscreen'
uses-feature-not-required: name='android.hardware.touchscreen.multitouch'
uses-feature-not-required: name='android.hardware.type.television'
uses-feature-not-required: name='android.hardware.usb.host'
uses-feature-not-required: name='android.hardware.wifi'
main
other-activities
other-receivers
supports-screens: 'small' 'normal' 'large' 'xlarge'
supports-any-density: 'true'
locales: '--_--'
densities: '120' '160' '240' '320' '480' '640'
native-code: 'armeabi-v7a'
--- DUMP END ---

[12:19:30.715] Application name: "Kodi"
[12:19:30.716] Application version code: "1750003"
[12:19:30.716] Application version name: "17.5"
[12:19:34.343] Unpacked in 3.627s
[12:19:34.344] Icons: ("res/drawable-ldpi-v4/ic_launcher.png", "res/drawable-mdpi-v4/ic_launcher.png", "res/drawable-hdpi-v4/ic_launcher.png", "res/drawable-xhdpi-v4/ic_launcher.png", "res/drawable-xxhdpi-v4/ic_launcher.png", "res/drawable-xxxhdpi-v4/ic_launcher.png", "res/drawable-xhdpi-v4/banner.png")
[12:19:34.350] Done.

[12:20:05.010]
--- Packing APK ---
[12:20:05.010] Output file: "/Users/Ben/Downloads/kodi1751.apk"
[12:20:05.010] Contents directory: "/var/folders/g4/h8tbq5d9471_qnbfh6sffn2m0000gn/T/apk-icon-editor//apk/"
[12:20:05.010] New application title: "Kodi"
[12:20:05.010] New version code: "1750003"
[12:20:05.010] New version name: "17.5"
[12:20:05.010] Using Apktool: false
[12:20:05.010] Ratio: 9
[12:20:05.010] Sign: true
[12:20:05.010] Zipalign: true
[12:20:05.010] Using KeyStore: false
[12:20:05.010] PEM found;
[12:20:05.010] PK8 found;
[12:20:25.273] Signing...
[12:20:25.319] Java exit code: 1
[12:20:25.319] "No Java runtime present, requesting install.\n"
[12:20:25.320] Optimizing...
[12:20:25.870] Done.

[12:20:25.929] Warning (): APK packed with following warnings:
• APK is not signed;
[12:20:34.962] Updater: v1.7.1

But JAVA is installed and up to date (macOS High Sierra)

from apk-icon-editor.

etden avatar etden commented on July 21, 2024

[09:03:18.592] APK Icon Editor v1.7.1
[09:03:18.592] Initializing...
[09:03:18.673] Starting...

[09:03:19.139] Screen DPI: 100
[09:03:22.139] Language set to "en"

[09:03:26.571] Updater: v1.7.1

[09:03:28.144] JRE (32-bit) version: 9
[09:03:28.144] JDK (32-bit) version:
[09:03:28.144] Apktool version: 2.2.2

[09:03:28.144] java -version
java version "9"
Java(TM) SE Runtime Environment (build 9+181)
Java HotSpot(TM) 64-Bit Server VM (build 9+181, mixed mode)

[09:03:28.144] javac -version

[09:03:52.382] Unpacking "/Users/politwika-1/Google Drive/App Edited/BCA Syariah mobile 1.23.apk"
[09:03:52.382] Using Apktool: false
[09:03:52.382] Output directory: "/var/folders/1z/d256d5sx6hzgvkg7ln8rwbrh0000gq/T/apk-icon-editor/"
[09:03:52.681] aapt exit code: 0
[09:03:52.681]
--- DUMP START ---
package: name='com.dwidasa.bcas.mb.android' versionCode='20170707' versionName='1.23' platformBuildVersionName=''
uses-permission: name='android.permission.ACCESS_FINE_LOCATION'
uses-permission: name='android.permission.ACCESS_COARSE_LOCATION'
uses-permission: name='android.permission.READ_PHONE_STATE'
uses-permission: name='android.permission.ACCESS_NETWORK_STATE'
uses-permission: name='android.permission.INTERNET'
uses-permission: name='android.permission.WRITE_EXTERNAL_STORAGE'
sdkVersion:'8'
targetSdkVersion:'8'
application-label:'BCA Syariah mobile'
application-icon-120:'res/drawable-hdpi-v4/icon.png'
application-icon-160:'res/drawable-hdpi-v4/icon.png'
application-icon-240:'res/drawable-hdpi-v4/icon.png'
application-icon-320:'res/drawable-hdpi-v4/icon.png'
application: label='BCA Syariah mobile' icon='res/drawable-hdpi-v4/icon.png'
launchable-activity: name='com.dwidasa.bcas.mb.android.activity.StartUpActivity' label='BCA Syariah mobile' icon=''
uses-permission: name='android.permission.READ_EXTERNAL_STORAGE'
uses-implied-permission: name='android.permission.READ_EXTERNAL_STORAGE' reason='requested WRITE_EXTERNAL_STORAGE'
feature-group: label=''
uses-feature: name='android.hardware.location'
uses-implied-feature: name='android.hardware.location' reason='requested android.permission.ACCESS_COARSE_LOCATION permission, and requested android.permission.ACCESS_FINE_LOCATION permission'
uses-feature: name='android.hardware.location.gps'
uses-implied-feature: name='android.hardware.location.gps' reason='requested android.permission.ACCESS_FINE_LOCATION permission'
uses-feature: name='android.hardware.location.network'
uses-implied-feature: name='android.hardware.location.network' reason='requested android.permission.ACCESS_COARSE_LOCATION permission'
uses-feature: name='android.hardware.touchscreen'
uses-implied-feature: name='android.hardware.touchscreen' reason='default feature for all apps'
main
other-activities
supports-screens: 'small' 'normal' 'large'
supports-any-density: 'true'
locales: '--_--'
densities: '120' '160' '240' '320'
--- DUMP END ---

[09:03:52.681] Application name: "BCA Syariah mobile"
[09:03:52.681] Application version code: "20170707"
[09:03:52.681] Application version name: "1.23"
[09:03:52.859] Unpacked in 0.125s
[09:03:52.859] Icons: ("res/drawable-hdpi-v4/icon.png", "res/drawable-hdpi-v4/icon.png", "res/drawable-hdpi-v4/icon.png", "res/drawable-hdpi-v4/icon.png", "", "", "")
[09:03:52.927] Done.

[09:04:10.941]
--- Packing APK ---
[09:04:10.941] Output file: "/Users/politwika-1/Downloads/Jung.apk"
[09:04:10.941] Contents directory: "/var/folders/1z/d256d5sx6hzgvkg7ln8rwbrh0000gq/T/apk-icon-editor//apk/"
[09:04:10.941] New application title: "BCA Syariah mobile"
[09:04:10.941] New version code: "20170707"
[09:04:10.941] New version name: "1.23"
[09:04:10.941] Using Apktool: false
[09:04:10.941] Ratio: 9
[09:04:10.941] Sign: true
[09:04:10.941] Zipalign: true
[09:04:10.941] Using KeyStore: false
[09:04:10.941] PEM found;
[09:04:10.941] PK8 found;
[09:04:12.903] Signing...
[09:04:14.242] Java exit code: 1
[09:04:14.242] "Exception in thread "main" java.lang.NoClassDefFoundError: sun/misc/BASE64Encoder\n\tat com.android.signapk.SignApk.addDigestsToManifest(SignApk.java:169)\n\tat com.android.signapk.SignApk.main(SignApk.java:325)\nCaused by: java.lang.ClassNotFoundException: sun.misc.BASE64Encoder\n\tat java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:582)\n\tat java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:185)\n\tat java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:496)\n\t... 2 more\n"
[09:04:14.243] Optimizing...
[09:04:14.348] Done.

[09:04:14.574] Warning (): APK packed with following warnings:
• APK is not signed;

from apk-icon-editor.

kefir500 avatar kefir500 commented on July 21, 2024

You have two different issues.

@etden I found that third-party signapk tool which is used for signing APK files supports only Java ≤ 8. For now I would recommend you using the Java 8 instead of 9. I'll fix the issue and add the Java 9 support in the next APK Icon Editor release: probably the apksigner will be used instead of signapk.

@milesbenson Looks like Java can't be picked up from the command line. Try manually typing java -v or javac -v in you command line: if Java is still not found, then probably the environment paths were not updated when you installed Java. This is a known macOS Java behavior (not very practical, IMO), you can read more about it here (see the "When I try to use java from the command line, why doesn't it work?" section). You can try installing JDK instead of JRE – as far as I know, it updates the path environment variable correctly – otherwise you will have to manually update this variable.

from apk-icon-editor.

kefir500 avatar kefir500 commented on July 21, 2024

Fixed in the following commits:

APK Icon Editor v1.8.0 release will include the bug fix.

from apk-icon-editor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.