kwsch / PKHeX.Mobile

Pokémon save editor for Android and iOS!
Other
699 stars 354 forks source link

You can't install the apk #72

Open StormCrownSr opened 11 months ago

StormCrownSr commented 11 months ago

At least I can't for my android device. I would love to try your stuff, but I can't. For now at least.

delipunch commented 11 months ago

Can confirm, the pre-compiled APK is invalid on my OnePlus Nord N200 5G running Android 12.

Screenshot_2023-08-28-16-50-41-83_3d73e98b1ad3bd2575f7a56513d89a0c

kwsch commented 11 months ago

You'd have to compile it yourself to target a newer version of Android. I think it only targets Android 11, as Android 12 was not widely available when the last commit was made.

https://github.com/kwsch/PKHeX.Mobile/blob/6205f77b0d00b6bd1b1b5a3423e28c5c8a80797d/PKHeX.Android/PKHeX.Android.csproj#L19

delipunch commented 11 months ago

Is Android not backwards compatible with APKs that target older versions?

abanash commented 11 months ago

supposedly latest apk does not support the previous android version not the vice versa. if im using android 13 how can i recompile this file to make it compabtible.

StormCrownSr commented 11 months ago

I have found a solution. (Kind of)

  1. You save your game on your phone with the in-game save option and then close the emulator.

  2. You connect your phone to your pc and edit the save with PC PKHEX. This may require you to drag it out of your phone and then replacing it like it did with mine.

  3. You then start the emulator and verify that everything is correct and if it is, make a savestate. Don't bother using the in-game save here, it won't work, or at least mine doesn't.

  4. Go into the files of your phone and delete the (.)sav file. It should be 512kb in size. Yes, this is important.

  5. Start your emulator up and because you don't have a save, it'll make a new save file, but just load up your save sate and now save the game using the in-game save method. I found if you didn't delete the save first, it just wouldn't overwrite it.

abanash commented 11 months ago

I have found a solution. (Kind of)

  1. You save your game on your phone with the in-game save option and then close the emulator.
  2. You connect your phone to your pc and edit the save with PC PKHEX. This may require you to drag it out of your phone and then replacing it like it did with mine.
  3. You then start the emulator and verify that everything is correct and if it is, make a savestate. Don't bother using the in-game save here, it won't work, or at least mine doesn't.
  4. Go into the files of your phone and delete the (.)sav file. It should be 512kb in size. Yes, this is important.
  5. Start your emulator up and because you don't have a save, it'll make a new save file, but just load up your save sate and now save the game using the in-game save method. I found if you didn't delete the save first, it just wouldn't overwrite it.

actually i already did it this method last time and it works. unfortunately u still have to connect to your pc. the real objective of having this mobile version pkhex is to make it become portable..if anyone able to use the mobile version can share.

Darkknight2993 commented 6 months ago

I have the same problem....is there a solution available yet...?? Screenshot_2024-01-11-23-06-30-82_3d73e98b1ad3bd2575f7a56513d89a0c

Nrazuke commented 3 months ago

I have the same problem....is there a solution available yet...?? Screenshot_2024-01-11-23-06-30-82_3d73e98b1ad3bd2575f7a56513d89a0c

i found a solution to it, i just decompiled it using apk tool m. Once decompiled open AndroidManifest.xml then on line 5 you should see android:compileSdkVersionCodename="11" change the 11 to 12 depending on your android system then recompile it and done.