Invalid key build for android

0 votes
asked Oct 8, 2020 by hatim2018 (180 points)
I have build project using easy ar 3 but it become invalid key , the key i create from easy ar 4 then i put in easy ar 3 project. So how can i fix this problem?

1 Answer

0 votes
answered Nov 9, 2020 by kenn (18,750 points)
EasyAR Sense 3 and EasyAR Sense 4 use different license keys, you cannot use one key for both. And EasyAR Sense 3 is not available for new apps now so you need to use EasyAR Sense 4 with the new key or EasyAR Sense 3 with the old key.

P.S., when you get invalid key error, it does not always mean the key is not usable. The causes may differ in different cases.
commented Apr 16, 2021 by monael-bindary (230 points)
what other cases make it as i have the same error in IOS and the key in developer and unity is the same and cant find the reason of the error

it works fine in android but get that error in IOS
commented Apr 16, 2021 by kenn (18,750 points)
Too many possibilities. Please check the logs and follow document setup guides.
commented Apr 16, 2021 by monael-bindary (230 points)
InvalidOperationException: SchemaHashNotMatched
  at easyar.Engine.initialize (System.String key) [0x00000] in <00000000000000000000000000000000>:0
  at easyar.EasyARController.GlobalInitialization () [0x00000] in <00000000000000000000000000000000>:0

2021-04-16 15:12:44.202351+0200 stickermania[7949:1845720] Error: Initialize Fail: EasyAR Sense (iOS-arm64) Invalid Key
UIPopupException: easyar.CameraDevice not available
  at easyar.VideoCameraDevice.Start () [0x00000] in <00000000000000000000000000000000>:0

i follow the document setup guides and this is the logs
 i added "use camera" in unity
commented Apr 16, 2021 by kenn (18,750 points)
SchemaHashNotMatched means the csapi.cs version and easyar.framework version not match, it will only happen if you are trying to merge multiple SDK releases and made something wrong. Try the raw packages first.
This should also fail on Android but we did not check.
Welcome to EasyAR SDK Q&A, where you can ask questions and receive answers from other members of the community.