草庐IT

src-resolve

全部标签

android - 无法解析 ':feature@debugFeature/compileClasspath' : Could not resolve androidx. 注释 :annotation:1. 0.0-rc01 的依赖关系

将AndroidStudio更新到3.3Canary10(来自之前的Canary)后,我开始遇到Gradle同步问题:ERROR:Unabletoresolvedependencyfor':feature@debugFeature/compileClasspath':Couldnotresolveandroidx.annotation:annotation:1.0.0-rc01.ShowDetailsAffectedModules:featureERROR:Unabletoresolvedependencyfor':feature@debugFeature/compileClasspa

java - "IntentReceiver cannot be resolved to a type"。为什么?

我正在构建一个需要IntentReceiver的小应用。其实我是Android开发新手,iOS开发后正在做switch。我有以下代码:packagecom.TheIntent;importandroid.content.*;//IaddedthisAFTERIgottheerrormessagepublicclassReceiveSMSextendsIntentReceiver{}但是给我在标题中输入的错误。我正在按照我正在阅读的有关Android开发的书中所写的代码进行操作,在谷歌搜索了一段时间后,我发现我必须包含android.content.IntentReceiver。但如您所

android - 在 android 开发 "R cannot be resolved to a variable"和布局中也出现错误

我刚开始android编程,很多天以来我一直陷入这个问题,每次我开始一个新项目时,每次遇到这5个错误,我都不知道如何处理它们,我尝试设置整个SDK和eclipse设置,但我仍然遇到这些错误,有人知道如何摆脱这些错误吗???R无法解析为变量检索项目的父项时出错:找不到与给定名称匹配的资源'android:Theme.Holo.Light.DarkActionBar',styles.xml/example/res/values-v14第3行AndroidAAPT问题检索项目的父项时出错:找不到与给定名称'android:Theme.Light'匹配的资源。styles.xml/exampl

java - 编译器错误 : "Cursor cannot be resolved to a type"

我在搞记事本练习1。当我创建fillData方法时,出现“游标无法解析为类型”的错误这是我的代码:privatevoidfillData(){//getnotesfromDBandcreateitemlistCursorc=mDbHelper.fetchAllNotes();startManagingCursor(c);String[]from=newString[]{NotesDbAdapter.KEY_TITLE};int[]to=newint[]{R.id.text1};SimpleCursorAdapternotes=newSimpleCursorAdapter(this,R.

android - 房间持久性库 : Cannot resolve symbol Room

我使用具有以下gradle设置的AndroidStudio3.0Beta2我可以搜索RxRoom但没有创建Room类。按照说明AddComponents后,我不能在我的Fragment中使用Room类。这个类在单独的模块中,应用程序模块不包含任何房间库依赖项。错误在IDE中显示为“无法解析符号房间”。构建.gradleapplyplugin:'com.android.library'android{compileSdkVersion26buildToolsVersion"26.0.1"defaultConfig{minSdkVersion15targetSdkVersion26vers

android - 获取错误 "cannot resolve findViewById(int)'

我有一个主要Activity,当我按下一个按钮时,我被导航到一个滑动选项卡View。现在我想在这些选项卡中有一个ClickableButton并在按下按钮时呈现toast。这是我使用的代码:importandroid.os.Bundle;importandroid.support.v4.app.Fragment;importandroid.view.LayoutInflater;importandroid.view.View;importandroid.view.ViewGroup;importandroid.widget.Button;publicclasslaundryextend

android - 以编程方式获取 ImageView src

如何以编程方式获取ImageViewsrc并将其设置在另一个ImageViewDrawabledrawable=imageViewA....?imageViewB.setImageDrawable(drawable); 最佳答案 你可以这样做:Drawabledrawable=imageViewA.getDrawable();if(drawable!=null){imageViewB.setImageDrawable(drawable);} 关于android-以编程方式获取ImageV

java - "Cannot resolve symbol ` Facebook Graph API 请求 `"错误

我将最新的facebookSDK4.0.1包含到AndroidStudio项目中。我想执行GraphAPIreference中列出的基本图形API调用/*maketheAPIcall*/newRequest(session,"/me",null,HttpMethod.GET,newRequest.Callback(){publicvoidonCompleted(Responseresponse){/*handletheresult*/}}).executeAsync();但我无法导入Request类,出现错误CannotresolvesymbolRequest``。如何解决这个问题?我

android - 启用 androidX 导致 'Cannot change strategy of configuration ' :app:compile' after it has been resolved' error

我目前正在尝试将OpenId/Android-Apputh迁移到androidX并在执行所有更改后面临一个奇怪的问题gradle开始抛出以下错误:>Cannotchangestrategyofconfiguration':app:compile'afterithasbeenresolved.我添加之后android.enableJetifier=trueandroid.useAndroidX=true到'gradle.properties'提示我尝试记录所有可能的(使用println(cofigBlockName))配置block,发现在构建过程中未调用sourceSetsconfig

java - "Failed to resolve: com.google.firebase:firebase-core:9.0.0"

我想在我的android应用程序中使用firebase进行身份验证我创建了应用程序,然后下载了JSON文件并将其粘贴到应用程序文件夹中我将其添加到我的build.gradle>项目中//Top-levelbuildfilewhereyoucanaddconfigurationoptionscommontoallsub-projects/modules.buildscript{repositories{jcenter()}dependencies{classpath'com.android.tools.build:gradle:2.2.1'classpath'com.google.gms