HalfdanJ / ofxARCore

Experimental addon for openFrameworks to use ARCore on Android devices
Apache License 2.0
182 stars 29 forks source link

error: unreported exception UnavailableArcoreNotInstalledException #19

Open guillemontecinos opened 5 years ago

guillemontecinos commented 5 years ago

Hi there, I'm trying to build the exampleBasic on a Google Pixel (Android 8.0.0) and I receive the following errors:

I've successfully followed the oF in Android tutorial, and followed all the instructions in this repo's README.md. I realized that UnavailableArcoreNotInstalledException is thrown when the ARCore APK is not installed on this device link, so I tried the Sceneform example for Android (to check if ARCore was installed) and it worked.

The error is thrown under ofcARCoreLib, so I'm not quite sure if it's a problem on the library or in my system. I'd be thankful if anyone can help.

My setup is:

Screen Shot 2019-04-02 at 11 09 04 AM 1
boehm-e commented 5 years ago

You can use my fork of the project : https://github.com/boehm-e/ofxARCore

guillemontecinos commented 5 years ago

Thanks @boehm-e I'll give try it and let you know how it works.

guillemontecinos commented 5 years ago

It definitely worked! Thanks @boehm-e

javl commented 5 years ago

Far from perfect and an extremely unreliable hack, but I managed to get this repo to work again by simply wrapping each of the offending lines in a try/catch. For example:

try{
    if(mIsReady) mSession.update().getCamera().getProjectionMatrix(mProjectionMatrix, 0, near, far);
}catch(Exception e){
    // ignore
}