清泛IT社区App Inventor 2 中文社区

搜索

扫码访问移动社区 移动社区,您的掌上技术专家

关注我,精彩不错过! 关注我,精彩不错过!

扫码安装最新版AI伴侣 最新版AI伴侣v2.72

Aia Store .aia 源码一站式解决方案 发布日志AI2连接测试ai2Starter模拟器

开通会员送SVIPApp Inventor 2 拓展有奖征文 VIP会员享专有教程,免费赠送基础版*技术支持服务! AI2入门必读中文文档中文教程IoT专题

查看: 3970|回复: 0
打印 上一主题 下一主题

[经验分享] 编译失败! Error: Your build failed due to an error in the AAPT stage, not because of an e ...

  • TA的每日心情
    开心
    15 小时前
  • 签到天数: 281 天

    [LV.8]以坛为家I

    525

    主题

    911

    帖子

    2万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

    积分
    22344

    AI2中文网VIP弹球达人接水果达人撸猫达人

    跳转到指定楼层
    楼主
    发表于 2023-05-30 09:39:39 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式
    编译apk报错如下:


    经过日志分析如下:
    Tag <activity> attribute name has invalid character
    [java] /tmp/1685410160630_0.39828964915976717-0/youngandroidproject/../build/AndroidManifest.xml:5: Tag <activity> attribute name has invalid character '�'.
         [java] May 30, 2023 9:29:27 AM com.google.appinventor.buildserver.Compiler runAaptPackage
         [java] WARNING: YAIL compiler - AAPT execution failed.
         [java] May 30, 2023 9:29:27 AM com.google.appinventor.buildserver.BuildServer build
         [java] INFO: Build output: ________Preparing application icon<br>________Creating animation xml<br>________Creating style xml<br>________Creating provider_path xml<br>________Creating network_security_config xml<br>________Generating adaptive icon file<br>________Generating round adaptive icon file<br>________Generating adaptive icon background file<br>________Generating manifest file<br>________Attaching native libraries<br>________Attaching Android Archive (AAR) libraries<br>________Attaching component assets<br>________Invoking AAPT<br>YAIL compiler - AAPT execution failed.<br>
         [java] May 30, 2023 9:29:27 AM com.google.appinventor.buildserver.BuildServer build
         [java] INFO: Build error output: Error: Your build failed due to an error in the AAPT stage, not because of an error in your program.
         [java]
         [java] May 30, 2023 9:29:27 AM com.google.appinventor.buildserver.BuildServer checkMemory
         [java] INFO: Build 1 current used memory: 14638896 bytes
         [java] May 30, 2023 9:29:27 AM com.google.appinventor.buildserver.BuildServer buildAndCreateZip
         [java] SEVERE: Build 1 Failed: 1 Error: Your build failed due to an error in the AAPT stage, not because of an error in your program.
         [java]
         [java] May 30, 2023 9:29:27 AM com.google.appinventor.buildserver.BuildServer$1 run
         [java] INFO: CallbackURL: http://fun123.cn/ode2/receivebui ... yoqln/build/Android
         [java] May 30, 2023 9:29:27 AM com.google.appinventor.buildserver.BuildServer checkMemory
         [java] INFO: Build 1 current used memory: 13043048 bytes
         [java] May 30, 2023 9:29:27 AM com.google.appinventor.buildserver.BuildServer checkMemory
         [java] INFO: Build 1 current used memory: 13037008 bytes
         [java] May 30, 2023 9:29:27 AM com.google.appinventor.buildserver.BuildServer$1 run
         [java] INFO: BUILD 1 FINISHED


    aia包属性有问题,导致的原因未知,待探索。。。
    目前最好的办法就是重新建立一个项目,组件和代码拷贝过来。

    App Inventor 2 中文网 - MIT同步更新的中文本土化平台!v2.72 支持Android 14 更新日志
    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    © 2024 tsingfun.com, Inc.  沪ICP备2020034476号-1  沪公网安备31011702000040号

    GMT+8, 2024-11-22 22:23 , Processed in 0.022515 second(s), 35 queries .