Android Studio在 dependencies 块下添加recyclerview依赖出现错误Error:unable to resolve dependency for ':app@debug/compileClasspath':Could not resolve androidx.recyclerview:recyclerview:1.1.0.

在dependencies块里添加其它的依赖都会报错,有没有大佬知道这是为什么啊,这个已经折磨我一个星期了T T..

图片说明

图片说明

图片说明

1个回答

gradle 是不是选了 offline,或者写了代理,也有可能你是以前在host做了些什么修改

最好加上淘宝的源试试

buildscript {
    repositories {
        maven{ url 'http://maven.aliyun.com/nexus/content/groups/public/'}
        google()
        jcenter()

    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.4.1'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
        maven { url 'http://maven.aliyun.com/nexus/content/repositories/jcenter' }
        maven { url 'http://maven.aliyun.com/nexus/content/repositories/google' }
        maven { url 'http://maven.aliyun.com/nexus/content/repositories/gradle-plugin' }
        google()
        jcenter()

    }
}

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
如何使用android studio将指定文件编译到apk中

我现在有一些文件需要编译到apk中,但是不知道如何操作 这个是我需要编译到apk中的文件: ![这个是我需要编译到apk中的文件](https://img-ask.csdn.net/upload/201708/29/1503990358_889265.png) 我希望最终达成的效果: ![我希望最终达成的效果](https://img-ask.csdn.net/upload/201708/29/1503990495_434378.png) 我所使用的android stduio的版本为2.3.3,gradle版本为2.2.3。 我的 build.gradle文件 ``` apply plugin: 'com.android.application' android { compileSdkVersion 25 buildToolsVersion "25.0.2" defaultConfig { applicationId "lnsoft.mobile.xtyth" minSdkVersion 21 targetSdkVersion 25 versionCode 4 versionName "1.06" //testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" // multiDexEnabled true } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } // sourceSets{ // main{ // jniLibs.srcDirs=['libs'] // } // } aaptOptions.cruncherEnabled = false aaptOptions.useNewCruncher = false } dependencies { compile fileTree(include: ['*.jar'], dir: 'libs') androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { exclude group: 'com.android.support', module: 'support-annotations' }) testCompile 'junit:junit:4.12' compile 'com.android.support:cardview-v7:25.3.1' compile 'com.android.support:design:25.3.1' compile 'com.android.support:recyclerview-v7:25.3.1' compile 'com.android.support:appcompat-v7:25.3.1' compile 'org.litepal.android:core:1.6.0' compile 'com.alibaba:fastjson:1.1.62.android' compile project(path: ':commondialogutils_green') compile project(':Android_Validator_master') compile project(':pulltorefreshview') compile project(':changeskin') // compile 'com.android.support:multidex:1.0.1' } ``` 我该如何操作?

导入RecyclerView-v7的时候gradle build出错

我准备使用RecyclerView,在dependencies导入RecyclerView-v7后gradle build出现以下错误。 Error:Execution failed for task ':app:processDebugManifest'. > Manifest merger failed : Attribute meta-data#android.support.VERSION@value value=(25.3.1) from [com.android.support:appcompat-v7:25.3.1] AndroidManifest.xml:27:9-31 is also present at [com.android.support:recyclerview-v7:26.0.0-alpha1] AndroidManifest.xml:24:9-38 value=(26.0.0-alpha1). Suggestion: add 'tools:replace="android:value"' to <meta-data> element at AndroidManifest.xml:25:5-27:34 to override. 按照提示在meta-data标签添加tools:replace="android:value"也没有用,会报以下错误。 Error:Execution failed for task ':app:processDebugManifest'. > Manifest merger failed with multiple errors, see logs

Android Studio导入第三方库AndroidSwipeLayout 运行时报错

本人刚开始学习android,小白水平。在导入第三方库AndroidSwipeLayout的时候遇到错误:每次运行的时候都会报错Error: Program type already present: android.support.v4.os.ResultReceiver。 因为刚开始学习,对gradle还不是很了解,到网上查询之后说是可能我有两个包版本不同但同时导入才导致的,但是我实在找不到报错中的信息对应在构建文件中的什么部分,在网上找了几个办法也都没有管用,求大神指点! 导入时用的是import Module,然后在project structure里添加依赖。 本人对gradle正在努力学习,还不是很懂,,附上配置文件的部分: **项目的build.gradle** ``` buildscript { repositories { google() jcenter() } dependencies { classpath 'com.android.tools.build:gradle:3.2.0-beta04' } } allprojects { repositories { google() jcenter() } } task clean(type: Delete) { delete rootProject.buildDir } ``` ## **app的build.gradle** ``` apply plugin: 'com.android.application' android { compileSdkVersion 28 defaultConfig { applicationId "com.zhang.hp.myapplication" minSdkVersion 15 targetSdkVersion 28 versionCode 1 versionName "1.0" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies { implementation fileTree(include: ['*.jar'], dir: 'libs') implementation 'androidx.appcompat:appcompat:1.0.0-alpha1' implementation 'androidx.constraintlayout:constraintlayout:1.1.2' testImplementation 'junit:junit:4.12' androidTestImplementation 'androidx.test:runner:1.1.0-alpha3' androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0-alpha3' implementation project(':library') } ``` ## 导入的library的build.gradle ``` apply plugin: 'com.android.library' android { compileSdkVersion Integer.parseInt(project.ANDROID_BUILD_SDK_VERSION) buildToolsVersion project.ANDROID_BUILD_TOOLS_VERSION defaultConfig { minSdkVersion 9 targetSdkVersion Integer.parseInt(project.ANDROID_BUILD_TARGET_SDK_VERSION) } } dependencies { compile 'com.android.support:recyclerview-v7:25.2.0' compile 'com.android.support:support-v4:25.2.0' } // build a jar with source files task sourcesJar(type: Jar) { from android.sourceSets.main.java.srcDirs classifier = 'sources' } artifacts { archives sourcesJar } ``` ## **gradle.properties** ``` # Project-wide Gradle settings. # IDE (e.g. Android Studio) users: # Gradle settings configured through the IDE *will override* # any settings specified in this file. # For more details on how to configure your build environment visit # http://www.gradle.org/docs/current/userguide/build_environment.html # Specifies the JVM arguments used for the daemon process. # The setting is particularly useful for tweaking memory settings. org.gradle.jvmargs=-Xmx1536m # When configured, Gradle will run in incubating parallel mode. # This option should only be used with decoupled projects. More details, visit # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects # org.gradle.parallel=true ANDROID_BUILD_TARGET_SDK_VERSION=25 ANDROID_BUILD_TOOLS_VERSION=25.0.0 ANDROID_BUILD_SDK_VERSION=25 ANDROID_BUILD_MIN_SDK_VERSION=14 ``` 最好能说明一下导包的版本问题,希望大神们能指点一下,谢谢!

导入recyclerview的jar包失败?

本人小白在网上找些代码自学一下,发现复制下来后的recyclerview报错,查了下发现可能是我没有导入关于它的jar包,于是跟着网上的教程右击app,点击open module settings/dependencies,添加了recyclerview-v7:28.0.0,然后系统开始build,但最后失败了,如下图![图片说明](https://img-ask.csdn.net/upload/202002/15/1581748116_622165.png) 有大神知道这是啥回事吗,因为第一次遇见,不知道怎么表达错误信息,logcat那里也是空的,大神可以说一声提供啥信息,我会更新的,感觉我的as好多问题[捂脸]

我导入一个Android Studio工程出现的问题,现在很郁闷啊

这个工程的gradle文件原来是这样: compile 'com.android.support:appcompat-v7:23.2.0' compile 'com.android.support:cardview-v7:23.2.0' compile 'com.android.support:customtabs:23.1.1' compile 'com.android.support:design:23.1.1' compile 'com.android.support:preference-v7:23.2.0' compile 'com.android.support:preference-v14:23.2.0' compile 'com.android.support:recyclerview-v7:23.2.0', 但是23.2.0和23.1.1的我本地没有,所以就在原来gradle文件中的dependencies目录下改成了gradle引入的是都是23.0.0版本,但是编译的时候一直显示failed to resolve: com.android.support:accompat-v7:23.2.0,其他几个也都是这样。按理说应该去加载23.0.0的,为什么一直都加载23.2.0的呢,而且extenal libraries目录下也没有任何v7,v4或者v7recyclerview等包,在project settings目录的dependencies下添加后extenal libraries目录里也是死活不显示。求大神告诉我啊,今天一天都纠结在这里了。 这个项目地址是:https://github.com/DreaminginCodeZH/Douya。

android studio 生成maven 多个module依赖问题

我有一个工程 叫xxx_Libray,里边有2个module 分别为lib1、bli2 。lib2依赖lib1。编译lib2的gradle生成的pom文件格式如下: ``` <dependency> <groupId>xxx_Libray</groupId>//这里groupId 和 version 有问题 <artifactId>lib1</artifactId> <version>unspecified</version> <scope>compile</scope> </dependency> <dependency> <groupId>com.android.support</groupId> <artifactId>design</artifactId> <version>23.1.1</version> <scope>compile</scope> </dependency> <dependency> <groupId>com.android.support</groupId> <artifactId>recyclerview-v7</artifactId> <version>23.+</version> <scope>compile</scope> </dependency> ``` 在使用依赖的项目里 ``` dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) compile 'xxx.xxx.xxx:1.0' } ``` 提示Error:Failed to resolve: XXX_Libray:lib1:unspecified ``` maven_push.gradle ``` ``` apply plugin: 'maven' apply plugin: 'signing' configurations { deployerJars } repositories { mavenCentral() } // 判断版本是Release or Snapshots def isReleaseBuild() { return !VERSION.contains("SNAPSHOT"); } // 获取仓库url def getRepositoryUrl() { return isReleaseBuild() ? RELEASE_URL : SNAPSHOT_URL; } uploadArchives { repositories { mavenDeployer { beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) } pom.version = VERSION pom.artifactId = POM_ARTIFACT_ID pom.groupId = GROUP repository(url: getRepositoryUrl()) { authentication(userName: NAME, password: PASSWORD) // maven授权信息 } } } } // 进行数字签名 signing { // 当 发布版本 & 存在"uploadArchives"任务时,才执行 required { isReleaseBuild() && gradle.taskGraph.hasTask("uploadArchives") } sign configurations.archives } ``` 我觉得是pom生成依赖的问题,可是不知道怎么改,求帮忙。万分感激

android studio 关于jar包问题 不知道怎么解决

apply plugin: 'com.android.application' apply plugin: 'com.jakewharton.butterknife' android { compileSdkVersion 25 buildToolsVersion "25.0.0" useLibrary 'org.apache.http.legacy' defaultConfig { applicationId "com.mynj" minSdkVersion 16 targetSdkVersion 25 versionCode 1 versionName "1.0" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } sourceSets { main { assets.srcDirs = ['src/main/assets', 'src/main/assets/'] } } } dependencies { compile fileTree(include: ['*.jar'], dir: 'libs') androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { exclude group: 'com.android.support', module: 'support-annotations' }) testCompile 'junit:junit:4.12' compile 'com.android.support:appcompat-v7:25.0.1' compile 'com.android.support:recyclerview-v7:25.0.1' compile 'io.reactivex.rxjava2:rxjava:2.1.2' compile 'io.reactivex.rxjava2:rxandroid:2.0.1' compile 'com.squareup.retrofit2:retrofit:2.3.0' compile 'com.squareup.retrofit2:converter-gson:2.3.0' compile 'com.jakewharton.retrofit:retrofit2-rxjava2-adapter:1.0.0' compile 'com.squareup.okhttp3:okhttp:3.8.1' compile 'com.squareup.okhttp3:logging-interceptor:3.8.1' compile 'com.jakewharton:butterknife:8.4.0' annotationProcessor 'com.jakewharton:butterknife-compiler:8.4.0' compile 'com.squareup.picasso:picasso:2.5.1' compile 'com.github.bumptech.glide:glide:3.5.2' } 运行之后报错 Gradle build finished with 186 error(s) in 1m 39s 514ms Error:warning: Ignoring InnerClasses attribute for an anonymous inner class Error:(com.mysql.jdbc.ConnectionImpl$1) that doesn't come with an Error:associated EnclosingMethod attribute. This class was probably produced by a Error:compiler that did not target the modern .class file format. The recommended Error:solution is to recompile the class from source, using an up-to-date compiler Error:and without specifying any "-target" type options. The consequence of ignoring Error:this warning is that reflective operations on this class will incorrectly Error:indicate that it is *not* an inner class. Error:(com.mysql.jdbc.ConnectionImpl$10) that doesn't come with an Error:warning: Ignoring InnerClasses attribute for an anonymous inner class Error:associated EnclosingMethod attribute. This class was probably produced by a Error:compiler that did not target the modern .class file format. The recommended Error:solution is to recompile the class from source, using an up-to-date compiler Error:and without specifying any "-target" type options. The consequence of ignoring Error:this warning is that reflective operations on this class will incorrectly Error:warning: Ignoring InnerClasses attribute for an anonymous inner class Error:indicate that it is *not* an inner class. Error:(com.mysql.jdbc.ConnectionImpl$2) that doesn't come with an Error:associated EnclosingMethod attribute. This class was probably produced by a Error:compiler that did not target the modern .class file format. The recommended Error:solution is to recompile the class from source, using an up-to-date compiler Error:and without specifying any "-target" type options. The consequence of ignoring Error:this warning is that reflective operations on this class will incorrectly Error:indicate that it is *not* an inner class. Error:(com.mysql.jdbc.ConnectionImpl$3) that doesn't come with an Error:warning: Ignoring InnerClasses attribute for an anonymous inner class Error:associated EnclosingMethod attribute. This class was probably produced by a Error:compiler that did not target the modern .class file format. The recommended Error:solution is to recompile the class from source, using an up-to-date compiler Error:and without specifying any "-target" type options. The consequence of ignoring Error:this warning is that reflective operations on this class will incorrectly Error:indicate that it is *not* an inner class.

头疼,每次学新知识一开头就报错,就大神解决

``` package com.example.administrator.myrecycler; import android.support.v7.app.AlertController; import android.support.v7.widget.RecyclerView; import android.support.v7.widget.GridLayoutManager; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; public class MainActivity extends AppCompatActivity { AlertController.RecycleListView recycleListView=findViewById(R.id.recycler_view); @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); } } ``` 想学一下recyclerview弄一下布局,根据网上教程也先build中插入了,然后xml也写了,之后到mainactivity中一输入recyclerview就报错,上面关于recyclerview的import也是红的,感觉是alertcontroller的问题,有大神知道怎么解决吗?下面是build的 ``` dependencies { implementation fileTree(include: ['*.jar'], dir: 'libs') implementation 'com.android.support:appcompat-v7:28.0.0' implementation 'com.android.support.constraint:constraint-layout:1.1.3' 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:recyclerview-v7:28.0.0' implementation 'com.android.support:cardview-v7:28.0.0' implementation 'com.android.support:appcompat-v7:28.0.0' } ``` Altercontroller的报错信息是“Android....AlterController”is not public in "android.support.v7.app".cannot be accessed from outside package ![图片说明](https://img-ask.csdn.net/upload/202003/03/1583199807_307463.png) ![图片说明](https://img-ask.csdn.net/upload/202003/03/1583199848_568630.png) ![图片说明](https://img-ask.csdn.net/upload/202003/03/1583202210_363227.png) 布局方面是可以用的 ![图片说明](https://img-ask.csdn.net/upload/202003/03/1583202461_734878.png) ![图片说明](https://img-ask.csdn.net/upload/202003/03/1583202471_18295.png)

AS:Error:(27, 0) Could not find method...

小白一枚,然后今天在做练习的时候发现,当我在项目中添加依赖库的时候, dependencies { provided fileTree(dir: 'libs', include: ['*.jar']) compile 'com.android.support:appcompat-v7:25.1.0' compile 'com.android.support:recyclerview-v7:25.1.0' testCompile 'junit:junit:4.12' } 然后Sync, Error:(27, 0) Could not find method provided() for arguments [directory 'libs'] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler. 然后...百度了一波,还是有点无能为力,求大神解救... 拜谢

run的时候完美,一到签名打包release就报错

Error:Error converting bytecode to dex: Cause: com.android.dex.DexException: Multiple dex files define Lcom/google/gson/JsonSerializer; ## Warning:warning: Ignoring InnerClasses attribute for an anonymous inner class ## (com.common.cliplib.a.c) that doesn't come with an ## associated EnclosingMethod attribute. This class was probably produced by a ## compiler that did not target the modern .class file format. The recommended ## solution is to recompile the class from source, using an up-to-date compiler ## and without specifying any "-target" type options. The consequence of ignoring ## this warning is that reflective operations on this class will incorrectly ## indicate that it is *not* an inner class. 下为build.grild ```dependencies { compile fileTree(include: ['*.jar'], dir: 'libs') testCompile 'junit:junit:4.12' compile 'com.umeng.analytics:analytics:latest.integration' compile 'com.android.support:appcompat-v7:23.4.0' compile 'com.orhanobut:logger:1.15' compile 'com.android.support:cardview-v7:23.4.0' compile 'com.jakewharton:butterknife:7.0.1' compile 'com.android.support:support-annotations:23.1.1' compile 'org.greenrobot:eventbus:3.0.0' compile 'com.google.code.gson:gson:2.4' compile 'com.android.support:recyclerview-v7:23.+' compile 'com.android.support:design:23.4.0' compile 'com.getbase:floatingactionbutton:1.5.1' compile 'com.github.clans:fab:1.6.4' compile 'com.oguzdev:CircularFloatingActionMenu:1.0.2' compile 'io.github.yavski:fab-speed-dial:1.0.1' compile 'cc.trity.floatingactionbutton:library:1.0.0' compile files('libs/adshower-library.jar') compile files('libs/umeng-analytics-v6.1.0.jar') } ``` 有说是包名重复可是看了一下没有重复的啊

维护很久前的项目 莫名其妙的导入design

前几天维护一个很久前的项目,想转到安卓x,结果对jar包升级的时候有一个design一直存在,并且报错把jar包转移到新项目中也不会出现这个design 下面贴图![图片说明](https://img-ask.csdn.net/upload/201912/07/1575657133_874940.jpg) apply plugin: 'com.android.application' apply plugin: "findbugs" /*apply from: 'tinker-support.gradle' apply plugin: 'packer'*/ task findbugs(type: FindBugs, dependsOn: 'assembleDebug') { ignoreFailures = true effort = "default" reportLevel = "high" println("$project.buildDir") classes = files("$project.buildDir/intermediates/classes") source = fileTree("src/main/java/") classpath = files() reports { xml.enabled = false html.enabled = true xml { destination file ("$project.buildDir/findbugs.xml") } html { destination file("$project.buildDir/findbugs.html") } } } android { lintOptions { checkReleaseBuilds false abortOnError false } compileSdkVersion 29 buildToolsVersion "29.0.2" sourceSets { main { jniLibs.srcDir 'libs' } // Move the tests to tests/java, tests/res, etc... //instrumentTest.setRoot('tests') // Move the build types to build-types/<type> // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... // This moves them out of them default location under src/<type>/... which would // conflict with src/ being used by the main source set. // Adding new build types or product flavors should be accompanied // by a similar customization. debug.setRoot('build-types/debug') release.setRoot('build-types/release') } defaultConfig { applicationId "com.goodlive.flying" minSdkVersion 21 targetSdkVersion 29 versionCode 20180228 versionName "1.5.9" //versionName "1.5.2"正式版 // Enabling multidex support. multiDexEnabled true ndk { // 设置支持的SO库架构 abiFilters 'armeabi' , 'x86'//, 'armeabi-v7a', 'x86_64', 'arm64-v8a' } } dexOptions { javaMaxHeapSize "4g" } signingConfigs { release { storeFile file('.jks') storePassword "" keyAlias "" keyPassword "" // 满足下面两个条件时需要此配置 // 1. Gradle版本 >= 2.14.1 // 2. Android Gradle Plugin 版本 >= 2.2.0 // 作用是只使用旧版签名,禁用V2版签名模式 v2SigningEnabled false } debug { storeFile file('.jks') storePassword "" keyAlias "" keyPassword "" } } buildTypes { release { //启用混淆配置 //Zip代码压缩优化 // zipAlignEnabled true //移除无用资源 // shrinkResources true // debuggable true //加载默认混淆文件 proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' signingConfig signingConfigs.release } debug { //启用混淆配置 minifyEnabled false //Zip代码压缩优化 // zipAlignEnabled true //移除无用资源 // shrinkResources true //debugs使用release签名 //加载默认混淆文件 proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' signingConfig signingConfigs.release } } } dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation project(path: ':PushSDK') implementation 'androidx.appcompat:appcompat:1.1.0' implementation 'androidx.constraintlayout:constraintlayout:1.1.3' testImplementation 'junit:junit:4.12' androidTestImplementation 'androidx.test:runner:1.2.0' androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0' // implementation files('libs/SocialSDK_WeiXin_Full.jar') //dagger2 implementation 'com.qianwen:update-app:3.3.3' implementation 'com.lzy.net:okgo:3.0.4' implementation 'androidx.appcompat:appcompat:1.1.0' implementation 'androidx.recyclerview:recyclerview:1.1.0' implementation 'androidx.cardview:cardview:1.0.0' implementation ('com.google.android.material:material:1.0.0'){ exclude group: 'com.android.support' } implementation ('com.jakewharton:butterknife:8.1.0'){ exclude group: 'com.android.support' } implementation 'com.android.support:multidex:1.0.3' implementation 'com.mcxiaoke.gradle:packer-helper:1.0.9' implementation ('com.github.bumptech.glide:glide:4.0.0-RC0'){ exclude group: 'com.android.support' } implementation 'com.tencent.bugly:crashreport_upgrade:1.4.2' //w implementation ('com.github.lygttpod:SuperTextView:1.0.7'){ exclude group: 'com.android.support' } implementation 'com.orhanobut:logger:1.15' //w implementation ('com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.13'){ exclude group: 'com.android.support' } implementation 'com.blankj:utilcode:1.3.1' implementation 'cn.finalteam:galleryfinal:1.4.8.7' implementation 'com.google.code.gson:gson:2.8.2' implementation 'org.greenrobot:eventbus:3.0.0' implementation 'com.squareup.okhttp3:okhttp:3.10.0' implementation 'com.roughike:bottom-bar:2.0.2' implementation 'com.squareup.okhttp3:logging-interceptor:3.4.1' implementation 'com.squareup.okhttp3:okhttp-urlconnection:3.4.1' implementation 'io.reactivex:rxandroid:1.2.1' implementation 'io.reactivex:rxjava:1.2.1' implementation 'com.squareup.retrofit2:retrofit:2.1.0' implementation 'com.squareup.retrofit2:adapter-rxjava:2.1.0' implementation 'com.squareup.retrofit2:converter-gson:2.1.0' implementation 'com.trello:rxlifecycle-components:0.6.1' implementation 'com.jakewharton.rxbinding:rxbinding:0.4.0' implementation 'com.jakewharton.rxbinding:rxbinding-appcompat-v7:0.3.0' implementation 'com.jakewharton.rxbinding:rxbinding-design:0.3.0' implementation 'com.facebook.stetho:stetho:1.5.0' implementation 'com.facebook.stetho:stetho-okhttp3:1.5.0' implementation 'com.lsjwzh:materialloadingprogressbar:0.5.8-RELEASE' implementation 'me.shaohui.advancedluban:library:1.3.3' implementation 'com.dinuscxj:recycleritemdecoration:1.0.0' implementation 'com.umeng.analytics:analytics:6.1.4' implementation 'androidx.constraintlayout:constraintlayout:1.1.3' implementation 'com.zhy:flowlayout-lib:1.0.3' implementation 'com.afollestad.material-dialogs:core:0.9.4.5' implementation 'com.google.dagger:dagger:2.11-rc2' implementation 'se.emilsjolander:stickylistheaders:2.7.0' testImplementation 'junit:junit:4.12' implementation 'com.bigkoo:quicksidebar:1.0.3' annotationProcessor 'com.github.bumptech.glide:compiler:4.0.0-RC0' annotationProcessor 'com.jakewharton:butterknife-compiler:8.1.0' annotationProcessor 'com.google.dagger:dagger-compiler:2.11-rc2' implementation 'com.github.razerdp:BasePopup:1.9.1' implementation 'com.makeramen:roundedimageview:2.3.0' implementation("com.github.hotchemi:permissionsdispatcher:3.1.0") { // if you don't use android.app.Fragment you can exclude support for them exclude module: "support-v13" } annotationProcessor "com.github.hotchemi:permissionsdispatcher-processor:3.1.0" } ``` 求助大神啊 ```

提示cannot resolve symbol 'NonNull'

# 从网上下下来一个Demo 然后自己在学习的过程中,在demo基础上修修改改,之前能打开,今天编译0错误0警告,能启动虚拟机,但是应用就是跑 不起来,显示已经停止,发现错误好像都在这个叫Hyphenator.java的类中, ## import android.annotation.NonNull;提示cannot resolve symbol 'NonNull' ## import com.android.internal.annotations.GuardedBy;提示connot resolve symbol 'GuardedBy' ``` package android.text; import android.annotation.NonNull; import android.util.Log; import com.android.internal.annotations.GuardedBy; import java.io.File; import java.io.IOException; import java.io.RandomAccessFile; import java.nio.ByteBuffer; import java.nio.MappedByteBuffer; import java.nio.channels.FileChannel; import java.util.HashMap; import java.util.Locale; /** * Hyphenator is a wrapper class for a native implementation of automatic hyphenation, * in essence finding valid hyphenation opportunities in a word. * * @hide */ public class Hyphenator { // This class has deliberately simple lifetime management (no finalizer) because in // the common case a process will use a very small number of locales. private static String TAG = "Hyphenator"; private final static Object sLock = new Object(); @GuardedBy("sLock") final static HashMap<Locale, Hyphenator> sMap = new HashMap<Locale, Hyphenator>(); final static Hyphenator sEmptyHyphenator = new Hyphenator(StaticLayout.nLoadHyphenator(null, 0), null); final private long mNativePtr; // We retain a reference to the buffer to keep the memory mapping valid @SuppressWarnings("unused") final private ByteBuffer mBuffer; private Hyphenator(long nativePtr, ByteBuffer b) { mNativePtr = nativePtr; mBuffer = b; } public long getNativePtr() { return mNativePtr; } public static Hyphenator get(@Nullable Locale locale) { synchronized (sLock) { Hyphenator result = sMap.get(locale); if (result != null) { return result; } // If there's a variant, fall back to language+variant only, if available final String variant = locale.getVariant(); if (!variant.isEmpty()) { final Locale languageAndVariantOnlyLocale = new Locale(locale.getLanguage(), "", variant); result = sMap.get(languageAndVariantOnlyLocale); if (result != null) { sMap.put(locale, result); return result; } } // Fall back to language-only, if available final Locale languageOnlyLocale = new Locale(locale.getLanguage()); result = sMap.get(languageOnlyLocale); if (result != null) { sMap.put(locale, result); return result; } // Fall back to script-only, if available final String script = locale.getScript(); if (!script.equals("")) { final Locale scriptOnlyLocale = new Locale.Builder() .setLanguage("und") .setScript(script) .build(); result = sMap.get(scriptOnlyLocale); if (result != null) { sMap.put(locale, result); return result; } } sMap.put(locale, sEmptyHyphenator); // To remember we found nothing. } return sEmptyHyphenator; } private static Hyphenator loadHyphenator(String languageTag) { String patternFilename = "hyph-" + languageTag.toLowerCase(Locale.US) + ".hyb"; File patternFile = new File(getSystemHyphenatorLocation(), patternFilename); try { RandomAccessFile f = new RandomAccessFile(patternFile, "r"); try { FileChannel fc = f.getChannel(); MappedByteBuffer buf = fc.map(FileChannel.MapMode.READ_ONLY, 0, fc.size()); long nativePtr = StaticLayout.nLoadHyphenator(buf, 0); return new Hyphenator(nativePtr, buf); } finally { f.close(); } } catch (IOException e) { Log.e(TAG, "error loading hyphenation " + patternFile, e); return null; } } private static File getSystemHyphenatorLocation() { return new File("/system/usr/hyphen-data"); } // This array holds pairs of language tags that are used to prefill the map from locale to // hyphenation data: The hyphenation data for the first field will be prefilled from the // hyphenation data for the second field. // // The aliases that are computable by the get() method above are not included. private static final String[][] LOCALE_FALLBACK_DATA = { // English locales that fall back to en-US. The data is // from CLDR. It's all English locales, minus the locales whose // parent is en-001 (from supplementalData.xml, under <parentLocales>). // TODO: Figure out how to get this from ICU. {"en-AS", "en-US"}, // English (American Samoa) {"en-GU", "en-US"}, // English (Guam) {"en-MH", "en-US"}, // English (Marshall Islands) {"en-MP", "en-US"}, // English (Northern Mariana Islands) {"en-PR", "en-US"}, // English (Puerto Rico) {"en-UM", "en-US"}, // English (United States Minor Outlying Islands) {"en-VI", "en-US"}, // English (Virgin Islands) // All English locales other than those falling back to en-US are mapped to en-GB. {"en", "en-GB"}, // For German, we're assuming the 1996 (and later) orthography by default. {"de", "de-1996"}, // Liechtenstein uses the Swiss hyphenation rules for the 1901 orthography. {"de-LI-1901", "de-CH-1901"}, // Norwegian is very probably Norwegian Bokmål. {"no", "nb"}, // Use mn-Cyrl. According to CLDR's likelySubtags.xml, mn is most likely to be mn-Cyrl. {"mn", "mn-Cyrl"}, // Mongolian // Fall back to Ethiopic script for languages likely to be written in Ethiopic. // Data is from CLDR's likelySubtags.xml. // TODO: Convert this to a mechanism using ICU4J's ULocale#addLikelySubtags(). {"am", "und-Ethi"}, // Amharic {"byn", "und-Ethi"}, // Blin {"gez", "und-Ethi"}, // Geʻez {"ti", "und-Ethi"}, // Tigrinya {"wal", "und-Ethi"}, // Wolaytta }; /** * Load hyphenation patterns at initialization time. We want to have patterns * for all locales loaded and ready to use so we don't have to do any file IO * on the UI thread when drawing text in different locales. * * @hide */ public static void init() { sMap.put(null, null); // TODO: replace this with a discovery-based method that looks into /system/usr/hyphen-data String[] availableLanguages = { "as", "bn", "cy", "da", "de-1901", "de-1996", "de-CH-1901", "en-GB", "en-US", "es", "et", "eu", "fr", "ga", "gu", "hi", "hr", "hu", "hy", "kn", "ml", "mn-Cyrl", "mr", "nb", "nn", "or", "pa", "pt", "sl", "ta", "te", "tk", "und-Ethi", }; for (int i = 0; i < availableLanguages.length; i++) { String languageTag = availableLanguages[i]; Hyphenator h = loadHyphenator(languageTag); if (h != null) { sMap.put(Locale.forLanguageTag(languageTag), h); } } for (int i = 0; i < LOCALE_FALLBACK_DATA.length; i++) { String language = LOCALE_FALLBACK_DATA[i][0]; String fallback = LOCALE_FALLBACK_DATA[i][1]; sMap.put(Locale.forLanguageTag(language), sMap.get(Locale.forLanguageTag(fallback))); } } } ``` ## ## 这个是我build.gradle文件 ``` apply plugin: 'com.android.application' android { compileSdkVersion 24 buildToolsVersion '25.0.0' defaultConfig { applicationId "cn.leancloud.leanstoragegettingstarted" minSdkVersion 14 targetSdkVersion 24 versionCode 1 versionName "1.0" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } //为了解决部分第三方库重复打包了META-INF的问题 packagingOptions{ exclude 'META-INF/LICENSE.txt' exclude 'META-INF/NOTICE.txt' } } dependencies { compile fileTree(include: ['*.jar'], dir: 'libs') compile 'junit:junit:4.12' compile 'com.android.support:appcompat-v7:24.0.0' compile 'com.android.support:design:24.0.0' // LeanCloud 基础包 compile 'cn.leancloud.android:avoscloud-sdk:v3.+' compile 'cn.leancloud.android:avoscloud-statistics:v3.+' compile 'com.squareup.picasso:picasso:2.5.2' compile 'com.android.support:recyclerview-v7:24.0.0' compile 'com.android.support:cardview-v7:24.0.0' compile 'com.android.support.constraint:constraint-layout:1.0.2' compile 'com.android.support:support-v4:24.0.0-alpha1' compile 'com.android.support:support-annotations:24.0.0-alpha1' } ```

constrainLayout无法预览.render error

-failed to instantiate one or more classes java.lang.NoSuchFieldError: ConstraintLayout_Layout at android.support.constraint.ConstraintLayout.init(ConstraintLayout.java:440) at android.support.constraint.ConstraintLayout.<init>(ConstraintLayout.java:420) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at org.jetbrains.android.uipreview.ViewLoader.createNewInstance(ViewLoader.java:475) at org.jetbrains.android.uipreview.ViewLoader.loadClass(ViewLoader.java:262) at org.jetbrains.android.uipreview.ViewLoader.loadView(ViewLoader.java:220) at com.android.tools.idea.rendering.LayoutlibCallbackImpl.loadView(LayoutlibCallbackImpl.java:186) at android.view.BridgeInflater.loadCustomView(BridgeInflater.java:334) at android.view.BridgeInflater.loadCustomView(BridgeInflater.java:345) at android.view.BridgeInflater.createViewFromTag(BridgeInflater.java:245) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:727) at android.view.LayoutInflater.inflate(LayoutInflater.java:495) at android.view.LayoutInflater.inflate(LayoutInflater.java:397) at com.android.layoutlib.bridge.impl.RenderSessionImpl.inflate(RenderSessionImpl.java:324) at com.android.layoutlib.bridge.Bridge.createSession(Bridge.java:429) at com.android.ide.common.rendering.LayoutLibrary.createSession(LayoutLibrary.java:368) at com.android.tools.idea.rendering.RenderTask$2.compute(RenderTask.java:567) at com.android.tools.idea.rendering.RenderTask$2.compute(RenderTask.java:549) at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:863) at com.android.tools.idea.rendering.RenderTask.createRenderSession(RenderTask.java:549) at com.android.tools.idea.rendering.RenderTask.lambda$inflate$1(RenderTask.java:680) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) gradle dependencies { final ANDROID_VERSION = '26.+' compile fileTree(include: ['*.jar'], dir: 'libs') androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { exclude group: 'com.android.support', module: 'support-annotations' }) compile 'com.android.support.constraint:constraint-layout:1.0.2' compile "com.android.support:appcompat-v7:$ANDROID_VERSION" compile "com.android.support:recyclerview-v7:$ANDROID_VERSION" compile "com.android.support:design:$ANDROID_VERSION" compile "com.android.support:cardview-v7:$ANDROID_VERSION" compile "com.android.support:support-v4:$ANDROID_VERSION" compile "com.android.support:recyclerview-v7:$ANDROID_VERSION" compile "com.android.support:support-annotations:$ANDROID_VERSION" compile files('libs/eventbus-3.0.0.jar') // 支持 vector 图片资源 compile "com.android.support:support-vector-drawable:$ANDROID_VERSION" // ButterKnife compile 'com.jakewharton:butterknife:8.6.0' annotationProcessor 'com.jakewharton:butterknife-compiler:8.6.0' // 权限申请 compile 'pub.devrel:easypermissions:0.4.2' // leakCanary 泄漏检测 final LEAKCANARY_VERSION = '1.5' debugCompile "com.squareup.leakcanary:leakcanary-android:$LEAKCANARY_VERSION" releaseCompile "com.squareup.leakcanary:leakcanary-android-no-op:$LEAKCANARY_VERSION" testCompile "com.squareup.leakcanary:leakcanary-android-no-op:$LEAKCANARY_VERSION" compile project(path: ':bzblibrary') }

