解决鸿蒙系统软件ERROR: Failed :entry:default@SignHap... ERROR: Failed to find the incremental input file:

文章讲述了开发者在使用SmarTask-master鸿蒙系统项目时遇到的编译错误,通过查找和修改build-profile.json文件中的配置解决了问题。作者分享了解决过程和个人经历,提醒其他开发者遇到类似问题时的排查方法。
摘要由CSDN通过智能技术生成

>hvigor ERROR: Failed :entry:default@SignHap... 
> hvigor ERROR: Failed to find the incremental input file: C:\Users\velpr\.ohos\config\auto_debug_homework-tasklist-v2-master_top.handwer.homeworktasklist_30086000637469173.cer.
> hvigor ERROR: BUILD FAILED in 8 s 887 ms 

         这个问题困扰了我好几天了[苦笑],今天也终于是找到问题所在了,现在就给大家讲一下如何解决这个问题。

目录

1.出现问题:

 2.解决问题:


1.出现问题:

拿github上一个开源的鸿蒙系统的项目SmarTask-master举例

 当我们把这个项目导入到DevEco里,去调试会发现他报错了:

 2.解决问题:

1.找到build-profile.json5这个文件:

 复制下面的代码:

{
  "app": {
    "signingConfigs": [],
    "compileSdkVersion": 9,
    "compatibleSdkVersion": 9,
    "products": [
      {
        "name": "default",
        "signingConfig": "default",
      }
    ]
  },
  "modules": [
    {
      "name": "entry",
      "srcPath": "./entry",
      "targets": [
        {
          "name": "default",
          "applyToProducts": [
            "default"
          ]
        }
      ]
    }
  ]
}

全选build-profile.json5文件的内容:

 Ctrl + V 粘贴复制的代码:

再点击运行,就没有报错了.

3.总结: 

        因为有调试信息,把build-profile.json5的内容替换成他别的项目里的build-profile.json5内容就行,
        吐槽:之前搞了好几天没弄好整个人都崩溃了,因为比赛在即,去CSDN搜了一下,又看了一下官方文档,可算是找到了调试信息文件build-profile.json5了。这TM可算是让我找到了,你们是不知道,找这个文件找的整个人都不好了,当我能运行成功可开心死我了,比我TM王者上荣耀还开心。就吐槽到这吧,太难了。

        有问题可以私信留言,能解决的一定都给解决了。

Resolved [org.springframework.web.method.annotation.ModelAttributeMethodProcessor$1: org.springframework.validation.BeanPropertyBindingResult: 4 errors<EOL>Field error in object 'order' on field 'order_id': rejected value [null]; codes [typeMismatch.order.order_id,typeMismatch.order_id,typeMismatch.int,typeMismatch]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [order.order_id,order_id]; arguments []; default message [order_id]]; default message [Failed to convert value of type 'null' to required type 'int'; nested exception is org.springframework.core.convert.ConversionFailedException: Failed to convert from type [null] to type [int] for value [null]; nested exception is java.lang.IllegalArgumentException: A null value cannot be assigned to a primitive type]<EOL>Field error in object 'order' on field 'phone': rejected value [null]; codes [typeMismatch.order.phone,typeMismatch.phone,typeMismatch.int,typeMismatch]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [order.phone,phone]; arguments []; default message [phone]]; default message [Failed to convert value of type 'null' to required type 'int'; nested exception is org.springframework.core.convert.ConversionFailedException: Failed to convert from type [null] to type [int] for value [null]; nested exception is java.lang.IllegalArgumentException: A null value cannot be assigned to a primitive type]<EOL>Field error in object 'order' on field 'buy': rejected value [null]; codes [typeMismatch.order.buy,typeMismatch.buy,typeMismatch.int,typeMismatch]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [order.buy,buy]; arguments []; default message [buy]]; default message [Failed to convert value of type 'null' to required type 'int'; nested exception is org.springframework.core.convert.ConversionFailedException: Failed to convert from type [null] to type [int] for value [null]; nested exception is java.lang.IllegalArgumentException: A null value cannot be assigned to a primitive type]<EOL>Field error in object 'order' on field 'total': rejected value [null]; codes [typeMismatch.order.total,typeMismatch.total,typeMismatch.int,typeMismatch]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [order.total,total]; arguments []; default message [total]]; default message [Failed to convert value of type 'null' to required type 'int'; nested exception is org.springframework.core.convert.ConversionFailedException: Failed to convert from type [null] to type [int] for value [null]; nested excep
06-03
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值