Error: h.playTouchSound is not a function?

Viewed 773
1 Answers

In my case upgrading gradle helped right away!

From:

classpath("com.android.tools.build:gradle:4.0.1")

To:

classpath("com.android.tools.build:gradle:4.1.0")

In buid.gradle android project file

This also forced to change distributionUrl in /android/gradle/wrapper/gradle-wrapper.properties file from:

distributionUrl=https\://services.gradle.org/distributions/gradle-6.3-all.zip

To at least:

distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-all.zip

This problem occurred to me when I updated react native from 0.61.4 to 0.64.1

Hope it helps :)

Related