I am a beginner Android Programmer. i have android project source but can not run and have error Sync failed. my android studio version is 3.2.1 sdk version from api 19 to api 26 gradle version 3.2.1 to 5.1 download from gradle website
Error when sync project
Gradle Setting
Gradle-wrapper-properties
gradle setting
i tested offline mode and in setting use local gradle distribution but can not sync project
Run button
and run button disable !!!
After set Proxy to android studio and download some file
Cannot create variant 'android-manifest-metadata' after configuration ':app:debugApiElements' has been resolved
- The project 'ContactsMapAndroid' may be using a version of the Android Gradle plug-in that does not contain the method (e.g. 'testCompile' was added in 1.1.0).
Upgrade plugin to version 3.2.1 and sync project
- The project 'ContactsMapAndroid' may be using a version of Gradle that does not contain the method.
Open Gradle wrapper file
- The build file may be missing a Gradle plugin.
Apply Gradle plugin
– Mostafa Bagheri Jan 07 '19 at 04:56