हमारा सुझाव है कि 27 मार्च, 2025 से AOSP को बनाने और उसमें योगदान देने के लिए, aosp-main
के बजाय android-latest-release
का इस्तेमाल करें. ज़्यादा जानकारी के लिए, AOSP में हुए बदलाव लेख पढ़ें.
सीटीएस टेस्ट देखना और उनसे जुड़ी समस्या हल करना
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
इस पेज पर, सीटीएस टेस्टिंग से जुड़ी समस्याओं को हल करने का तरीका बताया गया है.
'मेमोरी खत्म हो गई' गड़बड़ी ठीक करना
अगर आपको सीटीएस टेस्टिंग के दौरान, java.lang.OutOfMemoryError: Java heap space
जैसी 'मेमोरी खत्म होने की गड़बड़ी' का मैसेज मिलता है, तो टेस्ट रन के दौरान उपलब्ध ज़्यादा से ज़्यादा मेमोरी बढ़ाएं:
WORKING_DIRECTORY/cts/tools/cts-tradefed/etc/
में cts-tradefed
स्क्रिप्ट में बदलाव करें.
-Xmx
फ़्लैग की वैल्यू बढ़ाकर, Java वर्चुअल मशीन (JVM) थ्रेड की संख्या बढ़ाएं. नीचे दिए गए उदाहरण में, वैल्यू को 16 जीबी तक बढ़ाया गया है:
${JAVA_BINARY} $RDBG_FLAG -Xmx16g -XX:+HeapDumpOnOutOfMemoryError -cp ${JAR_PATH} -DCTS_ROOT=${CTS_ROOT} com.android.compatibility.common.tradefed.command.CompatibilityConsole "$@"
स्ट्रीमिंग टेस्ट से जुड़ी समस्याएं हल करना
अगर फ़ायरवॉल की पाबंदियों की वजह से, किसी रिमोट सर्वर से फ़ाइलें स्ट्रीम नहीं की जा सकतीं, तो आपको वीडियो फ़ाइलों को लोकल फ़ाइल सर्वर पर इंस्टॉल करना होगा. साथ ही, मीडिया की जांच स्थानीय तौर पर करनी होगी. ज़्यादा जानकारी के लिए, लोकल तौर पर मीडिया टेस्ट चलाना लेख पढ़ें.
इस पेज पर मौजूद कॉन्टेंट और कोड सैंपल कॉन्टेंट के लाइसेंस में बताए गए लाइसेंस के हिसाब से हैं. Java और OpenJDK, Oracle और/या इससे जुड़ी हुई कंपनियों के ट्रेडमार्क या रजिस्टर किए हुए ट्रेडमार्क हैं.
आखिरी बार 2025-07-27 (UTC) को अपडेट किया गया.
[[["समझने में आसान है","easyToUnderstand","thumb-up"],["मेरी समस्या हल हो गई","solvedMyProblem","thumb-up"],["अन्य","otherUp","thumb-up"]],[["वह जानकारी मौजूद नहीं है जो मुझे चाहिए","missingTheInformationINeed","thumb-down"],["बहुत मुश्किल है / बहुत सारे चरण हैं","tooComplicatedTooManySteps","thumb-down"],["पुराना","outOfDate","thumb-down"],["अनुवाद से जुड़ी समस्या","translationIssue","thumb-down"],["सैंपल / कोड से जुड़ी समस्या","samplesCodeIssue","thumb-down"],["अन्य","otherDown","thumb-down"]],["आखिरी बार 2025-07-27 (UTC) को अपडेट किया गया."],[],[],null,["# View and troubleshoot CTS tests\n\nThis page explains how to troubleshoot and fix issues related to CTS testing.\n\nFix out of memory error\n-----------------------\n\nIf you encounter an out of memory error during CTS testing, such as\n`java.lang.OutOfMemoryError: Java heap space`, increase the maximum memory\navailable during test run:\n\n1. Edit the `cts-tradefed` script in \u003cvar translate=\"no\"\u003eWORKING_DIRECTORY\u003c/var\u003e`/cts/tools/cts-tradefed/etc/`.\n\n2. Increase the number of Java virtual machine (JVM) threads by increasing the value for the `-Xmx` flag. The following example increases the value to 16 GB:\n\n ${JAVA_BINARY} $RDBG_FLAG -Xmx16g -XX:+HeapDumpOnOutOfMemoryError -cp ${JAR_PATH} -DCTS_ROOT=${CTS_ROOT} com.android.compatibility.common.tradefed.command.CompatibilityConsole \"$@\"\n\nFix issues with streaming tests\n-------------------------------\n\nIf you can't stream files from a remote server due to firewall restrictions,\nyou must install video files on a local file server and run media tests locally. For more information, refer to [Run media tests locally](/docs/compatibility/cts/run-locally)."]]