Unity - A计划(永久有效期) 扫二维码继续学习 二维码时效为半小时

(196评价)
价格: 4019.00元
老师unity中调用android中方法,在打包时候回报警告,而且打包到手机上打不开
想看你笑发起了话题2017-07-18
11
回复
844
浏览

No activity found in the manifest with action MAIN and category LAUNCHER.
Your application may not start correctly.

No activity with LEANBACK_LAUNCHER or LAUNCHER categories found.
The build may not be compatible with Android TV. Specify an activity with LEANBACK_LAUNCHER or LAUNCHER category in the manifest, or disable Android TV compatibility in Player Settings.

 

Unable to find unity activity in manifest. You need to make sure orientation attribute is set to fullSensor manually.

 

OBSOLETE - Providing Android resources in Assets/Plugins/Android/res is deprecated, please move your resources to an Android Library. See "Building Plugins for Android" section of the Manual.

所有回复
  • siki 2017-07-18

    这个错误的关键地方在这里

    No activity found in the manifest with action MAIN and category LAUNCHER.

    就是你在android工程里面的menifest配置文件里面 定义了一个不存在的 

    还有-5条回复,点击查看
    你还没有登录,请先登录注册
  • 想看你笑 2017-07-18

    OBSOLETE - Providing Android resources in Assets/Plugins/Android/res is deprecated, please move your resources to an Android Library. See "Building Plugins for Android" section of the Manual.

    老师 现在只报这个了

    还有-5条回复,点击查看
    你还没有登录,请先登录注册
  • siki 2017-07-18

    可以试下这个解决方案

    https://forum.unity3d.com/threads/obsolete-providing-android-resources-in-assets-plugins-android-res-is-deprecated.315889/

    You can create a new Android Library project that doesn't have any code in it.
    Add your version.xml file to this project (under the res/values folder) and then copy the library (the entire folder structure) under Assets/Plugins.

    新建一个android library工程,把该添加的添加上去,然后复制整个libray文件夹到 unity的 assets/plugins文件夹下

    还有-5条回复,点击查看
    你还没有登录,请先登录注册
  • 想看你笑 2017-07-18

    各种报错啊,受不了了

    还有-5条回复,点击查看
    你还没有登录,请先登录注册
  • 想看你笑 2017-07-18

    已经自己解决了老师,真的累,建议老师把以前的视频更新一下,要不里面好多现在都变了,像我们这种萌新真的懵圈

    • siki 2017-07-18

      恩恩,你现在看的是哪个课程

      (0) 回复
    • 想看你笑 2017-07-18

      回复 @ siki: 看的是bmobpay支付这个教程

      (0) 回复
    • siki 2017-07-19

      回复 @ 想看你笑: bmobpay这个支付我改天重录一下,现在bmob官网最新的androidsdk里面已经有了,支持unity工程的,直接使用它们提供的支持unity工程的插件就可以了,不用这么麻烦了

      (0) 回复
    • 想看你笑 2017-07-19

      回复 @ siki: 老师我现在做到支付这了,但是选择支付宝和微信支付都 没有反应,不知道什么原因,unity也没有报错,看了下官方文当,按着他的说明来 ,也没好使

      (0) 回复
    • siki 2017-07-19

      回复 @ 想看你笑: 使用bmob官方最新的sdk

      (0) 回复
    • 想看你笑 2017-07-19

      回复 @ siki: 就是 使用官方的最新sdk

      (0) 回复
    还有1条回复,点击查看
    你还没有登录,请先登录注册
发表回复
你还没有登录,请先 登录或 注册!