【问题标题】:Unity ads not working on android deviceUnity 广告无法在 Android 设备上运行
【发布时间】:2015-05-23 12:06:00
【问题描述】:

从统一资源商店导入统一广告资源。导入新项目时,此资产运行良好。我有一个游戏项目,并且仍在做这个项目。像以前一样导入资产商店。广告在统一播放器上运行良好,但在 Android 设备上无法运行。 Logcat 输出如下。我没有更改资产上的任何行或字。

 I/Unity   (26980): IsolatedStorageException: Could not find a part of the path "/data/app/com.omr-1/base.apk/Standard Assets/UnityAds/Textures/test_unit_800.png".
 I/Unity   (26980):   at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) [0x001f9] in /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.IO/FileStream.cs:290 
 I/Unity   (26980):   at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share) [0x00000] in <filename unknown>:0 
 I/Unity   (26980):   at System.IO.File.OpenRead (System.String path) [0x00000] in /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.IO/File.cs:363 

【问题讨论】:

    标签: unity3d unityscript


    【解决方案1】:

    我无法解决问题,我不知道为什么资产无法在我的项目中运行。修复了显示的广告代码和演示广告,但演示视频广告不再起作用。因此,创建了一个新项目并从资产商店添加统一广告。在这件事之后(广告现在可以工作)并将我的解决方案目录复制到新的项目目录。有用。可能资产包没有更改我现有项目的某些选项或配置。

    【讨论】:

      猜你喜欢
      • 2018-11-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-09-14
      • 2023-03-05
      • 1970-01-01
      • 1970-01-01
      • 2023-03-26
      相关资源
      最近更新 更多