简体   繁体   中英

How i can build old Android project in Android Studio

i have to build this project but getting error because it is so old.here is the project git hub link i am using latest android studio version

Try the following:

  • Change gradle version in build.gradle , change the version in the following line in the file: classpath 'com.android.tools.build:gradle:2.2.3' .
  • In the file gradle/wrapper/gradle-wrapper.properties , update the gradle version in this line: distributionUrl=https\\://services.gradle.org/distributions/gradle-2.14.1-all.zip . Sync the project again, it should work. If it doesn't restart android studio again. It should build successfully afterward.

PS: See what gradle version you use according to your android studio version.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM