I have a problem with Android Studio and Gradle to import appcompat-v7
.
So here is my src/build.gradle
:
apply plugin: \'andro
It seems the issue is with directories permissions .
Check and try following things :
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.
Run cd android && gradlew clean && cd.. && react-native run-android
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:
Allow R/W access to the Android project folder. sudo chmod -R 777 ./MyProjectDir
Open the project in Android Studio. After gradle has finished indexing, clean
the build.
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.