安卓module打包成aar文件,运行后报错java.lang.NoSuchMethodError:

报错信息: java.lang.NoSuchMethodError: No static method setOnApplyWindowInsetsListener(Landroid/view/View;Landroid/support/v4/view/OnApplyWindowInsetsListener;)V in class Landroid/support/v4/view/ViewCompatLollipop; or its super classes (declaration of 'android.support.v4.view.ViewCompatLollipop' appears in /data/app/com.b1993423839.zsa-1/base.apk:classes46.dex) 下面是我的v4和v7包都放在module的libs中引用,版本都是一致的,最后打包的时候也是将引用的aar文件放入主项目的libs中引用,最后将module的aar引入到主项目中,为啥运行的时候会出现找不到v4的方法呢? //安卓高级组件implementation(name: 'recyclerview-v7-25.2.0', ext: 'aar') implementation(name: 'constraint-layout-1.0.2', ext: 'aar') implementation files('libs/constraint-layout-solver-1.0.2.jar') implementation(name: 'design-25.2.0', ext: 'aar') //安卓兼容包 implementation(name: 'animated-vector-drawable-25.2.0', ext: 'aar') implementation(name: 'appcompat-v7-25.2.0', ext: 'aar') implementation(name: 'support-compat-25.2.0', ext: 'aar') implementation(name: 'support-core-ui-25.2.0', ext: 'aar') implementation(name: 'support-core-utils-25.2.0', ext: 'aar') implementation(name: 'support-fragment-25.2.0', ext: 'aar') implementation(name: 'support-media-compat-25.2.0', ext: 'aar') implementation(name: 'support-v4-25.2.0', ext: 'aar') implementation(name: 'support-vector-drawable-25.2.0', ext: 'aar') implementation(name: 'transition-25.2.0', ext: 'aar') implementation files('libs/support-annotations-25.2.0.jar') ![图片说明](https://img-ask.csdn.net/upload/201804/16/1523852888_948038.jpg)

