An unexpected error occurred while trying to open the file buglyqq-upload-symbol.jar

Using IOS to upload bugly symbol table error

错误: 尝试打开文件buglyqq-upload-symbol.jar时出现意外错误

Check the information and the reason: bugly supports java sdk1.8 (java8), and the latest is java19, so you need to install java8 and uninstall the old java version that comes with the local system.

1. Check whether there is a Java version locally

Open a terminal and type:

java --version
//或者
java -version
新旧版本区别
如果不是 java version "1.8.0_371"   1.8以上的就得卸载重装了

2. Uninstall local java

sudo rm -fr /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin
sudo rm -fr /Library/PreferencesPanes/JavaControlPanel.prefPane
sudo rm -fr ~/Library/Application\ Support/Java

Open a new finder window and go to the folder (commd+g):

/Library/Java
将整个java文件目录删掉

3. Download java8
java8 download address
, just select the dmg version to download
insert image description here
. You need to agree to the agreement, and log in with the oracle account password. After downloading, open and install.
Check the version after the installation is complete:

java -version

result:

java version "1.8.0_371"
Java(TM) SE Runtime Environment (build 1.8.0_371-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.371-b11, mixed mode)

4. Upload the symbol table
Open the terminal, enter the directory of buglyqq-upload-symbol.jar, and execute:

java -jar buglyqq-upload-symbol.jar -appid 55555 -appkey 5555-6666-6666-6666-6666666666 -bundleid com.5555.55 -version 5.5.5 -platform IOS -inputSymbol /Users/555/Documents/5555/5555app.app.dSYM

See the official documentation for details.

java -jar buglyqq-upload-symbol.jar -appid <APP ID> 
                                    -appkey<APP KEY>
                                    -bundleid <App BundleID>
                                    -version <App Version>
                                    -platform <App Platform>
                                    -inputSymbol <Original Symbol File Path>
                                    -inputMapping <mapping file>

Official download address:
bugly tool download
upload success log is like this

##[info]retCode: 200 response message: {
    
    "statusCode":0,"msg":"success","uploadReqID":"bcaccc0985-f7d8a9db-b327-4c1d-8dd7-9b06e2f3b788"}

Final note: If you do not want to register an account on the java official website, you can private message Q1508577192

Guess you like

Origin blog.csdn.net/iOS_MingXing/article/details/130732468