android – Unable to load Renderable when trying to implement ar core-ThrowExceptions

Exception or error:

Why am i getting this error when trying to create an ar app?

Unable to load Renderable registryId='android.resource://'
    java.util.concurrent.CompletionException: java.lang.AssertionError: No RCB file at uri: android.resource://

I am folliwng this tutorial to create a simple ar app, but everytime i launch my app i keep getting this error. I am not sure what to do to fix this. Some help would be grealty appreciated. I attached the link to the tutorial.

public class MainActivity extends AppCompatActivity {
    private static final String TAG = MainActivity.class.getSimpleName();
    private static final double MIN_OPENGL_VERSION = 3.0;

//Create a member variable for ModelRenderable//

    private ModelRenderable dinoRenderable;

//Create a member variable for ArFragment//

    private ArFragment arCoreFragment;

    @RequiresApi(api = VERSION_CODES.N)
    protected void onCreate(Bundle savedInstanceState) {
        if (!checkDevice((this))) {

        arCoreFragment = (ArFragment)

//Find the fragment, using fragment manager//


        if (Build.VERSION.SDK_INT >= VERSION_CODES.N) {

//Build the ModelRenderable//

                    .thenAccept(renderable -> dinoRenderable = renderable)

//If an error occurs...//

                            throwable -> {

//...then print the following message to Logcat//

                                Log.e(TAG, "Unable to load renderable");
                                return null;

//Listen for onTap events//

                (HitResult hitResult, Plane plane, MotionEvent motionEvent) -> {
                    if (dinoRenderable == null) {

                    Anchor anchor = hitResult.createAnchor();

//Build a node of type AnchorNode//

                    AnchorNode anchorNode = new AnchorNode(anchor);

//Connect the AnchorNode to the Scene//


//Build a node of type TransformableNode//

                    TransformableNode transformableNode = new TransformableNode(arCoreFragment.getTransformationSystem());

//Connect the TransformableNode to the AnchorNode//


//Attach the Renderable//


//Set the node//


    public static boolean checkDevice(final Activity activity) {

//If the device is running Android Marshmallow or earlier...//

        if (Build.VERSION.SDK_INT < VERSION_CODES.N) {

//...then print the following message to Logcat//

            Log.e(TAG, "Sceneform requires Android N or higher");
            return false;
        String openGlVersionString =
                ((ActivityManager) activity.getSystemService(Context.ACTIVITY_SERVICE))

//Check the version of OpenGL ES//


//If the device is running anything less than OpenGL ES 3.0...//

        if (Double.parseDouble(openGlVersionString) < MIN_OPENGL_VERSION) {

//...then print the following message to Logcat//

            Log.e(TAG, "Requires OpenGL ES 3.0 or higher");
            return false;
        return true;


How to solve:

Leave a Reply

Your email address will not be published. Required fields are marked *