Android Studio Import Eclipse Project Vitamio player error

Source: Internet
Author: User

Since the Vitamio player is updated to 5.0, it needs to update its dependent libraries, but the pit daddy is that this dependent library is the Eclipse project and the import process is as follows:     First: Open the project configuration Go to the following page: Click on the + number to select Import Eclipse ADT Project Next step next can be imported without an accident, a pile of error, mainly Gradle can not be configured correctly, it seems that Studio IQ is limited!! Let's help him, let's see what the error is: Unable to find this configuration
    1. compileSdkVersion Integer.parseInt(project.ANDROID_BUILD_SDK_VERSION)
    2. buildToolsVersion project.ANDROID_BUILD_TOOLS_VERSION
Let's take a look.What is the Gradle file generated by the import Eclipse ADT project?
  1. android {
  2. compileSdkVersion Integer.parseInt(project.ANDROID_BUILD_SDK_VERSION)
  3. buildToolsVersion project.ANDROID_BUILD_TOOLS_VERSION
  4. defaultConfig {
  5. minSdkVersion Integer.parseInt(project.ANDROID_BUILD_MIN_SDK_VERSION)
  6. targetSdkVersion Integer.parseInt(project.ANDROID_BUILD_TARGET_SDK_VERSION)
  7. }
  8. sourceSets {
  9. main {
  10. manifest.srcFile ‘AndroidManifest.xml‘
  11. java.srcDirs =[‘src‘]
  12. jniLibs.srcDirs =[‘libs‘]
  13. aidl.srcDirs =[‘src‘]
  14. renderscript.srcDirs =[‘src‘]
  15. res.srcDirs =[‘res‘]
  16. }
  17. }
  18. }
Just changed some of the configuration parameters, which can be manually configured primarilySourcesets This solve the first problem, after analysis, since the project does not have this attribute, then we add this attribute is done, the familiar gradle basic knowledge of the children's shoes are aware that the project configuration in gradle.properties this filecame to
 Found no this file, or that sentence, Studio IQ is limited, this file is not generated, then we can only manually create this file to come to this folder, create agradle.properties file, plus
  1. ANDROID_BUILD_TARGET_SDK_VERSION=19
  2. ANDROID_BUILD_TOOLS_VERSION=10.0.0
  3. ANDROID_BUILD_SDK_VERSION=19
  4. ANDROID_BUILD_MIN_SDK_VERSION=11
Recompile, find the second exception unable to find build Tools some children's shoes may download this buildtools this time is actually the last one we configured the wrong, put the first step aboveGradle.properties to the buildtools in your SDK .I can use the latest23.0.2
  1. ANDROID_BUILD_TARGET_SDK_VERSION=19
  2. ANDROID_BUILD_TOOLS_VERSION=23.0.2
  3. ANDROID_BUILD_SDK_VERSION=19
  4. ANDROID_BUILD_MIN_SDK_VERSION=11
Compile OK again!! Summary: Importing eclipse projects is really about configuring various parameters for Gradle, whereSourcesets This most important, specify what content is stored in the relevant directory, and then compile the version of the information stored ingradle.properties file, if there is a compile version of the problem, modify the file can be, Studio IQ also need to improve it!



From for notes (Wiz)



Android Studio Import Eclipse Project Vitamio player error

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.