1. Could not find com. Android. View the build: aapt2:3.3.2 rainfall distribution on 10-12-5309881
Build failed, error reported
Solution: Add Google () under build.gradle Repositories
buildscript {
repositories {
jcenter()
google()
}
dependencies {
classpath 'com. Android. Tools. Build: gradle: 3.3.2 rainfall distribution on 10-12'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files}}allprojects {
repositories {
jcenter()
google()
}
}
Copy the code
2. This version of Android Studio cannot open this project, please retry with Android Studio 3.4 or newer.
Solution: upgrade AndroidStudio or gradle version downgrade
3. Circular dependency between the following tasks:
FAILURE: Build failed with an exception.
* What went wrong:
Circular dependency between the following tasks:
:llib:compileDebugAidl
\--- :llib:compileDebugAidl (*)
(*) - details omitted (listed previously)
...
Copy the code
Solution: Change the order of project repositories, as in
repositories {
mavenCentral()
maven {
url 'https://jitpack.io'
}
maven { url "https://dl.bintray.com/thelasterstar/maven/" }
google()
jcenter()
}
Copy the code
4. com.android.ide.common.signing.KeytoolException: Failed to read key ??????
.properties is used to store app name or keystore information. Garbled characters will be read if Chinese characters appear.
Solution: First, change the project file encoding to UTF-8
Then use new String(keystore_alias.getBytes (” ISO8859-1 “), “UTF-8”) for keystore alias.
The original link