लोड करने में असमर्थ मैंने इस से संबंधित सभी मौजूदा स्टैक प्रश्नों के माध्यम से पढ़ा है और उनके समाधानों ने मेरी मदद नहीं की है।एंड्रॉइड स्टूडियो 3.0 कैनरी 5 - त्रुटि: कक्षा 'org.gradle.api.internal.component.Usage'
- यह समस्या 2.3 से ऊपर के सभी एएस अपडेट के बाद से स्पष्ट हो गई है।
- एक नई परियोजना का निर्माण ठीक है और
- मैं 'नई परियोजना' से सभी मूल्यों को कॉपी करने का प्रयास किया बनाता है लेकिन यह अभी भी बनी रहती है
त्रुटि:
Error:Unable to load class 'org.gradle.api.internal.component.Usage'. Possible causes for this unexpected error include:
In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.
- Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.) Re-download dependencies and sync project (requires network)
- The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem. Stop Gradle build processes (requires restart)
- Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project.
gradle- wrapper.properties
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-milestone-1-all.zip
परियोजना build.gradle
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.0-alpha5'
classpath "io.realm:realm-gradle-plugin:0.89.1"
}
}
allprojects {
repositories {
google()
jcenter()
maven { url 'https://jitpack.io' }
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
सेटिंग Gradle
Use default gradle wrapper
मॉड्यूल सेटिंग
Compile Sdk Version: API 26
Build Tools Version: 26.0.0
मेरा मानना है कि इन सभी नवीनतम उपलब्ध हैं। और मैंने अवैध कैश & मशीन को पुनरारंभ/रीबूट करने का प्रयास किया है
https://github.com/dcendents/android-maven-gradle-plugin/issues/43 –
मुझे यकीन नहीं है कि यह कैसे संबंधित है, और न ही मुझे वहां कोई समाधान मिला? विशेष रूप से कोई टिप्पणी जो आपको लगता है कि मुझे पढ़ना चाहिए? मेरे सभी संस्करण उस धागे में वर्णित किसी से भी अधिक हैं। – behelit