Invalid Key when I try to build release version for android

+1 vote
asked Aug 23, 2021 by ellenrin (130 points)

Before I face this problem, my app can display AR scene normally when I build it into release version. But when i try to change some assets in my app and try to build it again into release ver, the invalid key appeared. 

I have no clue where is wrong .. I'm stuck crying

I used EasyAR Sense 4 and Unity 2019.4.28f1

2 Answers

0 votes
answered Aug 23, 2021 by kenn (18,750 points)
The last person reporting similar issue found EasyAR.jar file was lost from their project, without any clue.

The suggestion is to read "adb logcat" output and see if there are any errors before invalid key in the log. Make sure to check all logs printed by the application, do not filter Unity TAG. Something should be there.

Another reminder is to check your proguard rules if you are using version < 4.3.

Finally, share what you found and how you solved it, for other to reference.
0 votes
answered Sep 8, 2021 by kenn (18,750 points)
edited Sep 8, 2021 by kenn
Do you have any progress? We are planning a new release within a short time, it would be very helpful if we can take in something from your result.

Error report for license check has already been enhanced in the coming release, we would be glad to make it cover as much corner cases as possible.
commented Oct 22, 2021 by alconchel (110 points)
edited Oct 22, 2021 by alconchel
I have the same issue. When compiling to APK works, for Android Bundle fails... Unity 2019.4.23f1. EasyAR 4.0.

There are a lot of options in the Other & Publishing settings. Is there a guide on how to set the correct options for building?
commented Oct 22, 2021 by kenn (18,750 points)
Try latest version, try follow the docs, try read logs, then past details into another question so that others can help. You are quite possible not have the same issue.
commented Oct 22, 2021 by kenn (18,750 points)
AAB support was added after 4.0, btw.
Welcome to EasyAR SDK Q&A, where you can ask questions and receive answers from other members of the community.