Agora Developer Portal - FAQ

Game Voice FAQs

1. Why errors occured when I am compiling the sample code with Unity3D 5.4?

The Agora sample code is written with Unity3D 5.5, and when you compile it with Unity3D 5.4, the following issues might occur:

Scenario 1: CheckConsistency: GameObject does not reference component MonoBehaviour

When this error is reported, do the following:

  1. Delete the HelloUnity3D scene in the project.
  2. Create a new scene with the same name.
  3. Add HelloUnity3D.cs to the scene.

Scenario 2: It crashes during runtime when the compilation is completed after exporting:

When this error is reported, do the following:

  1. Check whether all the permissions are normal;
  2. Copy the AndroidManifest.xml of the submodule AgoraAudioKit.plugin to your own project.

2. Why did the signing error occured when I compile the sample code on the iOS platform?

When it reports the error displayed on the left of the following figure, fix it according to the right part of the following figure:

../_images/iOS-Build-issues-signing.png

3. Why did the bitcode error occured when I compile the sample code on the iOS platform?

Disable the bitcode if the following error messages occur during the compilation:

../_images/iOS-Build-issues-bitcode.png

Do the following:

  1. Select the current Target .
  2. Select Build Settings .
  3. Select Enable Bitcode and set it to No .
../_images/Intergration-Bitcode-iOS.png

4. Why did the core-telephony error occured when I compile the sample code on the iOS platform?

When it reports the error displayed on the left of the following figure, add the framework according to the right part of the following figure:

../_images/iOS-Build-issues-core-telephony.png

5. Why did the libresolv error occured when I compile the sample code on the iOS platform?

When it reports the error displayed on the left of the following figure, add the library according to the right part of the following figure:

../_images/iOS-Build-issues-resolve.png

6. How can I export the gradle project when compiling the Unity sample code?

After finishing the compilation according to Game Voice - Unity(Android) , adjust the following sample command to compile the code according to your actual environment.

/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/bin/java -classpath "/Applications/Unity/PlaybackEngines/AndroidPlayer/Tools/gradle/lib/gradle-launcher-2.14.jar" org.gradle.launcher.GradleMain "clean" "assembleDebug"