Skip to content
This repository has been archived by the owner on Mar 20, 2023. It is now read-only.

error: unreported exception UnavailableArcoreNotInstalledException #19

Open
guillemontecinos opened this issue Apr 2, 2019 · 4 comments

Comments

@guillemontecinos
Copy link

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

  • error: unreported exception UnavailableArcoreNotInstalledException; must be caught or declared to be thrown
  • error: unreported exception CameraNotAvailableException; must be caught or declared to be thrown

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:

  • macOS Sierra 10.12.6
  • Android Studio 3.3.2
  • oF 0.10.1 android
  • Andoid 8.0.0 (device)

Screen Shot 2019-04-02 at 11 09 04 AM 1

@boehm-e
Copy link

boehm-e commented Apr 3, 2019

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

@guillemontecinos
Copy link
Author

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

@guillemontecinos
Copy link
Author

It definitely worked! Thanks @boehm-e

@javl
Copy link

javl commented Jul 31, 2019

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
}



Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants