gradle, Could not expand ZIP appcompat-v7:19.0.1

后端 未结 16 2152
离开以前
离开以前 2020-12-01 16:10

I have a problem with Android Studio and Gradle to import appcompat-v7.

So here is my src/build.gradle:

apply plugin: \'andro         


        
相关标签:
16条回答
  • 2020-12-01 16:27

    It seems the issue is with directories permissions .

    Check and try following things :

    • Check whether you have write access on both the android sdk and Android Studio directories.
    • if you are on Windows OS, also try to run Android Studio as Administrator by right clicking on the Studio's icon, .
    0 讨论(0)
  • 2020-12-01 16:27

    I had the same issue with our own library. The final .aar contained a non valid .so filename inside.

    Cleanup all the dependencies and rebuilt fixed the issue.

    I found the issue by enabling --stacktrace with Gradle.

    0 讨论(0)
  • 2020-12-01 16:27

    Run cd android && gradlew clean && cd.. && react-native run-android

    0 讨论(0)
  • 2020-12-01 16:28
    • If you are using jdk1.8., Remove it.
    • Installing jdk1.7.
    0 讨论(0)
  • 2020-12-01 16:29

    Ubuntu user here; I stumbled across this problem after backing up my library on a mounted USB, then finding that the permissions had been changed on the project folder after reverting from a backup.

    To restore access, I peformed the following steps:

    1. Allow R/W access to the Android project folder. sudo chmod -R 777 ./MyProjectDir

    2. Open the project in Android Studio. After gradle has finished indexing, clean the build.

    0 讨论(0)
  • 2020-12-01 16:31

    I found someone with the same problem here.

    The solution - albeit a temporary one - is to downgrade from Gradle 2.1.0 to 2.0.0 in my project's build.gradle file.

    0 讨论(0)
提交回复
热议问题