<bdo id='GxIyp'></bdo><ul id='GxIyp'></ul>

<small id='GxIyp'></small><noframes id='GxIyp'>

      <tfoot id='GxIyp'></tfoot>
    1. <legend id='GxIyp'><style id='GxIyp'><dir id='GxIyp'><q id='GxIyp'></q></dir></style></legend>
      1. <i id='GxIyp'><tr id='GxIyp'><dt id='GxIyp'><q id='GxIyp'><span id='GxIyp'><b id='GxIyp'><form id='GxIyp'><ins id='GxIyp'></ins><ul id='GxIyp'></ul><sub id='GxIyp'></sub></form><legend id='GxIyp'></legend><bdo id='GxIyp'><pre id='GxIyp'><center id='GxIyp'></center></pre></bdo></b><th id='GxIyp'></th></span></q></dt></tr></i><div id='GxIyp'><tfoot id='GxIyp'></tfoot><dl id='GxIyp'><fieldset id='GxIyp'></fieldset></dl></div>
      2. 谷歌材料设计库错误程序类型已经存在:android.s

        时间:2023-09-28
        <legend id='30ar0'><style id='30ar0'><dir id='30ar0'><q id='30ar0'></q></dir></style></legend>
          <tbody id='30ar0'></tbody>

          1. <small id='30ar0'></small><noframes id='30ar0'>

            <tfoot id='30ar0'></tfoot>
                <bdo id='30ar0'></bdo><ul id='30ar0'></ul>

                <i id='30ar0'><tr id='30ar0'><dt id='30ar0'><q id='30ar0'><span id='30ar0'><b id='30ar0'><form id='30ar0'><ins id='30ar0'></ins><ul id='30ar0'></ul><sub id='30ar0'></sub></form><legend id='30ar0'></legend><bdo id='30ar0'><pre id='30ar0'><center id='30ar0'></center></pre></bdo></b><th id='30ar0'></th></span></q></dt></tr></i><div id='30ar0'><tfoot id='30ar0'></tfoot><dl id='30ar0'><fieldset id='30ar0'></fieldset></dl></div>
                • 本文介绍了谷歌材料设计库错误程序类型已经存在:android.support.v4.app.INotificationSideChannel$Stub$Proxy的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  每当我尝试构建项目时添加 implemntation 'com.google.android.material:material:1.0.0-alpha1' 时,Android Studio 都会说:

                  Whenever i add implemntation 'com.google.android.material:material:1.0.0-alpha1' when i try to build my project Android Studio says:

                  程序类型已存在:android.support.v4.app.INotificationSideChannel$Stub$ProxyMessage{kind=ERROR, text=Program type already present: android.support.v4.app.INotificationSideChannel$Stub$Proxy, sources=[Unknown source file], tool name=Optional.of(D8)}

                  Program type already present: android.support.v4.app.INotificationSideChannel$Stub$Proxy Message{kind=ERROR, text=Program type already present: android.support.v4.app.INotificationSideChannel$Stub$Proxy, sources=[Unknown source file], tool name=Optional.of(D8)}

                  这是我的 gradle 脚本:

                  This is my gradle script:

                      apply plugin: 'com.android.application'
                  
                  android {
                      compileSdkVersion 'android-P'
                      defaultConfig {
                          applicationId "it.smart.bab3"
                          minSdkVersion 21
                          targetSdkVersion 'p'
                          versionCode 1
                          versionName "1.0"
                          testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
                      }
                      buildTypes {
                          release {
                              minifyEnabled false
                              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
                          }
                      }
                  }
                  
                  dependencies {
                      implementation fileTree(dir: 'libs', include: ['*.jar'])
                      implementation 'com.android.support:appcompat-v7:28.0.0-alpha1'
                      implementation 'com.google.android.material:material:1.0.0-alpha1'
                      implementation 'com.android.support.constraint:constraint-layout:1.1.0'
                      testImplementation 'junit:junit:4.12'
                      androidTestImplementation 'com.android.support.test:runner:1.0.2'
                      androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
                      implementation 'com.android.support:design:28.0.0-alpha1'
                      implementation 'com.android.support:support-v4:28.0.0-alpha1'
                  }
                  

                  我是这种类型的错误的新手,我没有发现这个错误.谢谢

                  I'm new ith this type of errors, and i didn't find anithing with this error. Thanks

                  推荐答案

                  我也为这个问题苦苦挣扎了一整天.最后,我成功编译并运行了项目.

                  I've been struggling all day with this issue too. Finally I managed to compile and run the project successfully.

                  首先,摆脱这个:

                  implementation 'com.android.support:appcompat-v7:28.0.0-alpha1'
                  implementation 'com.android.support:design:28.0.0-alpha1'
                  implementation 'com.android.support:support-v4:28.0.0-alpha1'
                  

                  在您的 gradle.properties 文件中添加以下内容:

                  Add the following in your gradle.properties file:

                  android.useAndroidX = true
                  android.enableJetifier = false
                  

                  最后,同步项目,然后编译.

                  And finally, sync the project and then compile.

                  如果不起作用,请清理项目,然后重新构建.

                  If it doesn't work, clean the project and then rebuild.

                  PS:我无法让 targetSdkVersion 'p' 工作.我的 build.gradle 文件最终如下:

                  PS: I can't get targetSdkVersion 'p' to work. My build.gradle file end up as follows:

                  apply plugin: 'com.android.application'
                  
                  android {
                      compileSdkVersion 'android-P'
                      defaultConfig {
                          applicationId "com.github.alvarosct02.demo"
                          minSdkVersion 19
                          targetSdkVersion 27
                          versionCode 1
                          versionName "1.0"
                          testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
                      }
                      buildTypes {
                          release {
                              minifyEnabled false
                              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
                          }
                      }
                  }
                  
                  dependencies {
                      implementation fileTree(dir: 'libs', include: ['*.jar'])
                  
                      implementation 'com.google.android.material:material:1.0.0-alpha1'
                      implementation 'com.android.support.constraint:constraint-layout:1.1.0'
                  
                      testImplementation 'junit:junit:4.12'
                      androidTestImplementation 'com.android.support.test:runner:1.0.2'
                      androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
                  
                  }
                  

                  希望它也对你有用.

                  这篇关于谷歌材料设计库错误程序类型已经存在:android.support.v4.app.INotificationSideChannel$Stub$Proxy的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:有没有办法在 Android 项目中将 Eclipse 与 Gradle 集成 下一篇:在 Eclipse 中导入 Gradle 项目时对等体未通过身份验

                  相关文章

                  最新文章

                  <small id='ZVPfT'></small><noframes id='ZVPfT'>

                • <tfoot id='ZVPfT'></tfoot>

                    <i id='ZVPfT'><tr id='ZVPfT'><dt id='ZVPfT'><q id='ZVPfT'><span id='ZVPfT'><b id='ZVPfT'><form id='ZVPfT'><ins id='ZVPfT'></ins><ul id='ZVPfT'></ul><sub id='ZVPfT'></sub></form><legend id='ZVPfT'></legend><bdo id='ZVPfT'><pre id='ZVPfT'><center id='ZVPfT'></center></pre></bdo></b><th id='ZVPfT'></th></span></q></dt></tr></i><div id='ZVPfT'><tfoot id='ZVPfT'></tfoot><dl id='ZVPfT'><fieldset id='ZVPfT'></fieldset></dl></div>

                    1. <legend id='ZVPfT'><style id='ZVPfT'><dir id='ZVPfT'><q id='ZVPfT'></q></dir></style></legend>
                        <bdo id='ZVPfT'></bdo><ul id='ZVPfT'></ul>