草庐IT

event_name

全部标签

android - [12728] :WARNING:android/base/files/IniFile. cpp :158:Failed to process . ini文件C :\Users\User_Name\. android\emu-update-last-check.ini 用于读取

在AndroidStudio上,我不断收到此警告:[12728]:WARNING:./android/base/files/IniFile.cpp:158:Failedtoprocess.inifileC:\Users\user_name.android\emu-update-last-check.iniforreading.我不知道这是什么意思。 最佳答案 在我的机器上,出于某种原因,我丢失了emu-update-last-check.ini文件。我在消息中列出的文件夹中创建了一个空文件,将其命名为emu-update-last-

android - 渲染期间引发异常 : Could not find layout resource matching value 0x7F04001B (resolved name: content_main) in current configuration

当我使用新Activity创建新项目时出现此异常。Exceptionraisedduringrendering:Couldnotfindlayoutresourcematchingvalue0x7F04001B(resolvedname:content_main)incurrentconfiguration.当我进入content_main时,我确实看到了正确的图像并且没有渲染问题。 最佳答案 自更新AndroidStudio以来,我一直遇到同样的问题。它似乎只影响其中包含标签的布局。如果您转到“文件>使缓存无效/重新启动...”,

android - 修复 styles.xml 中的错误以生成 R.java : No resource found name 'Theme.AppCompat.Light'

我是Android新手,正在尝试运行我的第一个程序。但是,根据我在Internet上的搜索,我认为我无法导入mypackage.R,因为r.java由于我的样式错误而未生成。xml文件。我四处搜索,试图找出解决这些问题的方法,但找不到有效的修复方法。styles.xml中的错误是error:Errorretrievingparentforitem:Noresourcefoundthatmatchesthegivenname'Theme.AppCompat.Light'有人知道如何解决这个问题吗?![style.txt中的错误][1]这是我使用的代码:packagecom.example

安卓/gradle : include version name from flavor in apk file name

我发现了类似的问题,但没有一个对我想做的很有效。我正在使用AndroidStudio和gradle进行开发,我的构建文件中有几种风格,每种风格都有一个版本名称。有没有办法在APK文件中包含flavor的版本名称? 最佳答案 编辑:对于现代版本的Gradle工具,使用@ptx的变体(使用output.outputFile代替variant.outputFile:android{applicationVariants.all{variant->variant.outputs.each{output->output.outputFile=

android - 错误 : jest-haste-map: Haste module naming collision:

我已经创建了一个自定义的npm模块(将使用xxx而不是它的名称)并使用npminstall手动链接它。我非常努力地搜索:[Workarounds]Packagerunabletoresolvemodulefrom/Users/node_modules/Error:jest-haste-map:@providesModulenamingcollisionwhenusingalocaldependency在提出问题之前。如果有人告诉我我的代码或我的方法有什么问题或我的代码中有任何错误,我将不胜感激。当我运行react-nativerun-android时,metrobundler引发了以下

Android Studio - Robolectric : android. content.res.Resources$NotFoundException : no such label com. my.app:string/app_name

这个问题我似乎无法摆脱,我已经阅读了大约3到4打文章和线程试图解决它。我已经概述了下面的所有内容。基本上问题是,问题是我在Robolectric上有缺陷吗?或者我遗漏了一些小步骤,或者我有一个奇怪的插件组合。对此的任何指导将不胜感激。Windows7的版本:Gradle2.7AndroidStudio1.3.2Robolectric3.0Roboguice3.+项目依赖:dependencies{classpath'com.android.tools.build:gradle:1.3.0'classpath"com.newrelic.agent.android:agent-gradle

android - 谷歌播放说 : "You need to use a different package name" - why?

我已经在GooglePlay上发布了一个名为com.mycompany.mygame的应用。然后我决定发布它的无广告版本。我没有在eclipse中更改包名称,因为我注意到在“导出”过程中您有机会将最终的apk设置为您喜欢的任何内容。所以我将其设置为com.mycompany.mygameaf-请注意末尾附加的“af”。但是当试图将其上传到市场时,谷歌说:您需要使用不同的包名称,因为“com.mycompany.mygame”已被您的其他应用程序之一使用所以现在我很困惑。投诉是因为我不允许拥有一个apk,这个apk是以前应用程序的名称和扩展名吗?或者最终的apk是否知道原始名称是什么?解

android - 错误 : Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCompat.ActionButton'

我正在关注文档here将AndroidSupportV7Libary安装到我的项目中。我注意到两件事:1)当我浏览我的SDK安装目录和SupportLibrary文件夹时,没有名为“appcompat”的文件夹2)当我安装整个V7文件夹时,我得到这个错误:error:Errorretrievingparentforitem:Noresourcefoundthatmatchesthegivenname'Widget.AppCompat.ActionButton'我该如何解决这个问题?(注意:这是在mediarouter文件夹中)这是我在浏览我的SDK安装目录时看到的:http://tin

c# - Xamarin.Android : How to capture Button events defined in the OnClick XML attribute?

我在RelativeLayout中有这个Button,它作为自定义ListView行布局的一部分包含在内。当用户点击Button时,我希望Button调用这个函数:publicvoidmyClickHandler(Viewv){Console.WriteLine((vasButton).Text);}但是,我收到了这个错误java.lang.IllegalStateException:CouldnotfindamethodmyClickHandler(View)intheactivityclassTest_Project.MyActivityforonClickhandleronvie

android - Google Drive API - 名称不能为空 : null (But I had passed valid account name to GoogleAccountCredential)

最近,我有访问GoogleDrive的Android代码。我使用的是GoogleAPIsClientLibraryforJava而不是GooglePlayservicesclientlibraryprivatestaticGoogleCloudFilesearchFromGoogleDrive(Drivedrive,StringqString,HandleUserRecoverableAuthIOExceptionableh,PublishProgressablep){try{Files.Listrequest=drive.files().list().setQ(qString);do