草庐IT

com-state

全部标签

android - 尝试在 MultiDex 应用程序中测试 Android 模块,无法识别 com.android.test.runner.MultiDexTestRunner

有人知道为什么我不能使用MultiDexTestRunner吗?我的build.gradle包含:android{...defaultConfig{...multiDexEnabledtruetestInstrumentationRunner'com.android.test.runner.MultiDexTestRunner'}dependencies{...//Testing-onlydependenciesandroidTestCompile'com.android.support.test:runner:0.4.1'androidTestCompile'com.android.

android - 错误 build.gradle 与 com.google.android.gms :play-services-maps:9. 4.0

在我的应用程序中,我有这些依赖项:applyplugin:'com.android.application'android{compileSdkVersion23buildToolsVersion"23.0.2"defaultConfig{applicationId"com.package_app.name"minSdkVersion15targetSdkVersion23versionCode1versionName"1.0"}buildTypes{release{minifyEnabledfalseproguardFilesgetDefaultProguardFile('progu

java - itextPdf 的问题,拒绝重新初始化先前失败的类 java.lang.Class<com.itextpdf.awt.PdfGraphics2D>

我是android的新手,我正在尝试在android中将位图转换为Pdf。我正在使用itextpdf5.5.4jar文件。我使用的代码如下:importcom.itextpdf.text.BadElementException;importcom.itextpdf.text.Document;importcom.itextpdf.text.DocumentException;importcom.itextpdf.text.Image;importcom.itextpdf.text.pdf.PdfWriter;publicvoidsavePhotoPDF(){StringcurrentT

android - 无法解析 : com. android.installreferrer:installreferrer

这个问题在这里已经有了答案:Failedtoresolve:com.android.support:appcompat-v7:26.0.0(14个答案)关闭5年前。关于https://android-developers.googleblog.com/2017/11/google-play-referrer-api-track-and.htmlPlayInstallReferrerLibrary1.0现已可用TomakeiteasytointegratetheInstallReferrerAPI,we'vereleasedtheInstallReferrerLibrary1.0forA

android - 找不到 com.android.databinding :library:3. 1.1

我升级到AndroidStudio3.1.1并尝试从GitHub克隆一个项目但由于以下错误而无法运行它Couldnotfindcom.android.databinding:library:3.1.1.我试过了this&this但无法解决问题。后者建议更新到3.2canary10版本,但是3.1.1没有办法解决吗?根据Android团队的建议进行编辑buildscript{repositories{jcenter()google()}dependencies{classpath'com.android.tools.build:gradle:3.1.1'//NOTE:Donotplace

android - 错误 : package com. google.android.gms.tagmanager 不存在

我正在开发一个项目,在该项目中,我使用了TagManager和Datalayer类来实现GTA和增强型电子商务,我正在使用“com.google.android”build.gradle中的.gms:play-services-base:12.0.1'和androidstudio版本3.0.1显示我将其更新为15.0.0,当我更改它的版本和同步项目时,它现在给我错误:error:packagecom.google.android.gms.tagmanagerdoesnotexist我更新了androidstudio3.1.1并使用了版本27的构建工具,但没有任何效果来解决这个问题。它仍

android - 找不到处理 Intent { act=android.intent.action.VIEW dat=google.navigation :q=17. 399986,78.483137 pkg=com.google.android.apps.maps } 的 Activity

我正在尝试使用以下代码启动map。publicstaticvoidnavigate(Contextcontext,doublelat,doublelon){StringlocationQuery=lat+","+lon;UrigmmIntentUri=Uri.parse("google.navigation:q="+locationQuery);IntentmapIntent=newIntent(Intent.ACTION_VIEW,gmmIntentUri);mapIntent.setPackage("com.google.android.apps.maps");context.st

android - 我收到错误 : class file for com. 找不到 google.android.gms.internal.zzbgl

检查null边界时出现错误:boundsBuilder.include(newLatLng(loc.getLocation().getLat(),loc.getLocation().getLng()));bounds=boundsBuilder.build();if(bounds!=null){LatLngnorthEast=bounds.northeast;LatLngsouthWest=bounds.southwest;doublemovingDistance=SphericalUtil.computeDistanceBetween(northEast,southWest);Log

android - Realm Android javassist.NotFoundException : io. realm.com_example_realmtest_data_SomethingRealmProxyInterface

我对android中的Realm完全陌生,我从只有一个只有一个字段的实体的简单kotlin项目开始。openclassSomething:RealmObject(){@PrimaryKeyvarid:Long=0}我在我的应用程序类中初始化了Realm:classRealmApp:Application(){overridefunonCreate(){super.onCreate()Realm.init(this)valconfig=RealmConfiguration.Builder().build()Realm.setDefaultConfiguration(config)}}当然

android - 不理解 com.google.android.maps.Overlay 的 drawAt() 方法

尝试在Android程序中制作谷歌地图叠加层。在叠加层的绘制方法中,我有两种添加图钉的方法。其中一种有效,另一种无效。可惜,不起作用的也是唯一有加影能力的!有什么帮助吗?@Overridepublicvoiddraw(android.graphics.Canvascanvas,MapViewmapView,booleanshadow){Pointpo=mapView.getProjection().toPixels(mapView.getMapCenter(),null);//Thisdoes_not_work,butIwouldreallylikeitto!drawAt(canvas