universal-tools / UTNotificationsFeedback

7 stars 0 forks source link

Failed to re-package resources #95

Closed segmation closed 5 years ago

segmation commented 5 years ago

Hi.. After installing the UTMail plugin and trying to rebuild an apk in Unity 2017.1, I'm getting the following message (thanks for your help):

CommandInvokationFailure: Failed to re-package resources. C:\Program Files (x86)\Android\android-sdk\build-tools\25.0.0\aapt.exe package --auto-add-overlay -v -f -m -J "gen" -M "AndroidManifest.xml" -S "res" -I "C:/Program Files (x86)/Android/android-sdk\platforms\android-28\android.jar" -F bin/resources.ap_ --extra-packages io.fabric.answers.android.unity:io.fabric.beta.android.unity:com.unity.purchasing:io.fabric.crashlytics.android.unity:io.fabric.unity.crashlytics.android.crashlyticswrapper:io.fabric.sdk.android.unity:io.fabric.unity.android.fabricinit:com.android.vending.billing:com.unity.purchasing.googleplay:com.android.installreferrer:com.unity3d.player:com.unity3d.ads:com.segmation.segplaymobile.resources:universal.tools.mail -S "D:\SegPlayPaintByNumber\SegPlayPaintByNumber\Temp\StagingArea\android-libraries\common\res" -S "D:\SegPlayPaintByNumber\SegPlayPaintByNumber\Temp\StagingArea\android-libraries\fabric\res" -S "D:\SegPlayPaintByNumber\SegPlayPaintByNumber\Temp\StagingArea\android-libraries\GoogleAIDL\res" -S "D:\SegPlayPaintByNumber\SegPlayPaintByNumber\Temp\StagingArea\android-libraries\GooglePlay\res" -S "D:\SegPlayPaintByNumber\SegPlayPaintByNumber\Temp\StagingArea\android-libraries\installreferrer-1.0\res" -S "D:\SegPlayPaintByNumber\SegPlayPaintByNumber\Temp\StagingArea\android-libraries\unity-ads\res" -S "D:\SegPlayPaintByNumber\SegPlayPaintByNumber\Temp\StagingArea\android-libraries\unity-android-resources\res" -S "D:\SegPlayPaintByNumber\SegPlayPaintByNumber\Temp\StagingArea\android-libraries\utmail\res"

stderr[ AndroidManifest.xml:35: Tag attribute authorities has invalid character '$'. ] stdout[ Configurations: (default)

Files: xml\utmail_provider_paths.xml Src: () D:\SegPlayPaintByNumber\SegPlayPaintByNumber\Temp\StagingArea\android-libraries\utmail\res\xml\utmail_provider_paths.xml AndroidManifest.xml Src: () AndroidManifest.xml

Resource Dirs:

Type xml xml\utmail_provider_paths.xml Src: () D:\SegPlayPaintByNumber\SegPlayPaintByNumber\Temp\StagingArea\android-libraries\utmail\res\xml\utmail_provider_paths.xml Including resources from package: C:\Program Files (x86)\Android\android-sdk\platforms\android-28\android.jar applyFileOverlay for drawable trying overlaySet Key=app_banner.png trying overlaySet Key=app_icon.png applyFileOverlay for layout applyFileOverlay for anim applyFileOverlay for animator applyFileOverlay for interpolator applyFileOverlay for transition applyFileOverlay for xml trying overlaySet Key=provider_paths.xml applyFileOverlay for raw applyFileOverlay for color applyFileOverlay for menu applyFileOverlay for mipmap Processing image: res\drawable-xhdpi\app_banner.png Processing image: res\drawable-ldpi\app_icon.png Processing image: res\drawable-mdpi\app_icon.png Processing image: res\drawable-hdpi\app_icon.png (processed image res\drawable-ldpi\app_icon.png: 99% size of source) Processing image: res\drawable-xhdpi\app_icon.png (processed image res\drawable-mdpi\app_icon.png: 99% size of source) Processing image: res\drawable-xxhdpi\app_icon.png (processed image res\drawable-hdpi\app_icon.png: 99% size of source) Processing image: res\drawable-xxxhdpi\app_icon.png (processed image res\drawable-xhdpi\app_icon.png: 99% size of source) (processed image res\drawable-xhdpi\app_banner.png: 93% size of source) (processed image res\drawable-xxhdpi\app_icon.png: 99% size of source) (processed image res\drawable-xxxhdpi\app_icon.png: 99% size of source) (new resource id app_banner from xhdpi-v4\drawable\app_banner.png #generated) (new resource id app_icon from ldpi-v4\drawable\app_icon.png #generated) (new resource id app_icon from mdpi-v4\drawable\app_icon.png #generated) (new resource id app_icon from hdpi-v4\drawable\app_icon.png #generated) (new resource id app_icon from xhdpi-v4\drawable\app_icon.png #generated) (new resource id app_icon from xxhdpi-v4\drawable\app_icon.png #generated) (new resource id app_icon from xxxhdpi-v4\drawable\app_icon.png #generated) (new resource id provider_paths from D:\SegPlayPaintByNumber\SegPlayPaintByNumber\Temp\StagingArea\android-libraries\unity-android-resources\res\xml\provider_paths.xml) (new resource id utmail_provider_paths from D:\SegPlayPaintByNumber\SegPlayPaintByNumber\Temp\StagingArea\android-libraries\utmail\res\xml\utmail_provider_paths.xml) ] exit code: 1 UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) UnityEditor.Android.PostProcessor.Tasks.TasksCommon.Exec (System.String command, System.String args, System.String workingdir, System.String errorMsg, Int32 retriesOnFailure) UnityEditor.HostView:OnGUI()

The Temp\StagingArea\AndroidManifest.xml file contains the following:

<?xml version="1.0" encoding="utf-8"?>

yuriy-universal-ivanov commented 5 years ago

@segmation ,

Please see my answer in the forum:

Best regards, Yuriy, Universal Tools team.