草庐IT

EXPECT_THAT

全部标签

android - GoogleAuthUtil.getToken() 抛出 : RuntimeException: Can't create handler inside thread that has not called Looper. prepare()

这个GoogleAuthUtilgetToken()调用:Stringtoken=GoogleAuthUtil.getToken(appContext,accountName,scope);偶尔会因以下异常而失败:java.lang.RuntimeException:Can'tcreatehandlerinsidethreadthathasnotcalledLooper.prepare():ak:GooglePlayServicesNotAvailableatcom.google.android.gms.auth.GoogleAuthUtil.a(UnknownSource)atcom

java - 检索项目 :No resource found that matches the given name 'Theme.AppCompat.Light' . 的父项时出错 MY R.java 丢失

谷歌现在有AndroidLollipop,我打开了我的sdk管理器并决定更新几个包......这让我从2天开始感到烦恼。Can'tfindtheme我也试过这个:Failedtorenamedirectory不成功。我试图从谷歌下载一个新的sdk并从头开始安装,但没有成功。这是错误。D:\~\res\values\styles.xml:7:error:Errorretrievingparentforitem:Noresourcefoundthatmatchesthegivenname'Theme.AppCompat.Light'.D:\~\res\values-v11\styles.x

android - "No resource found that matches the given name..:"- Android Studio 2.1.2 (React Native App)

在为ios开发reactnative应用程序后,我还想在android上测试它。按照文档中的步骤并设置AndroidStudio进行测试后,遗憾的是我无法运行该应用程序,因为出现了以下错误,我似乎没有找到合适的解决方案。尽管之前已经问过类似的问题。错误:Error:(6,-1)AndroidResourcePackaging:[ios_ver]/path/ios_ver/android/app/src/main/AndroidManifest.xml:6:error:Error:Noresourcefoundthatmatchesthegivenname(at'label'withva

android - Apktool 检索项目 : No resource found that matches the given name '@android:style/Animation.OptionsPanel' 的父项时出错

我正在尝试使用apktool(apktool-2.1.1)重建apk。遇到错误i)找不到与给定名称“@android:style/Animation.OptionsPanel”匹配的资源ii)找不到与给定名称“@android:style/Animation.LockScreen”匹配的资源错误信息:I:UsingApktool2.1.1I:Copying/home/workspace/debug/app-demo-releaseclasses.dexfile...I:Buildingresources...W:/home/workspace/debug/app-demo-releas

java - "Header" View 和按钮 : how do I attach listeners to Buttons in a "header" that does not have its own Activity?

我已经谈到了这个问题here,Christopher对此给出了答案,但我不太明白,所以我认为是时候把它变成一个真正的问题,而不仅仅是一个“跟进”=)就目前而言,我正在编写的应用程序有4个不同的屏幕:屏幕1-节点列表(主屏幕)屏幕2-选项菜单,带按钮的tableLayout屏幕3-导航屏幕4-版本等的文本详细信息可以使用放置在顶部的“标题”View来导航这些屏幕。然后标题有4个不同的按钮:+--------------------+|menuwithbuttons|+--------------------+|||||||CONTENT|||||||+------------------

android - 错误 :No resource found that matches the given name (at 'minHeight' with value '?attr/actionBarSize' )

我正在尝试构建androidstudio项目,但出现以下错误:Error:(11,28)Noresourcefoundthatmatchesthegivenname(at'minHeight'withvalue'?attr/actionBarSize').Error:(12,29)Noresourcefoundthatmatchesthegivenname(at'background'withvalue'?attr/colorPrimary').下面是我的XML文件:-我的gradle.properties文件包含这个:-ANDROID_BUILD_TARGET_SDK_VERSION

android - admob 说 "Server replied that no ads are available"

我已经在我的应用程序中添加了admob测试,因为pdf说明是指导的,一切都很好(在模拟器和我的设备中)。为了停止测试模式并在市场上上传我的新apk,我必须删除来self的.java文件的测试代码,对吗?我已经尝试过了,并且我在我的设备中上传了我的.apk文件(从大容量存储)但是我看不到任何admob...我错了什么?测试代码:AdManager.setTestDevices(newString[]{AdManager.TEST_EMULATOR,"xxxxxxxxxxxxxxxxxxxxxxxxx",});AdViewadView=(AdView)findViewById(R.id.a

安卓工作室 : “libpng warning: iCCP: Not recognizing known sRGB profile that has been edited”

我从:升级了gradledependencies{classpath'com.android.tools.build:gradle:1.3.1'}到:dependencies{classpath'com.android.tools.build:gradle:1.4.0-beta3'}但我收到错误:AAPTerr(Facadefor1057495093):E:\android_studio_workspace\P2JN\p2jn\src\main\res\drawable-mdpi\reload_data.png:libpngwarning:iCCP:Notrecognizingknow

c# - : Error CS1729: 'SQLiteConnection' does not contain a constructor that takes 1 arguments (CS1729)

有没有人知道如何解决这个错误消息错误CS1729:“SQLiteConnection”不包含采用1个参数的构造函数(CS1729)这是发生的文件usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingAndroid.App;usingAndroid.Content;usingAndroid.OS;usingAndroid.Runtime;usingAndroid.Views;usingAndroid.Widget;usingSQLite;usingAndroid.Util;us

android - Android 上的 Facebook 分享视频异常 "ShareVideo must reference a video that is on the device"

我正在通过Gradle使用FacebookAndroidsdk4.6.0。根据SharingonFacebookguidenline配置facebook后,我正在尝试从移动目录上传视频,但我在调用sharedialog.show后遇到异常“ShareVideo必须引用设备上的视频”。异常是通过`onError(FacebookException异常)的回调向我报告的。/**firstcheckingiffileexistthanexecutecode,fileexitsandcodeexecutebutafterexecutingcallbackwithexception"ShareV