# agc-crash-codelab-java **Repository Path**: appgallery_connect/agc-crash-codelab-java ## Basic Information - **Project Name**: agc-crash-codelab-java - **Description**: The AppGallery Connect Crash service provides a powerful yet lightweight solution to app crash problems. With the service, you can quickly detect, locate, and resolve app crashes (unexpected exits of apps), and have access to highly readable crash reports in real time, without the need to write any code. - **Primary Language**: Java - **License**: Apache-2.0 - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-03-27 - **Last Updated**: 2021-08-30 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## crash quickstart ## Introduction AppGallery Connect Crash provides lightweight crash analysis service and enables fast integration without coding, helping you quickly learn about the version quality, detect and resolve crash problems, and evaluate the problem impact. ## Preparing the Environment Before using the quickstart app, prepare your Android development environment. ## Environment Requirements Android Studio 3.0 or later. ## Configuration Before running the quickstart app, you need to: 1. If you do not have a HUAWEI Developer account, you need to register an account and pass identity verification. 2. Use your account to sign in to AppGallery Connect, create an app, and set Package type to APK (Android app). 3. Click the app you have just created, go to Develop > Quality > Crash. (The Crash service integrates HUAWEI Analysis Kit for crash event reporting. As a result, you need to enable HUAWEI Analysis Kit before integrating the Crash SDK.) 4. Download the agconnect-services.json file from AppGallery Connect and replace the JSON file of the quickstart app with it. ## Sample Code The Crash SDK supports crash simulation and crash collection switch setting. Sample code: src\main\java\com\huawei\agc\quickstart\crash\MainActivity.java ## License Crash quickstart is licensed under the [Apache License, version 2.0] (http://www.apache.org/licenses/LICENSE-2.0).