A problem occurred evaluating project ':expo-gl-cpp'

Hello I am trying to add expo-gl-cpp and expo-gl in my react native app but while building the app I am getting two failure which are:
1: Task failed with an exception.

  • Where:
    Build file ‘/home/distro/pp/react/tfjs/pose/node_modules/expo-gl-cpp/android/build.gradle’ line: 2

  • What went wrong:
    A problem occurred evaluating project ‘:expo-gl-cpp’.

Plugin with id ‘kotlin-android’ not found.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

2: Task failed with an exception.

  • What went wrong:
    A problem occurred configuring project ‘:expo-gl-cpp’.

compileSdkVersion is not specified. Please add it to build.gradle

Can anyone help me on this?

Hey @distro, can you ensure your local android environment is set up correctly as well as let me know what versions you are running in said env? Lastly, can you share your package.json?


Hey @adamjnav , the app built successfully and ran on my connected physical device before I installed the expo-gp-cpp and expo-gp packages. Does this confirm that I have the android environment setup correctly?
By version if you mean what version of react native I am using, then here’s the output of “react-native --version”
$ react-native --version
react-native-cli: 2.0.1`
react-native: 0.64.2
Please let me know if you meant version of something else.

Also I am attaching the content of my package.json file

  "name": "tfjsReactNative",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "android": "react-native run-android",
    "ios": "react-native run-ios",
    "start": "react-native start",
    "test": "jest",
    "lint": "eslint ."
  "dependencies": {
    "expo-gl": "^10.4.1",
    "expo-gl-cpp": "^10.4.0",
    "react": "17.0.1",
    "react-native": "0.64.2",
    "react-native-unimodules": "^0.14.5"
  "devDependencies": {
    "@babel/core": "^7.14.6",
    "@babel/runtime": "^7.14.6",
    "@react-native-community/eslint-config": "^3.0.0",
    "babel-jest": "^27.0.6",
    "eslint": "^7.30.0",
    "jest": "^27.0.6",
    "metro-react-native-babel-preset": "^0.66.1",
    "react-test-renderer": "17.0.1"
  "jest": {
    "preset": "react-native"

I hope this helps. Thanks for looking into the issue.