简体   繁体   English

Unity广告无法在Android设备上运行

[英]Unity ads not working on android device

imported unity ads asset from unity asset store. 从统一资产商店中导入的统一广告资产。 This asset working well when imported a new project. 导入新项目时,此资产运行良好。 I have a game project and still working on this project. 我有一个游戏项目,并且仍在从事此项目。 Imported a asset store like a previous. 像以前一样导入资产商店。 Ads working well on unity player but not working on android device. 广告在unity player上运作良好,但在android设备上无法运作。 Logcat output is bellow. Logcat输出如下。 I am not changed any line or word on asset. 我对资产的任何行或字都没有改变。

 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 

I can't solve the problem and i don't know why asset is not working on my project. 我无法解决问题,我也不知道为什么资产无法在我的项目中工作。 Fixed ads code and demo ad shown but demo video ads not working again. 修复了显示的广告代码和演示广告,但演示视频广告无法再次运行的情况。 So, created a new project and add unity ads from asset store. 因此,创建了一个新项目并添加了资产商店中的统一广告。 After this things(ads works now) and copied my solution directory to new project directory. 之后(ads现在可以正常工作)并将我的解决方案目录复制到新的项目目录。 It works. 有用。 Probably asset package didn't change some options or configurations on my existing project. 资产包可能没有更改我现有项目中的某些选项或配置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM