app.gradle
Code snippet 1:
repositories {
flatDir {
dirs 'libs'
}
}
Code snippet 2:
dependencies {
classpath "com.android.tools.build:gradle:4.2.2"
}
After gradle is upgraded to 4.2.2, the following prompt message will appear during compilation. Delete & lt; Code snippet 1 & gt; The problem can be solved
Using flatDir should be avoided because it doesn’t support any meta-data formats.
Affected Modules: APP
Use the LIBS directory if necessary
Add the following code to the project module.gradle
android {
...
sourceSets {
main {
jniLibs.srcDirs = ['libs']
}
}
}
Problem solving.
Read More:
- [MySQL] [serialize] [error record] after modifying data, no data will be returned (in fact, MySQL does not support it)
- Add a new springboot, and it will appear unable to read meta data for class when it is dependent
- The shell gets the current time of the system and formats it
- Unable to read meta data for class
- Shell gets the current time of the system and formats it
- Android Studio sync build.gradle appears: Failed to resolve: com.android.support:appcompat problem
- KVM–Host does not support any virtualization…
- Could not install Gradle distribution from ‘https://services.gradle.org/distributions/gradle-6.7.1-b
- Depending on the custom component jar package, unable to read meta data for class appears after startup
- java.lang.IllegalStateException : unable to read meta data for class
- Table ‘sell.hibernate_sequence‘ doesn‘t exist
- urllib3 (1.26.4) or chardet (4.0.0) doesn‘t match a supported version!
- One of the configured repositories failed (Unknown), and yum doesn’t have enough cached data to cont
- [Solved] Android gradle Error: gradle project sync failed. Please fix your project and try again
- A cross-origin error was thrown. React doesn‘t have access to the actual error object in development
- “ XX.app ”It is damaged and cannot be opened. You should move it to the wastebasket.
- When a system is deployed on weblogic12.2.1.3, it reports an error “IllegalStateException zip file closed”. When it is deployed on weblogic12.2.1.2, it does not report an error and can be accessed normally.
- Flutter Error: Cannot run with sound null safety, because the following dependencies don‘t support
- About content type ‘multipart / form data…’ not support
- build.gradle Warming: cannot be applied to ‘(groovy.lang.Closure)’/'(java.lang.String)’