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

What if Lib is the one who has more than 65,536 methods? #12

Open
nyahahawakoko opened this issue Sep 23, 2014 · 6 comments
Open

What if Lib is the one who has more than 65,536 methods? #12

nyahahawakoko opened this issue Sep 23, 2014 · 6 comments

Comments

@nyahahawakoko
Copy link

What to change if the situation is:

  • Dex65536 has less than 65,536 methods
  • Lib has more than 65,536 methods
  • Lib includes other different libraries
@mmin18
Copy link
Owner

mmin18 commented Sep 23, 2014

if you can seperate the jar into several jar package, i think you can
modify the custom_build.xml and classloader dependency and build a apk
whick contains several dex classes. but i'm not sure it can run on devices.
On Sep 23, 2014 6:00 PM, "Nyahaha Wakoko" notifications@github.com wrote:

What to change if the situation is:

  • Dex65536 has less than 65,536 methods
  • Lib has more than 65,536 methods
  • Lib includes other different libraries


Reply to this email directly or view it on GitHub
#12.

@nyahahawakoko
Copy link
Author

I've been working on it recently and achieved this:

I have tested it with my app, and it worked, its drawback is the application start time after the first install, in my app it took about +-6 seconds, but the next several times I opened the app, it would took about less than a second.

Beyond these, I still do not know what are the other drawbacks.

@rambabupudari
Copy link

hi nyahahawakoko ,

Thanx for your great answer.i have solved my issue followed by your custom rule process. But i have another issue which is my jar contain text files.that text files not loaded when i am applying your custom rules. is there any other way to add text files from inside jar. i have check with fileset but i didnt get how add if text file have inside jar file.

I have attached the screenshots for reference.
please help me , Thanx in advance
dexissue
dexissue1

@rambabupudari
Copy link

Can u please try to build the build the sample project with add aws-android-sdk-2.1.0-s3.jar and aws-android-sdk-2.1.0-core.jar. basically these jars are using for upload the file to server.

@nyahahawakoko
Copy link
Author

I'm sorry but I have not encountered this issue yet, since my investigation was being paused.
As to my last issue before I paused, the files/projects that are dependent from other project should be in one lib-*.apk. Try to put aws-android-sdk-2.1.0-s3.jar and android-sdk-2.1.0-core.jar in one lib-*.apk.

@rambabupudari
Copy link

Ya i do the same but when i upload the image to server this error should occure. please refere this link to how to upload image to server https://aws.amazon.com/articles/3002109349624271.

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

3 participants