Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to import APK through Android Studio #11

Open
hsdk123 opened this issue Dec 31, 2019 · 5 comments
Open

Unable to import APK through Android Studio #11

hsdk123 opened this issue Dec 31, 2019 · 5 comments
Milestone

Comments

@hsdk123
Copy link
Contributor

hsdk123 commented Dec 31, 2019

I've just managed to get up to apk packaging completing, and now trying to debug, I've initially tried importing the APK through Android Studio (option: Profile or debug APK), but I'm getting errors when selecting the cmake built file:

APK Import
Unable to find file
'Users/hkim809/ApkProjects/MyApplication/small/classes.dex'

Any ideas?

@mosra
Copy link
Owner

mosra commented Jan 1, 2020

I took most of the internals from fips, and it seems mirroring this commit would make things work again: floooh/fips@63fdb7a

Unfortunately right now I'm unable to set up Android build locally (the SSD on this mac mini is too small, heh), so you'd either have to try to tackle this yourself or wait until I have a real computer again (in three weeks, hopefully).

@hsdk123
Copy link
Contributor Author

hsdk123 commented Jan 1, 2020

Hmm, looks as if those lines are just doing some symbol replacement to get things working 'again'. (implying something was up before and that might just be a bug fix on top)

I've looked around the repo, and it seems there's some core steps run to build the dex:
#11 (comment)

Seems like a src directory is created then somehow a /R.java is pulled in, built, and then a dex created afterwards through a separate command.

I think I can wait 3 weeks, so I might go back to try tackling the iOS build and emscripten build first. Will update though if I dabble into this again, but when that real computer comes in, let me know!

@mosra mosra added this to the 2020.0a milestone Jan 1, 2020
@mosra mosra mentioned this issue Jan 1, 2020
87 tasks
@mosra
Copy link
Owner

mosra commented Jun 10, 2020

@hsdk123 were you able to make any progress on this? I'm coming back to this with absolutely no prior knowledge of what the APK should or should not have, so ¯\_(ツ)_/¯

Or did the extra commits in #10 solve this in any way?

@hsdk123
Copy link
Contributor Author

hsdk123 commented Jun 11, 2020

Actually not really, Android Studio and Gradle were a pain and I couldn't even get things to build.... I did however spend about a week though looking through what should be happening, here are a couple of links I jotted down along the way:

@mosra
Copy link
Owner

mosra commented Jun 11, 2020

Thanks a lot for the links. I can imagine the pain behind, haha :)

@mosra mosra modified the milestones: 2020.0a, 2020.0b Jun 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants