1{ 2 "0000": { 3 "code": "0000", 4 "solution": "Unknown solution" 5 }, 6 "0001": { 7 "code": "0001", 8 "solution": "Please execute build/prebuilts_download.sh" 9 }, 10 "0002": { 11 "code": "0002", 12 "solution": "Using '--test' option like this format --test xts test/xts/acts/startup_lite/bootstrap_hal:ActsBootstrapTest " 13 }, 14 "0003": { 15 "code": "0003", 16 "solution": "Args must be declare as 'bool', 'str', 'list' in arg_type attribute. Please check your corresponding arg" 17 }, 18 "0004": { 19 "code": "0004", 20 "solution": "build/hb/util/device_util.py" 21 }, 22 "0005": { 23 "code": "0005", 24 "solution": "build/hb/util/device_util.py" 25 }, 26 "0006": { 27 "code": "0006", 28 "solution": "build/hb/util/device_util.py" 29 }, 30 "0007": { 31 "code": "0007", 32 "solution": "build/hb/util/device_util.py" 33 }, 34 "0008": { 35 "code": "0008", 36 "solution": "build/hb/util/io_util.py" 37 }, 38 "0009": { 39 "code": "0009", 40 "solution": "build/hb/util/io_util.py" 41 }, 42 "0010": { 43 "code": "0010", 44 "solution": "build/hb/util/io_util.py" 45 }, 46 "0011": { 47 "code": "0011", 48 "solution": "build/hb/util/io_util.py" 49 }, 50 "0012": { 51 "code": "0012", 52 "solution": "build/hb/util/product_util.py" 53 }, 54 "0013": { 55 "code": "0013", 56 "solution": "build/hb/util/product_util.py" 57 }, 58 "0014": { 59 "code": "0014", 60 "solution": "build/hb/util/product_util.py" 61 }, 62 "0015": { 63 "code": "0015", 64 "solution": "build/hb/util/product_util.py" 65 }, 66 "0016": { 67 "code": "0016", 68 "solution": "build/hb/util/product_util.py" 69 }, 70 "0017": { 71 "code": "0017", 72 "solution": "build/hb/util/product_util.py" 73 }, 74 "0018": { 75 "code": "0018", 76 "solution": "Run 'hb help' to list all support option" 77 }, 78 "0019": { 79 "code": "0019", 80 "solution": "Please run command 'hb set' to init OHOS development environment" 81 }, 82 "1000": { 83 "code": "1000", 84 "solution": "Unknown solution method for preload phase" 85 }, 86 "2000": { 87 "code": "2000", 88 "solution": "Unknown solution method for load phase" 89 }, 90 "2001":{ 91 "code": "2001", 92 "solution": "please check whether the corresponding file('out/preloader/{product_name}/subsystem_config.json' or 'build/subsystem_config.json') is written correctly" 93 }, 94 "2002":{ 95 "code": "2002", 96 "solution": "Gn root dir is a relative path and is currently null. Please try the following in order:\n\t\t 1. Execute hb set and check whether the out path in the configuration item (//ohos_config. json) is correctly written\n\t\t 2. Check whether the file (//build/hb/resources/gloval_var. py) has been moved, modified or deleted" 97 }, 98 "2003":{ 99 "code": "2003", 100 "solution": "Gn root dir is a relative path, which is currently incorrect. Normally, the path is out/{board}/{product}. Please try the following in order:\n\t\t 1. Execute hb set and check the 'out path', 'board' and 'product' fields in the configuration file (//ohos_config. json)\n\t\t 2.Check whether the file (//build/hb/resources/gloval_var. py) has been moved, modified or deleted" 101 }, 102 "2004":{ 103 "code": "2004", 104 "solution": "Please check whether the corresponding file('out/preloader/{product_name}/platforms.build' exists" 105 }, 106 "2005":{ 107 "code": "2005", 108 "solution": "Check whether the file (//build/subsystem_config_example.json) has been moved, modified or deleted" 109 }, 110 "2006":{ 111 "code": "2006", 112 "solution": "Please remove the feature from the product configuration file, or consider using other supported features" 113 }, 114 "2007":{ 115 "code": "2007", 116 "solution": "Please check the files related to part configuration and ensure that the dependencies between and within parts are correct." 117 }, 118 "2008":{ 119 "code": "2008", 120 "solution": "Check the declaration of parts and their syscap in the product configuration file" 121 }, 122 "2009":{ 123 "code": "2009", 124 "solution": "Please ensure that the bundle.json corresponding to the part is written in accordance with the specification" 125 }, 126 "2010":{ 127 "code": "2010", 128 "solution": "This platform is not supported. Please select a platform supported by OpenHarmony." 129 }, 130 "2011":{ 131 "code": "2011", 132 "solution": "Please refer to the writing rules of bundle.json to ensure that the content is correct" 133 }, 134 "2012":{ 135 "code": "2012", 136 "solution": "Please check the platform in the product configuration and recompile" 137 }, 138 "2013":{ 139 "code": "2013", 140 "solution": "The subsystem configuration file may be one of the following situations: non-existent, empty, and wrong content. Please check whether the file under out/reload/{product_name} has been removed, and then recompile" 141 }, 142 "2014":{ 143 "code": "2014", 144 "solution": "An error occurred in the load ohos build. Please try the following:\n\t\t1. Execute hb clean -- all\n\t\t2. Execute hb set and select the product\n\t\t3. Check//ohos_ Whether the config.json content meets the requirements." 145 }, 146 "3000": { 147 "code": "3000", 148 "solution": "Please check the compile log at out/{compiling product}/build.log, If you could analyze build logs. \n\t\tOr you can try the following steps to solve this problem:\n\t\t 1. cd to OHOS root path\n\t\t 2. run 'hb clean --all' or 'rm -rf out build/resources/args/*.json'.\n\t\t 3. repo sync\n\t\t 4. repo forall -c 'git lfs pull'\n\t\t 5. bash build/prebuilts_download.sh\n\t\t 6. rebuild your product or component\n\n\t\tIf you still cannot solve this problem, you could post this problem on: \n\t\t https://gitee.com/openharmony/build/issues" 149 }, 150 "3001": { 151 "code": "3001", 152 "solution": "See support gn command type in enum class CMDTYPE which locate in build/hb/services/gn.py" 153 }, 154 "3002": { 155 "code": "3002", 156 "solution": "Please check the compile log at out/{compiling product}/build.log, If you could analyze build logs. \n\t\tOr you can try the following steps to solve this problem:\n\t\t 1. cd to OHOS root path\n\t\t 2. run 'hb clean --all' or 'rm -rf out build/resources/args/*.json'.\n\t\t 3. repo sync\n\t\t 4. repo forall -c 'git lfs pull'\n\t\t 5. bash build/prebuilts_download.sh\n\t\t 6. rebuild your product or component\n\n\t\tIf you still cannot solve this problem, you could post this problem on: \n\t\t https://gitee.com/openharmony/build/issues" 157 }, 158 "3003": { 159 "code": "3003", 160 "solution": "Please check your corresponding arg. You can view the corresponding options in the json file('resources/status/status.json'). \n\t\tOr you can run cmd 'hb tool -h' to show usage" 161 }, 162 "3004": { 163 "code": "3004", 164 "solution": "This command requires an existing build directory. Please check whether the corresponding file('out/{product_name}/args.gn' exists." 165 }, 166 "3005": { 167 "code": "3005", 168 "solution": "Please check whether the target gn file exists in the corresponding path." 169 }, 170 "3006": { 171 "code": "3006", 172 "solution": "Please use '=' to connect argument and value." 173 }, 174 "4000": { 175 "code": "4000", 176 "solution": "Please check the compile log at out/{compiling product}/build.log, If you could analyze build logs. \n\t\tOr you can try the following steps to solve this problem:\n\t\t 1. cd to OHOS root path\n\t\t 2. run 'hb clean --all' or 'rm -rf out build/resources/args/*.json'.\n\t\t 3. repo sync\n\t\t 4. repo forall -c 'git lfs pull'\n\t\t 5. bash build/prebuilts_download.sh\n\t\t 6. rebuild your product or component\n\n\t\tIf you still cannot solve this problem, you could post this problem on: \n\t\t https://gitee.com/openharmony/build/issues" 177 }, 178 "4001": { 179 "code": "4001", 180 "solution": "You could run cmd 'hb tool --desc' to show what components or module this product have,\n\t\tand if you execute 'hb build' in a directory, it will build the component corresponding \n\t\tto the current directory by default but for building whole product." 181 } 182}