android.view.InflateException: Binary XML file line #0: Error inflating class Button

后端 未结 6 1101
陌清茗
陌清茗 2021-02-12 14:49

I am following a course on Audacity, and decided to type out all the code, but then I run into an error when I try run the app.

I get the following error:



        
6条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-12 15:40

    Have you tried adding in gradle.properties file this line below ?

     android.enableAapt2=false
    

    and then restarting the Gradle daemon command line by running

    ./gradlew --stop
    

    https://developer.android.com/studio/releases/gradle-plugin.html#optimizations

提交回复
热议问题