This error often occurs when unity connects to some native andorid SDKs:
W/system. Err: Android. View. Viewrootimpl $calledfromwrongthreadexception: only the original thread that created a view hierarchy can touch its views.
the solution is to use runonuithread() in the java file written by the Android layer
The reason is that the UI update of Android needs to be in the main UI thread, and some callbacks of the advertising SDK are not in this thread
reference material:
https://www.jianshu.com/p/866743c0356b
https://blog.csdn.net/cf8833/article/details/90297775
Read More:
- Solve the problem that the local flow of the nifi node is inconsistent with the cluster flow, resulting in the failure to join the cluster
- CentOS solves the problem of modulenotfounderror when salt calls python3 script remotely, and solves the problem that PIP3 module cannot be shared by different users
- Android solves the gliding problem of EditText
- Unity – error reporting encountered in APK package
- On the problem that VTK + QT process can’t end after closing the program
- Notes on unity project_ Unity webplayer failed to update unity web player
- [unity] when using unity hub, there is a problem of “failed to delete old unit installation file…” problem
- Android error reporting: error inflating class android.webkit.WebView
- How to Solve Unity Package Android Project Error
- Unity Android packaging error “UnityEditor.BuildPlayerWindow+BuildMethodException” solution record
- [unity] Android package error java.lang.ClassNotFoundException Did not find class com.unity3d . player.MainActivity
- Game development unity xlua framework knowledge series: this type must add to csharpcalllua error reporting solutions
- Android studio reports an error when building AAR for unity
- The solution of “failed to load il2cpp” in Android package launched by unity
- How to view error information after Android application crash
- Windows subsystem Ubuntu 18.04 solves SSH problem
- Vs code solves the problem that latex does not display references and [?] is displayed in the text
- [Unity] Solve the problem of IOException: Failed to Copy… in Unity packaging apk
- Flutter solves the problem of incorrect use of parent datawidget and boundary constraint
- IOS solves the problem of this action could not be completed. Try again