草庐IT

android - 将 Android 应用程序 API 级别从 25 升级到 26 的正确方法

关闭。这个问题不符合StackOverflowguidelines.它目前不接受答案。我们不允许提问寻求书籍、工具、软件库等的推荐。您可以编辑问题,以便用事实和引用来回答。关闭5年前。Improvethisquestion去年我为学校构建了一个小应用程序,现在随着AndroidO的发布,我想升级它以使其针对最新版本(从25到26)我该怎么做呢?是否有适合初学者学习的推荐指南或更新我的应用程序的list?谢谢!

android - Sony Xperia T (ST26) 日历帐户问题

设备恢复出厂设置后。我试图检索日历显示名称(通过下面的代码),它返回没有日历。但至少打开一次设备日历应用程序时,将正确检索默认手机日历。有什么方法可以在不打开设备日历应用程序的情况下检索日历(尤其是默认日历)?提前致谢。以下是用于检索设备上存在的日历的代码:privateUrigetCalendarUri(){returnUri.parse(Integer.parseInt(Build.VERSION.SDK)>7?"content://com.android.calendar/calendars":"content://calendar/calendars");}privateStr

android - 如果 targetSdkVersion >= 26,Android 8.0 上的应用程序图标大小

我的应用有一个方形图标。当targetSdkVersiontargetSdkVersion>=26时,应用程序图标在Android8.0设备上显示在一个白色圆圈内。有没有办法去除白色圆圈? 最佳答案 根据UnderstandingAndroidAdaptiveIconsblogpost:IndeedGoogle’slauncherwillstartplacingiconsofappswhichtargetAndroid-Obutdonotsupplyanadaptiveiconontoabackground(scalingdownt

android - 无法解析 com.android.support :appcompat-v7:26. 1.0。 => 配置 HTTP 代理

我下载了AndroidStudio3.0并开始关注buildingmyfirstapptutorial.但是Gradle抛出了如下错误:Couldnotresolvecom.android.support:appcompat-v7:26.1.0.我在SO上搜索了类似的问题,例如this和that,但他们都没有帮助我。最终我发现我正在为AndroidStudio使用代理:为了解决这个错误,我也必须通过将这些行添加到gradle.properties文件来实现Gradle的代理:systemProp.http.proxyHost=127.0.0.1systemProp.http.nonPr

android - 无法解析 com.android.support :support-compat:26. 1.0

这让我发疯了好几天。我无法在Android模拟器上运行我的应用程序:当我运行react-nativerun-android时,出现以下错误:>Task:react-native-maps:compileDebugRenderscriptFAILEDFAILURE:Buildfailedwithanexception.*Whatwentwrong:Couldnotresolveallfilesforconfiguration':react-native-maps:debugCompileClasspath'.>Couldnotresolvecom.android.support:supp

android - 找不到 Android API 26 平台的地理编码器源

我刚刚重新打开了我的应用程序,在可能中断编码一个月之后才发现它无法正常工作。我有将FireBase数据库中的标记显示到map上的代码,但现在无法正常工作。进入Geocoder.class,它说没有androidapi26的来源,点击下载没有任何作用。我尝试通过SDK管理器中的向导“重置”我的api源,但无济于事。不确定该怎么做。 最佳答案 虽然没有API26源代码,但它们应该很快就会可用,因为AndroidO将于下周发布。现在虽然我在Reddit上找到了以下解决方案这使您能够使用API25的源代码。我认为您需要执行以下命令。cdSD

android - 31.0.0 不是有效的 SDK 版本。选项是 26.0.0 未版本化

将expo版本更新到31.0.0后,我无法再运行我的应用程序。由于iOS版本12的支持,我需要进行此升级。你在尝试构建Android应用程序后它不再工作。我的package.json如下所示:{"name":"myapp","version":"0.1.0","private":true,"devDependencies":{"react-native-scripts":"1.13.1","jest-expo":"^31.0.0","react-test-renderer":"16.3.0-alpha.1"},"main":"./node_modules/react-native-sc

android - CollapsingToolbarLayout 在 API 26 中的图像下方显示栏

将支持库从v25.4.0升级到v26.0.0后,CollapsingToolbarLayout不适合里面的内容,而是显示一个下面的空白空间(可能是状态栏的大小)。举例说明:v25.4.0:使用v26.0.0:Activity的XML布局是我已经按照建议尝试使用android:fitsSystemWindows值here,但结果不是预期的。如果您想查看更多详细信息,我的实现代码是thisGithubrepo. 最佳答案 我试着编辑你的代码,我得到了你想要达到的想法结果:我唯一编辑的是,我没有将AppBarLayout的layout_h

android - 字体系列导致 android 26 上的 NPE

我的应用程序在android26上崩溃,我的理解是它是由font-family和支持库引起的,但我不明白为什么。在Android8.0以下的设备上它工作正常。Causedby:android.view.InflateException:BinaryXMLfileline#0:ErrorinflatingclassButtonCausedby:java.lang.RuntimeException:java.lang.reflect.InvocationTargetExceptionatandroid.support.v4.graphics.TypefaceCompatApi26Impl.

android - 找不到 com.android.support :support-annotations:26. 1.0

我有一个项目,它的compileSdkVersion和targetSdkVersion都是25,当我尝试升级版本到26时,出现了以下错误:Couldnotfindcom.android.support:support-annotations:26.1.0.Requiredby:project:appproject:app>com.android.support:support-compat:26.1.0PleaseinstalltheAndroidSupportRepositoryfromtheAndroidSDKManager.OpenAndroidSDKManager我打开了And