ADT 22 - missing aapt.exe after upgrading

后端 未结 4 1539
醉酒成梦
醉酒成梦 2020-12-13 19:48

At work, I need to use maven with Android.

maven uses appt.exe for its own compiling process.

ever since I\'ve upgraded to ADT 22 , maven says it can\'t find

4条回答
  •  抹茶落季
    2020-12-13 20:40

    It's moved to:

    path/to/your/android-sdk/build-tools/17.0.0/...
    

    I'm assuming this it to ad versioning to the build tools.

    We need the android-maven-plugin to do a fix! As its looking for the files under platform-tools/... which of course they are not anymore.

    Update - Fixed

    Update your pom.xml to 3.6.0 (or greater). The android-maven-plugin has been updated to support the new structure.

    See 3.6.0 Released

    
        com.jayway.maven.plugins.android.generation2
        android-maven-plugin
        3.6.0
        true
        
            
                ${android.platform}
            
         
    
    

    Temp Fix (Old - See Fix)

    As mentioned by the OP, copy the files from /build-tools/17.0.0/... to /platform-tools until the maven plugin is fixed.

    For unix users

    cp -r build-tools/17.0.0/* platform-tools/
    

    From your android sdk folder.

提交回复
热议问题