google-ar / arcore-unreal-sdk

ARCore SDK for Unreal
https://developers.google.com/ar/
Apache License 2.0
277 stars 122 forks source link

ARCore Session failed to start #46

Closed Sage-SQ closed 5 years ago

Sage-SQ commented 5 years ago

Ite could be caused by - Device is not compatible with ARCore. -ARCore APK failed to be installed.

Sage-SQ commented 5 years ago

screenshot_20190116-102251 log.txt

Sage-SQ commented 5 years ago

HUAWEI P20

Sage-SQ commented 5 years ago

ARCore example of Unity works fine,but this apk is wrong.How can I do?

bopangzz commented 5 years ago

Which version of Unreal are you using? Do you mind sending me the APK you built?

Sage-SQ commented 5 years ago

UE4.20 android-24,android-26,android-27 The file is too big to attach,How can I pass the apk to you?

bopangzz commented 5 years ago

Can you upload it on Google Drive and share the link here?

Sage-SQ commented 5 years ago

I don't have Google Drive, I can only send it to Baidu Cloud, I don't know if you can download it.

Sage-SQ commented 5 years ago

https://pan.baidu.com/s/1gAHCBNEUo8z02bP9He3reA

Sage-SQ commented 5 years ago

Has the APK been downloaded?

bopangzz commented 5 years ago

Yeah, I download it and looking at your apk, it looks like it is missing some manifest entry. When you build the apk in Unreal, did you explicitly uncheck the checkbox to not use gradle in your Project Settings-Android?

Sage-SQ commented 5 years ago

Yes, because if you don't uncheck it, the package is not successful. But I just tested it again and it turned out to be a success. Do you know why?

Sage-SQ commented 5 years ago

Maybe my NDK version is too old. I updated it before going to bed last night. If you know the reason, please let me know, thank you.

bopangzz commented 5 years ago

I have to look at the Unreal output log to see why it failed to package when using gradle. You will need to use gradle when building for ARCore since otherwise it will missing manifest items in the final APK.

Sage-SQ commented 5 years ago

The problem has been solved. Maybe the NDK version I used is too old. When I packed it last night. There is no such error now. Thank you very much.

Sage-SQ commented 5 years ago

Do you know what the problem is?

tim 20190116174250

Sage-SQ commented 5 years ago

I have solved it, caused by the NDK version. Thank you,again.

Vraelir commented 5 years ago

What NDK version is it now working with? And are you still using ant instead of gradle? (I'm still suffering with a similar issue)

Sage-SQ commented 5 years ago

The latest version(NDK) worked.And you have to use the gradle,because the ARCore needed.