cannot access DialogStyle

前端 未结 7 2429
南旧
南旧 2021-02-12 04:10

After updating android-support library to 22.2.0 project stopped compiling.

error: cannot access DialogStyle
  class file for android.s         


        
7条回答
  •  离开以前
    2021-02-12 04:33

    @takoli's answer works in most cases but if you have other dependencies that silently include support-v4 or if you are too lazy to explicitly exclude support-v4 everywhere here is another solution.

    compile 'com.android.support:appcompat-v7:22.2.0'
    compile 'com.android.support:recyclerview-v7:22.2.0'
    compile 'com.android.support:mediarouter-v7:22.2.0'
    // Force stable version of support-v4
    compile ('com.android.support:support-v4:22.1.1') {
        force = true
    }
    

    Update:

    AndroidAnnotations released a new version 3.3.2 that resolves this issue. If you are using AndroidAnnotations update to 3.3.2 and use the 22.2.0 support libraries without forcing the old version of support-v4. For more information see this thread

提交回复
热议问题