草庐IT

name_changes

全部标签

android - 错误 : No resource found that matches the given name

在此文件中是我的布局,此代码中显示以下错误error:Error:Noresourcefoundthatmatchesthegivenname(at'id'withvalue'@id/question_text_view').error:Error:Noresourcefoundthatmatchesthegivenname(at'id'withvalue'@id/next_button').这是布局文件这是我的strings.xmlGeoQuizTrueFalseCorrectNextIncorrectSettingsFrankReedHortonFoundedAPOondecemb

android - 在安卓工作室 : How to change packages file path

所以我知道如何重命名一个包,但是这只是改变了结尾包com.example.android.navigationdrawerexample;在这个例子中,我想做的是去掉.example在不破坏任何东西的情况下,你会怎么做? 最佳答案 1-转到androidmanifest.xml2-搜索:3-对“package”的内容使用Refactor来更改您的包名称4-重新加载项目希望对大家有所帮助! 关于android-在安卓工作室:Howtochangepackagesfilepath,我们在St

java - MissingResourceException : Can't find bundle for base name sun. util.logging.resources.logging,语言环境 en_US

我得到了,Causedbyjava.lang.InternalError:java.util.MissingResourceException:Can'tfindbundleforbasenamesun.util.logging.resources.logging,localeen_US在我的来自firebase崩溃报告的应用程序中。其他细节Manufacturer:HTCModel:HTC10AndroidAPI:24这是堆栈跟踪java.util.logging.Logger$1.run(Logger.java:1385)java.util.logging.Logger$1.run

android - res-auto 和 com.package.name 之间命名 xml 的区别 - android

我见过自定义xml:和这两个不同的名字有什么区别?后者是否仅指向默认位置,如您的包裹?前者是否指向引用库?谢谢。 最佳答案 如果我们在项目中添加一个新的自定义View及其属性,您可以在布局的开头添加它:xmlns:custom="http://schemas.android.com/apk/res/your_main_app_package如果新的自定义View在链接到您的项目的库项目中,则添加:xmlns:custom="http://schemas.android.com/apk/res-auto注意:此问题已在ADT修订版17

android - 折叠工具栏布局 : Change menu item icon color when it is expanded

我在我的项目中使用CollapsingToolbarLayout。当CollapsingToolbarLayout展开时,默认情况下它是白色的(即在style.xmlandroid:textColorSecondary中定义)。我的问题:Iwanttochangemymenuitemiconcolor.这是我的代码:xml文件:主要Activity代码:AppBarLayoutappBarLayout=findViewById(R.id.appbar_layout);appBarLayout.addOnOffsetChangedListener(newAppBarLayout.OnOf

android - ViewPager + FragmentStatePagerAdapter : ViewPager stops working when screen orientation changes

我正在使用ActionBarSherlock(它基本上是Android支持包的扩展)。我想做的是:我有一个FragmentActivity,它只承载一个ViewPager。这个ViewPager有一个FragmentStatePagerAdapter(因为以后会有很多项)。但目前它只加载了2个项目进行测试。当我处于纵向模式时,一切正常。但是当我改变横向方向时,它会切换回适配器中的第一项(这很好,因为所有内容都已重新加载等),但我无法切换到下一项。什么也没有发生。通过调试,我可以看到Loader返回了这两个项目。getItem(...)也用position0和1调用。所以基本上一切看起来

Android 崩溃,java.lang.IllegalArgumentException : Window type can not be changed after the window is added

我向市场上传了一个Android应用程序,但出于某种原因,用户遇到了这个错误。java.lang.IllegalArgumentException:Windowtypecannotbechangedafterthewindowisadded.atandroid.os.Parcel.readException(Parcel.java:1331)atandroid.os.Parcel.readException(Parcel.java:1281)atandroid.view.IWindowSession$Stub$Proxy.relayout(IWindowSession.java:664

idea 工作中常用的 git 技巧: ChangeList,Stash Changes

ChangeList在使用idea提交代码的时候,经常会遇到配置文件和工具类或者测试类不想commit的情况。但每次commit都会因为各种文件混在一起,需要仔细看。这个时候,需要用到ChangeList。在commit的弹出的文件界面里,选中你不想commit的文件,右键,movetoanotherchangelist,给这个changelist取个名字,比如我取nocommit,这里面就放我不想commit的文件。StashChanges和UnstashChanges切换分支的时候,经常会用到这个功能。有时候代码还没写完,还不想commit。这时候又碰到需要切换分支去解决其他分支的问题。但

android - 如何用值 "No resource found that matches the given name (at ' 修复 '@integer/google_play_services_version' 值')”

当我在VisualStudio2015中构建我的Android应用程序项目时出现以下错误。Noresourcefoundthatmatchesthegivenname(at'value'withvalue'@integer/google_play_services_version')这些行位于:obj\Debug\android\manifest\AndroidManifest.xml在AndroidManifest文件中有3个完整的内容。我已经从SDKManager下载了googleplay服务。我应该在我的解决方案中引用任何内容吗?我已经对Xamarin.GooglePlaySer

安卓错误 : Error: No resource found that matches the given name

我是android的新手,所以这个问题可能很幼稚。我正在尝试构建一个包含两个并排列表的布局。当我有一个列表时它工作正常,但是当我添加第二个列表时,我收到此错误。我的View扩展了Activity而不是ListActivity。但我就是想不通为什么我的构建会因为这个错误而失败:\main.xml:13:error:Error:Noresourcefoundthatmatchesthegivenname(at'id'withvalue'@android:id/selected_list').\Android\android-sdk\tools\ant\build.xml:598:Thefo