Cannot inherit from final class

后端 未结 2 394
忘了有多久
忘了有多久 2020-12-21 11:01

I installed Android studio 0.4.2 at Windows 7(64-bit). Try create simple project from studio, but I get an error:

Cannot inherit from final class

相关标签:
2条回答
  • 2020-12-21 11:53

    In addition to the above answer and before deleting the files, i opened the project which is broken, Android Studio told me gradle is out dated, and there was a small URL in the message that says fix gradle... this did something, but did not quite solve my problem. Afterwards, i deleted the files above, and everything worked.

    0 讨论(0)
  • 2020-12-21 11:59

    It seems a bug in android studio not specific but related to

    Cannot inherit from final Class
    

    Try comment #9 in below reported bug if it solves yours problem as well.

    BROKEN LINK NOW

    https://code.google.com/p/android/issues/detail?id=63953

    #comment9 was

    Close Android Studio, take a backup and delete all these files from your studio setup directory and start it again, might be it can help you

    android-studio/plugins/android/lib/builder-0.6.1.jar
    android-studio/plugins/android/lib/builder-model-0.6.1.jar
    android-studio/plugins/gradle/lib/gradle-base-services-1.8.jar
    android-studio/plugins/gradle/lib/gradle-build-setup-1.8.jar
    android-studio/plugins/gradle/lib/gradle-core-1.8.jar
    android-studio/plugins/gradle/lib/gradle-messaging-1.8.jar
    android-studio/plugins/gradle/lib/gradle-native-1.8.jar
    android-studio/plugins/gradle/lib/gradle-plugins-1.8.jar
    android-studio/plugins/gradle/lib/gradle-tooling-api-1.8.jar
    android-studio/plugins/gradle/lib/gradle-wrapper-1.8.jar
    android-studio/plugins/gradle/lib/guava-11.0.2.jar
    
    0 讨论(0)
提交回复
热议问题