草庐IT

android - Resources$NotFoundException : If the resource you are trying to use is a vector resource, 您可能以不受支持的方式引用它

这个问题在这里已经有了答案:Why?attr/colorAccentdosenotworkbelowlollipopversion?(2个答案)关闭5年前。我收到以下错误消息android.content.res.Resources$NotFoundException:Iftheresourceyouaretryingtouseisavectorresource,youmaybereferencingitinanunsupportedway.SeeAppCompatDelegate.setCompatVectorFromResourcesEnabled()formoreinfo.当我尝

java.lang.IllegalArgumentException : You need to use a Theme. AppCompat 主题(或后代)与设计库

我正在尝试借助本教程从MaterialDesign实现“带图像的灵活空间”:Toolbaranimationwithandroiddesignsupportlibrary但我在布局预览中收到此渲染问题消息:Thefollowingclassescouldnotbeinstantiated:- android.support.design.widget.CoordinatorLayout(OpenClass,ShowException,ClearCache)- android.support.design.widget.AppBarLayout(OpenClass,ShowExcepti

android - 如何通过此 Activity 修复此错误 : You need to use a Theme. AppCompat 主题(或后代)

我搜索了所有Internet网站以修复此错误,但我做不到。我只想创建带有两个按钮Yes和No的AlertDialog。这是我的代码:importandroid.content.DialogInterface;importandroid.support.v7.app.AlertDialog;importandroid.support.v7.app.AppCompatActivity;importandroid.os.Bundle;importandroid.view.View;importandroid.widget.Button;publicclassDialogActivityext

android - AdMob 错误 "you must have adactivity declared in androidmanifest.xml with configchanges"

我正在尝试在我的Android应用程序中安装AdMob。当我启动模拟器时,它说:“您必须在androidmanifest.xml中使用configchanges声明adactivity”有很多关于这个的话题,但没有人解决这个问题。请帮帮我!问候,贾斯珀.... 最佳答案 AndroidManifest定义中的适当AdmobActivity如下所示:您可能缺少android:configChanges部分。请注意,所有configChanges参数都是必需的。由于并非所有这些都存在/在旧版SDKS中被允许,因此您需要使用更新的Andr

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 - Flutter 运行错误 : You have not accepted the license agreements

我正在使用Google开发android和ios应用程序flutter.当我将shared_preferences之类的新依赖项添加到pubspec.yaml然后在终端中执行flutterrun时,出现此错误:Whatwentwrong:Aproblemoccurredconfiguringproject':shared_preferences'.YouhavenotacceptedthelicenseagreementsofthefollowingSDKcomponents:[AndroidSDKPlatform27].我知道为什么会这样!因为我系统上最新的AndroidSDK平台是

android - Flutter 运行错误 : You have not accepted the license agreements

我正在使用Google开发android和ios应用程序flutter.当我将shared_preferences之类的新依赖项添加到pubspec.yaml然后在终端中执行flutterrun时,出现此错误:Whatwentwrong:Aproblemoccurredconfiguringproject':shared_preferences'.YouhavenotacceptedthelicenseagreementsofthefollowingSDKcomponents:[AndroidSDKPlatform27].我知道为什么会这样!因为我系统上最新的AndroidSDK平台是

android - E/TokenRequestor : You have wrong OAuth2 related configurations, 请检查。详细错误:UNREGISTERED_ON_API_CONSOLE

我在我的应用中通过Firebase使用Google登录。但是从Play商店运行已发布的应用程序时,它显示以下错误。E/TokenRequestor:YouhavewrongOAuth2relatedconfigurations,pleasecheck.Detailederror:UNREGISTERED_ON_API_CONSOLE虽然我已经在Firebase和API控制台上注册,但JSON文件中提到了ID。以下是JSON文件代码{"project_info":{"project_number":"311816357497","firebase_url":"https://mcqsce

android - 即使在提供准确的客户端 ID 后仍获取 'E/TokenRequestor: You have wrong OAuth2 related configurations. Detailed error: INVALID_AUDIENCE'

我在我的应用中提供了GoogleSignIn选项。这是我的代码:publicclassSignupActivityextendsAppCompatActivity{privatestaticfinalintRC_SIGN_IN=1;GoogleApiClientmGoogleApiClient;FirebaseAuthmAuth;TextViewappName;ProgressDialogsigninProgressDialog;CoordinatorLayoutcoordinatorLayout;@OverrideprotectedvoidonCreate(BundlesavedIn

android - "You need to add at least 2 non-Android TV screenshots"

在我的GooglePlay开发者控制台中,我将两个PNG以2:1的比例(1000pxx500px)拖到电视的图形资源插槽中,它们被接受了。但是当我点击发布应用程序时,我仍然收到消息“您需要添加至少2个非AndroidTV屏幕截图”。所以它仍然处于草稿模式。我不确定我应该做些什么来完成它:我注销然后重新登录,但问题仍然存在。我使用的是Chrome浏览器。我在Firefox浏览器中尝试过。如果重要的话,此应用程序已在Alpha测试中上传。另外,我认为电View像是可选的。 最佳答案 您还需要提供至少两个手机或平板电脑屏幕。