Photon Voice2 Gradle build error

Options
After integrating Photon Voice i get this error when trying to gradle build from unity to oculus Quest:

stderr[
...\Temp\gradleOut\src\main\AndroidManifest.xml:5:16-43 Error:
Attribute application@allowBackup value=(false) from AndroidManifest.xml:5:16-43
is also present at [:audioinaec:] AndroidManifest.xml:14:9-35 value=(true).
Suggestion: add 'tools:replace="android:allowBackup"' to element at AndroidManifest.xml:5:3-17:17 to override.

Anyone knows a way to fixed it?

using:
Unity 2018.4.1f1
Pun2 and Voice2 (current asset store versions)
Unity build system: Gradle

Comments

  • JohnTube
    JohnTube ✭✭✭✭✭
    edited August 2019
    Options
    Hi @paulodgn,

    Try:

    1. removing android:allowBackup="false" in line 5 in your AndroidManifest.xml:
    <application android:allowBackup="false" ...
    2. using the suggestion from the error message itself, replace/override the value:
    <manifest
        xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:tools="http://schemas.android.com/tools"
        ...
        >
        ...
        <application
            android:allowBackup="false"
            tools:replace="android:allowBackup"
  • paulodgn
    Options
    Thx for the quick reply, will try that
  • paulodgn
    paulodgn
    edited August 2019
    Options
    If someone have the same problem @JohnTube sugestion works. Thanks again.