NullPointerException during IR Conversion求教各位大佬这个问题应该怎么解决

下载了Mozilla的fenix的工程,然后自己新建了一个项目,但是没有办法生成APK,build的时候出现NullPointerException during IR Conversion 生成APK的时候出现这个错误 ``` Error: C:\Users\1247\.gradle\caches\transforms-2\files-2.1\a23c8c3902a9b5254e713513da60c387\jetified-feature-tab-collections-43.0.20200520130058-runtime.jar:mozilla/components/feature/tab/collections/TabCollectionStorage.class, androidx.lifecycle.LiveData mozilla.components.feature.tab.collections.TabCollectionStorage.getCollections(int), NullPointerException during IR Conversion ``` 尝试过 1.指定r8版本,classpath 'com.android.tools:r8:1.6.88' 2.在gradle.properties中添加android.useNewApkCreator=false 3.提高依赖版本 还是没有用 下面是我的gradle文件 ``` ``` buildscript { ext.kotlin_version = '1.3.72' repositories { maven { url "https://nightly.maven.mozilla.org/maven2" content { // Always fetch components from the snapshots repository includeGroup "org.mozilla.components" } } maven { url "https://maven.mozilla.org/maven2" content { // Never fetch components from here. We always want to use snapshots. excludeGroup "org.mozilla.components" } } google() jcenter() { url 'https://jcenter.bintray.com/' } } dependencies { classpath 'com.android.tools.build:gradle:3.6.3' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files def nav_version = "2.2.2" classpath "androidx.navigation:navigation-safe-args-gradle-plugin:$nav_version" classpath 'com.google.android.gms:oss-licenses-plugin:0.10.2' def components_version = "43.0.20200520130058" classpath "org.mozilla.components:tooling-glean-gradle:$components_version" classpath "org.jetbrains.kotlin:kotlin-allopen:1.3.72" classpath "com.android.tools:r8:1.6.84" } } allprojects { repositories { google() jcenter() maven { url "https://nightly.maven.mozilla.org/maven2" content { // Always fetch components from the snapshots repository includeGroup "org.mozilla.components" } } maven { url "https://maven.mozilla.org/maven2" content { // Never fetch components from here. We always want to use snapshots. excludeGroup "org.mozilla.components" } } } } task clean(type: Delete) { delete rootProject.buildDir } ``` buildscript { ext.kotlin_version = '1.3.72' repositories { maven { url "https://nightly.maven.mozilla.org/maven2" content { // Always fetch components from the snapshots repository includeGroup "org.mozilla.components" } } maven { url "https://maven.mozilla.org/maven2" content { // Never fetch components from here. We always want to use snapshots. excludeGroup "org.mozilla.components" } } google() jcenter() { url 'https://jcenter.bintray.com/' } } dependencies { classpath 'com.android.tools.build:gradle:3.6.3' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files def nav_version = "2.2.2" classpath "androidx.navigation:navigation-safe-args-gradle-plugin:$nav_version" classpath 'com.google.android.gms:oss-licenses-plugin:0.10.2' def components_version = "43.0.20200520130058" classpath "org.mozilla.components:tooling-glean-gradle:$components_version" classpath "org.jetbrains.kotlin:kotlin-allopen:1.3.72" classpath "com.android.tools:r8:1.6.84" } } allprojects { repositories { google() jcenter() maven { url "https://nightly.maven.mozilla.org/maven2" content { // Always fetch components from the snapshots repository includeGroup "org.mozilla.components" } } maven { url "https://maven.mozilla.org/maven2" content { // Never fetch components from here. We always want to use snapshots. excludeGroup "org.mozilla.components" } } } } task clean(type: Delete) { delete rootProject.buildDir } ``` ``` plugins { id "com.jetbrains.python.envs" version "0.0.26" } apply plugin: 'com.android.application' apply plugin: 'kotlin-android' apply plugin: 'kotlin-android-extensions' apply plugin: "androidx.navigation.safeargs.kotlin" apply plugin: 'com.google.android.gms.oss-licenses-plugin' android { compileSdkVersion 29 defaultConfig { applicationId "com.frobisher.netexplorer" minSdkVersion 23 targetSdkVersion 29 versionCode 1 versionName "1.0" // def buildDate = Config.generateBuildDate() // buildConfigField 'String', 'BUILD_DATE', '"' + buildDate + '"' buildConfigField 'String', 'SENTRY_TOKEN', 'null' testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" vectorDrawables.useSupportLibrary = true def deepLinkSchemeValue = "net-explorer" manifestPlaceholders = [ "isRaptorEnabled": "false", "deepLinkScheme" : deepLinkSchemeValue ] resValue "bool", "IS_DEBUG", "false" buildConfigField "String", "AMO_COLLECTION", "\"16f6e5d9a40448b8955db57ced6d75\"" buildConfigField 'String', 'DIGITAL_ASSET_LINKS_TOKEN', 'null' buildConfigField "String", "DEEP_LINK_SCHEME", "\"$deepLinkSchemeValue\"" buildConfigField 'boolean', 'CRASH_REPORTING', 'true' buildConfigField 'String', 'ADJUST_TOKEN', 'null' buildConfigField 'boolean', 'TELEMETRY', 'false' } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } kotlinOptions { jvmTarget = "1.8" } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } android.applicationVariants.all { variant -> try { def token = new File("${rootDir}/.mls_token").text.trim() buildConfigField 'String', 'MLS_TOKEN', '"' + token + '"' println "(Added from .mls_token file)" } catch (FileNotFoundException ignored) { buildConfigField 'String', 'MLS_TOKEN', '""' println("X_X") } try { def parts = new File("${rootDir}/.leanplum_token").text.trim().split(":") def id = parts[0] def key = parts[1] buildConfigField 'String', 'LEANPLUM_ID', '"' + id + '"' buildConfigField 'String', 'LEANPLUM_TOKEN', '"' + key + '"' println "(Added from .leanplum_token file)" } catch (FileNotFoundException ignored) { buildConfigField 'String', 'LEANPLUM_ID', 'null' buildConfigField 'String', 'LEANPLUM_TOKEN', 'null' println("X_X") } } } task buildTranslationArray { def foundLocales = new StringBuilder() foundLocales.append("new String[]{") fileTree("src/main/res").visit { FileVisitDetails details -> if (details.file.path.endsWith("/strings.xml")) { def languageCode = details.file.parent.tokenize('/').last().replaceAll('values-', '').replaceAll('-r', '-') languageCode = (languageCode == "values") ? "en-US" : languageCode foundLocales.append("\"").append(languageCode).append("\"").append(",") } } foundLocales.append("}") def foundLocalesString = foundLocales.toString().replaceAll(',}', '}') android.defaultConfig.buildConfigField "String[]", "SUPPORTED_LOCALE_ARRAY", foundLocalesString } // Generate Kotlin code and markdown docs for the Fenix Glean metrics. ext.gleanGenerateMarkdownDocs = true ext.gleanDocsDirectory = "$rootDir/docs" apply plugin: "org.mozilla.telemetry.glean-gradle-plugin" dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" implementation 'androidx.appcompat:appcompat:1.1.0' implementation 'androidx.core:core-ktx:1.2.0' // implementation 'androidx.constraintlayout:constraintlayout:1.1.3' testImplementation 'junit:junit:4.12' androidTestImplementation 'androidx.test.ext:junit:1.1.1' androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0' def components_version = "43.0.20200520130058" implementation "org.mozilla.components:browser-toolbar:$components_version" implementation "org.mozilla.components:browser-engine-gecko-nightly:$components_version" implementation "org.mozilla.components:browser-menu:$components_version" implementation "org.mozilla.components:browser-awesomebar:$components_version" implementation "org.mozilla.components:browser-domains:$components_version" implementation "org.mozilla.components:browser-search:$components_version" implementation "org.mozilla.components:browser-tabstray:$components_version" implementation "org.mozilla.components:browser-menu:$components_version" implementation "org.mozilla.components:browser-session:$components_version" implementation "org.mozilla.components:browser-state:$components_version" implementation "org.mozilla.components:browser-storage-sync:$components_version" implementation "org.mozilla.components:browser-icons:$components_version" implementation "org.mozilla.components:browser-thumbnails:$components_version" implementation "org.mozilla.components:feature-toolbar:$components_version" implementation "org.mozilla.components:feature-addons:$components_version" implementation "org.mozilla.components:feature-app-links:$components_version" implementation "org.mozilla.components:feature-awesomebar:$components_version" implementation "org.mozilla.components:feature-contextmenu:$components_version" implementation "org.mozilla.components:feature-customtabs:$components_version" implementation "org.mozilla.components:feature-findinpage:$components_version" implementation "org.mozilla.components:feature-media:$components_version" implementation "org.mozilla.components:feature-sitepermissions:$components_version" implementation "org.mozilla.components:feature-intent:$components_version" implementation "org.mozilla.components:feature-search:$components_version" implementation "org.mozilla.components:feature-session:$components_version" implementation "org.mozilla.components:feature-tabs:$components_version" implementation "org.mozilla.components:feature-downloads:$components_version" implementation "org.mozilla.components:feature-prompts:$components_version" implementation "org.mozilla.components:feature-push:$components_version" implementation "org.mozilla.components:feature-pwa:$components_version" implementation "org.mozilla.components:feature-qr:$components_version" implementation "org.mozilla.components:feature-readerview:$components_version" implementation "org.mozilla.components:feature-syncedtabs:$components_version" implementation "org.mozilla.components:feature-webcompat:$components_version" implementation "org.mozilla.components:feature-webnotifications:$components_version" implementation "org.mozilla.components:feature-accounts:$components_version" implementation "org.mozilla.components:feature-accounts-push:$components_version" implementation "org.mozilla.components:feature-tab-collections:$components_version" implementation "org.mozilla.components:feature-top-sites:$components_version" implementation "org.mozilla.components:feature-share:$components_version" implementation "org.mozilla.components:concept-engine:$components_version" implementation "org.mozilla.components:concept-toolbar:$components_version" implementation "org.mozilla.components:concept-tabstray:$components_version" implementation "org.mozilla.components:concept-storage:$components_version" implementation "org.mozilla.components:concept-push:$components_version" implementation "org.mozilla.components:concept-sync:$components_version" implementation "org.mozilla.components:ui-icons:$components_version" implementation "org.mozilla.components:ui-colors:$components_version" implementation "org.mozilla.components:ui-autocomplete:$components_version" implementation "org.mozilla.components:ui-tabcounter:$components_version" implementation "org.mozilla.components:service-firefox-accounts:$components_version" implementation "org.mozilla.components:service-glean:$components_version" implementation "org.mozilla.components:service-experiments:$components_version" implementation "org.mozilla.components:service-sync-logins:$components_version" implementation "org.mozilla.components:service-location:$components_version" implementation "org.mozilla.components:support-utils:$components_version" implementation "org.mozilla.components:support-ktx:$components_version" implementation "org.mozilla.components:support-rustlog:$components_version" implementation "org.mozilla.components:support-rusthttp:$components_version" implementation "org.mozilla.components:support-webextensions:$components_version" implementation "org.mozilla.components:support-locale:$components_version" implementation "org.mozilla.components:support-migration:$components_version" implementation "org.mozilla.components:lib-crash:$components_version" implementation "org.mozilla.components:lib-push-firebase:$components_version" implementation "org.mozilla.components:lib-publicsuffixlist:$components_version" implementation "com.google.android.material:material:1.1.0" implementation "androidx.constraintlayout:constraintlayout:2.0.0-beta6" implementation "androidx.recyclerview:recyclerview:1.1.0" implementation "androidx.paging:paging-runtime-ktx:2.1.2" implementation "androidx.lifecycle:lifecycle-livedata-ktx:2.2.0" implementation "androidx.lifecycle:lifecycle-runtime-ktx:2.2.0" implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2.2.0" implementation 'androidx.work:work-runtime-ktx:2.3.4' implementation "androidx.preference:preference-ktx:1.1.1" implementation "com.google.android:flexbox:2.0.1" // Kotlin implementation "androidx.navigation:navigation-fragment-ktx:2.2.2" implementation "androidx.navigation:navigation-ui-ktx:2.2.2" implementation "com.tencent.bugly:crashreport:3.1.8" implementation 'com.tencent.bugly:nativecrashreport:3.7.1' implementation 'com.airbnb.android:lottie:3.4.0' implementation "com.google.android.gms:play-services-oss-licenses:17.0.0" implementation "com.google.android.gms:play-services-ads-identifier:17.0.0" implementation "io.sentry:sentry-android:1.7.10" implementation "com.leanplum:leanplum-core:5.2.3" implementation "com.leanplum:leanplum-fcm:5.2.3" implementation "androidx.biometric:biometric:1.0.1" // For the initial release of Glean 19, we require consumer applications to // depend on a separate library for unit tests. This will be removed in future releases. // testImplementation "org.mozilla.telemetry:glean-forUnitTests:${project.ext.glean_version}" implementation"com.adjust.sdk:adjust-android:4.18.3" } ``` 下载了Mozilla的fenix的工程,然后自己新建了一个项目,但是没有办法生成APK,build的时候出现NullPointerException during IR Conversion,求各位大佬帮忙看看什么问题,谢谢

程序员的兼职技能课

获取讲师答疑方式: 在付费视频第一节(触摸命令_ALL)片头有二维码及加群流程介绍 限时福利 原价99元,今日仅需39元!购课添加小助手(微信号:csdn590)按提示还可领取价值800元的编程大礼包! 讲师介绍: 苏奕嘉&nbsp;前阿里UC项目工程师 脚本开发平台官方认证满级(六级)开发者。 我将如何教会你通过【定制脚本】赚到你人生的第一桶金? 零基础程序定制脚本开发课程,是完全针对零脚本开发经验的小白而设计,课程内容共分为3大阶段: ①前期将带你掌握Q开发语言和界面交互开发能力; ②中期通过实战来制作有具体需求的定制脚本; ③后期将解锁脚本的更高阶玩法,打通任督二脉; ④应用定制脚本合法赚取额外收入的完整经验分享,带你通过程序定制脚本开发这项副业,赚取到你的第一桶金!

Windows版YOLOv4目标检测实战:训练自己的数据集

课程演示环境:Windows10; cuda 10.2; cudnn7.6.5; Python3.7; VisualStudio2019; OpenCV3.4 需要学习ubuntu系统上YOLOv4的同学请前往:《YOLOv4目标检测实战:训练自己的数据集》 课程链接:https://edu.csdn.net/course/detail/28745 YOLOv4来了!速度和精度双提升! 与 YOLOv3 相比,新版本的 AP (精度)和 FPS (每秒帧率)分别提高了 10% 和 12%。 YOLO系列是基于深度学习的端到端实时目标检测方法。本课程将手把手地教大家使用labelImg标注和使用YOLOv4训练自己的数据集。课程实战分为两个项目:单目标检测(足球目标检测)和多目标检测(足球和梅西同时检测)。 本课程的YOLOv4使用AlexyAB/darknet,在Windows系统上做项目演示。包括:安装软件环境、安装YOLOv4、标注自己的数据集、整理自己的数据集、修改配置文件、训练自己的数据集、测试训练出的网络模型、性能统计(mAP计算)和先验框聚类分析。还将介绍改善YOLOv4目标检测性能的技巧。 除本课程《Windows版YOLOv4目标检测实战:训练自己的数据集》外,本人将推出有关YOLOv4目标检测的系列课程。请持续关注该系列的其它视频课程,包括: 《Windows版YOLOv4目标检测实战:人脸口罩佩戴检测》 《Windows版YOLOv4目标检测实战:中国交通标志识别》 《Windows版YOLOv4目标检测:原理与源码解析》

lena全身原图(非256*256版本,而是全身原图)

lena全身原图(非256*256版本,而是全身原图) lena原图很有意思,我们通常所用的256*256图片是在lena原图上截取了头部部分的256*256正方形得到的. 原图是花花公子杂志上的一个

快速入门Android开发 视频 教程 android studio

这是一门快速入门Android开发课程,顾名思义是让大家能快速入门Android开发。 学完能让你学会如下知识点: Android的发展历程 搭建Java开发环境 搭建Android开发环境 Android Studio基础使用方法 Android Studio创建项目 项目运行到模拟器 项目运行到真实手机 Android中常用控件 排查开发中的错误 Android中请求网络 常用Android开发命令 快速入门Gradle构建系统 项目实战:看美图 常用Android Studio使用技巧 项目签名打包 如何上架市场

Java调用微信支付

Java 使用微信支付 一. 准备工作 1.

汽车租赁管理系统需求分析规格说明书

汽车租赁管理系统需求分析规格说明书,这只是一个模板,如果有不会的可以借鉴一下,还是蛮详细的。。。。

C/C++跨平台研发从基础到高阶实战系列套餐

一 专题从基础的C语言核心到c++ 和stl完成基础强化; 二 再到数据结构,设计模式完成专业计算机技能强化; 三 通过跨平台网络编程,linux编程,qt界面编程,mfc编程,windows编程,c++与lua联合编程来完成应用强化 四 最后通过基于ffmpeg的音视频播放器,直播推流,屏幕录像,

程序员的算法通关课:知己知彼(第一季)

【超实用课程内容】 程序员对于算法一直又爱又恨!特别是在求职面试时,算法类问题绝对是不可逃避的提问点!本门课程作为算法面试系列的第一季,会从“知己知彼”的角度,聊聊关于算法面试的那些事~ 【哪些人适合学习这门课程?】 求职中的开发者,对于面试算法阶段缺少经验 想了解实际工作中算法相关知识 在职程序员,算法基础薄弱,急需充电 【超人气讲师】 孙秀洋&nbsp;| 服务器端工程师 硕士毕业于哈工大计算机科学与技术专业,ACM亚洲区赛铜奖获得者,先后在腾讯和百度从事一线技术研发,对算法和后端技术有深刻见解。 【课程如何观看?】 PC端:https://edu.csdn.net/course/detail/27272 移动端:CSDN 学院APP(注意不是CSDN APP哦) 本课程为录播课,课程无限观看时长,但是大家可以抓紧时间学习后一起讨论哦~

机器学习初学者必会的案例精讲

通过六个实际的编码项目,带领同学入门人工智能。这些项目涉及机器学习(回归,分类,聚类),深度学习(神经网络),底层数学算法,Weka数据挖掘,利用Git开源项目实战等。

Python入门视频精讲

Python入门视频培训课程以通俗易懂的方式讲解Python核心技术,Python基础,Python入门。适合初学者的教程,让你少走弯路! 课程内容包括:1.Python简介和安装 、2.第一个Python程序、PyCharm的使用 、3.Python基础、4.函数、5.高级特性、6.面向对象、7.模块、8.异常处理和IO操作、9.访问数据库MySQL。教学全程采用笔记+代码案例的形式讲解,通俗易懂!!!

我以为我对Mysql事务很熟,直到我遇到了阿里面试官

太惨了,面试又被吊打

深度学习原理+项目实战+算法详解+主流框架(套餐)

深度学习系列课程从深度学习基础知识点开始讲解一步步进入神经网络的世界再到卷积和递归神经网络,详解各大经典网络架构。实战部分选择当下最火爆深度学习框架PyTorch与Tensorflow/Keras,全程实战演示框架核心使用与建模方法。项目实战部分选择计算机视觉与自然语言处理领域经典项目,从零开始详解算法原理,debug模式逐行代码解读。适合准备就业和转行的同学们加入学习! 建议按照下列课程顺序来进行学习 (1)掌握深度学习必备经典网络架构 (2)深度框架实战方法 (3)计算机视觉与自然语言处理项目实战。(按照课程排列顺序即可)

Java62数据提取代码

利用苹果手机微信下面的wx.data文件提取出62数据,通过62可以实现不同设备直接登陆,可以通过文件流的方式用脚本上传到服务器进行解析

Python代码实现飞机大战

文章目录经典飞机大战一.游戏设定二.我方飞机三.敌方飞机四.发射子弹五.发放补给包六.主模块 经典飞机大战 源代码以及素材资料(图片,音频)可从下面的github中下载: 飞机大战源代码以及素材资料github项目地址链接 ————————————————————————————————————————————————————————— 不知道大家有没有打过飞机,喜不喜欢打飞机。当我第一次接触这个东西的时候,我的内心是被震撼到的。第一次接触打飞机的时候作者本人是身心愉悦的,因为周边的朋友都在打飞机, 每

2018年全国大学生计算机技能应用大赛决赛 大题

2018年全国大学生计算机技能应用大赛决赛大题,程序填空和程序设计(侵删)

Lena图像处理测试专业用图,高清完整全身原图

Lena图像处理测试专业用图,高清完整全身原图,该图片很好的包含了平坦区域、阴影和纹理等细节,这些都有益于测试各种不同的图像处理算法。它是一幅很好的测试照片!其次,由于这是一个非常有魅力女人的照片。

MySQL数据库面试题(2020最新版)

文章目录数据库基础知识为什么要使用数据库什么是SQL?什么是MySQL?数据库三大范式是什么mysql有关权限的表都有哪几个MySQL的binlog有有几种录入格式?分别有什么区别?数据类型mysql有哪些数据类型引擎MySQL存储引擎MyISAM与InnoDB区别MyISAM索引与InnoDB索引的区别?InnoDB引擎的4大特性存储引擎选择索引什么是索引?索引有哪些优缺点?索引使用场景(重点)...

verilog实现地铁系统售票

使用 verilog 实现地铁售票

Python+OpenCV计算机视觉

Python+OpenCV计算机视觉系统全面的介绍。

Python可以这样学(第四季:数据分析与科学计算可视化)

董付国老师系列教材《Python程序设计(第2版)》(ISBN:9787302436515)、《Python可以这样学》(ISBN:9787302456469)配套视频,在教材基础上又增加了大量内容,通过实例讲解numpy、scipy、pandas、statistics、matplotlib等标准库和扩展库用法。

150讲轻松搞定Python网络爬虫

【为什么学爬虫?】 &nbsp; &nbsp; &nbsp; &nbsp;1、爬虫入手容易,但是深入较难,如何写出高效率的爬虫,如何写出灵活性高可扩展的爬虫都是一项技术活。另外在爬虫过程中,经常容易遇到被反爬虫,比如字体反爬、IP识别、验证码等,如何层层攻克难点拿到想要的数据,这门课程,你都能学到! &nbsp; &nbsp; &nbsp; &nbsp;2、如果是作为一个其他行业的开发者,比如app开发,web开发,学习爬虫能让你加强对技术的认知,能够开发出更加安全的软件和网站 【课程设计】 一个完整的爬虫程序,无论大小,总体来说可以分成三个步骤,分别是: 网络请求:模拟浏览器的行为从网上抓取数据。 数据解析:将请求下来的数据进行过滤,提取我们想要的数据。 数据存储:将提取到的数据存储到硬盘或者内存中。比如用mysql数据库或者redis等。 那么本课程也是按照这几个步骤循序渐进的进行讲解,带领学生完整的掌握每个步骤的技术。另外,因为爬虫的多样性,在爬取的过程中可能会发生被反爬、效率低下等。因此我们又增加了两个章节用来提高爬虫程序的灵活性,分别是: 爬虫进阶:包括IP代理,多线程爬虫,图形验证码识别、JS加密解密、动态网页爬虫、字体反爬识别等。 Scrapy和分布式爬虫:Scrapy框架、Scrapy-redis组件、分布式爬虫等。 通过爬虫进阶的知识点我们能应付大量的反爬网站,而Scrapy框架作为一个专业的爬虫框架,使用他可以快速提高我们编写爬虫程序的效率和速度。另外如果一台机器不能满足你的需求,我们可以用分布式爬虫让多台机器帮助你快速爬取数据。 &nbsp; 从基础爬虫到商业化应用爬虫,本套课程满足您的所有需求! 【课程服务】 专属付费社群+每周三讨论会+1v1答疑

获取Linux下Ftp目录树并逐步绑定到treeview

在linux下抓取目录树,双击后获取该节点子节点(逐步生成)。另外有两个类,一个是windows下的(一次性获取目录树),一个是linux下的(足部获取目录树)

YOLOv3目标检测实战系列课程

《YOLOv3目标检测实战系列课程》旨在帮助大家掌握YOLOv3目标检测的训练、原理、源码与网络模型改进方法。 本课程的YOLOv3使用原作darknet(c语言编写),在Ubuntu系统上做项目演示。 本系列课程包括三门课: (1)《YOLOv3目标检测实战:训练自己的数据集》 包括:安装darknet、给自己的数据集打标签、整理自己的数据集、修改配置文件、训练自己的数据集、测试训练出的网络模型、性能统计(mAP计算和画出PR曲线)和先验框聚类。 (2)《YOLOv3目标检测:原理与源码解析》讲解YOLOv1、YOLOv2、YOLOv3的原理、程序流程并解析各层的源码。 (3)《YOLOv3目标检测:网络模型改进方法》讲解YOLOv3的改进方法,包括改进1:不显示指定类别目标的方法 (增加功能) ;改进2:合并BN层到卷积层 (加快推理速度) ; 改进3:使用GIoU指标和损失函数 (提高检测精度) ;改进4:tiny YOLOv3 (简化网络模型)并介绍 AlexeyAB/darknet项目。

手把手实现Java图书管理系统(附源码)

【超实用课程内容】 本课程演示的是一套基于Java的SSM框架实现的图书管理系统,主要针对计算机相关专业的正在做毕设的学生与需要项目实战练习的java人群。详细介绍了图书管理系统的实现,包括:环境搭建、系统业务、技术实现、项目运行、功能演示、系统扩展等,以通俗易懂的方式,手把手的带你从零开始运行本套图书管理系统,该项目附带全部源码可作为毕设使用。 【课程如何观看?】 PC端:https://edu.csdn.net/course/detail/27513 移动端:CSDN 学院APP(注意不是CSDN APP哦) 本课程为录播课,课程2年有效观看时长,大家可以抓紧时间学习后一起讨论哦~ 【学员专享增值服务】 源码开放 课件、课程案例代码完全开放给你,你可以根据所学知识,自行修改、优化

微信小程序开发实战之番茄时钟开发

微信小程序番茄时钟视频教程,本课程将带着各位学员开发一个小程序初级实战类项目,针对只看过官方文档而又无从下手的开发者来说,可以作为一个较好的练手项目,对于有小程序开发经验的开发者而言,可以更好加深对小程序各类组件和API 的理解,为更深层次高难度的项目做铺垫。

Java 最常见的 200+ 面试题:面试必备

这份面试清单是从我 2015 年做了 TeamLeader 之后开始收集的,一方面是给公司招聘用,另一方面是想用它来挖掘在 Java 技术栈中,还有那些知识点是我不知道的,我想找到这些技术盲点,然后修复它,以此来提高自己的技术水平。虽然我是从 2009 年就开始参加编程工作了,但我依旧觉得自己现在要学的东西很多,并且学习这些知识,让我很有成就感和满足感,那所以何乐而不为呢? 说回面试的事,这份面试...

Java基础知识面试题(2020最新版)

文章目录Java概述何为编程什么是Javajdk1.5之后的三大版本JVM、JRE和JDK的关系什么是跨平台性?原理是什么Java语言有哪些特点什么是字节码?采用字节码的最大好处是什么什么是Java程序的主类?应用程序和小程序的主类有何不同?Java应用程序与小程序之间有那些差别?Java和C++的区别Oracle JDK 和 OpenJDK 的对比基础语法数据类型Java有哪些数据类型switc...

三个项目玩转深度学习(附1G源码)

从事大数据与人工智能开发与实践约十年,钱老师亲自见证了大数据行业的发展与人工智能的从冷到热。事实证明,计算机技术的发展,算力突破,海量数据,机器人技术等,开启了第四次工业革命的序章。深度学习图像分类一直是人工智能的经典任务,是智慧零售、安防、无人驾驶等机器视觉应用领域的核心技术之一,掌握图像分类技术是机器视觉学习的重中之重。针对现有线上学习的特点与实际需求,我们开发了人工智能案例实战系列课程。打造:以项目案例实践为驱动的课程学习方式,覆盖了智能零售,智慧交通等常见领域,通过基础学习、项目案例实践、社群答疑,三维立体的方式,打造最好的学习效果。

微信小程序 实例汇总 完整项目源代码

微信小程序 实例汇总 完整项目源代码

基于西门子S7—1200的单部六层电梯设计程序,1部6层电梯

基于西门子S7—1200的单部六层电梯设计程序,1部6层电梯。 本系统控制六层电梯, 采用集选控制方式。 为了完成设定的控制任务, 主要根据电梯输入/输出点数确定PLC 的机型。 根据电梯控制的要求,

Rabit兔子点云模型.zip

加载点云模型导入PCL点云库,有三种格式的点云兔子,压缩包总共有ply/pcd/xyz三种格式,可以结合我的博客内容练习怎么加载显示

地铁自动售票机(基于FPGA)设计

地铁自动售票机(基于FPGA)设计,在中国电子网找的,感觉不错,分享给大家,来源:中国电子网www.21ic.com

残差网络resnet50的深度学习模型权重文件

残差网络resnet50的深度学习模型权重文件,可作为预训练模型,提升学习效率

C++跨平台实战

C++实战课程,包含windows编程,linux编程,qt编程,基于ffmpeg的音视频编解码直播推流课程,基于opencv的视频处理课程和lua与c++联合编程课程。 如果已经购买了套餐中的某门课程,购买后加入课程群中,联系我退差价。

相关热词 c#分级显示数据 c# 不区分大小写替换 c#中调用就java c#正则表达式 验证小数 c# vscode 配置 c#三维数组能存多少数据 c# 新建excel c#多个文本框 c#怎么创建tcp通讯 c# mvc 电子病例
立即提问