草庐IT

coffee-script-source

全部标签

java - OpenStreetMap 是否有 Point(Source) to Point(Destination) direction uri 在 Android 中使用?

在我的应用程序中,我集成了OpenStreetMap,我在其中获取了源坐标和目标坐标。我需要使用Intent类将这些坐标传递给OpenStreetMap应用程序,为此我需要Uri。经过2天的搜索,我得到了这个Urihttp://www.openstreetmap.org/?mlat=latitude&mlon=longitude&zoom=12目前只支持一个位置,但我不想要它。谁能帮我解决这个问题?提前致谢...下面是我的代码IntentsendLocationToMap=newIntent(android.content.Intent.ACTION_VIEW,Uri.parse("h

android - 膨胀 gzip HTTP 响应正文时获取 "source exhausted prematurely"

当我尝试使用okhttp进行HTTP调用时出现以下错误:W/System.err:java.io.EOFException:sourceexhaustedprematurelyW/System.err:atokio.InflaterSource.read(InflaterSource.java:83)W/System.err:atokio.GzipSource.read(GzipSource.java:80)W/System.err:atokio.Buffer.writeAll(Buffer.java:1135)W/System.err:atokio.RealBufferedSourc

javascript - 在 android 中引用 javax.script.ScriptEngine 或评估 javascript 表达式

在开发android应用时是否可以引用javax.script.ScriptEngine库?如果没有,是否有可能在android中评估javascript表达式? 最佳答案 对于javax.script.ScriptEngine、javax.script.ScriptEngineFactory等类,您可以将jsr223.jar添加到您的Android项目中:只需将.jar文件复制到您的libs目录,然后从Properties-添加它>Java构建路径。这些类将允许您的JSR223兼容引擎进行编译。然后您可以执行newSomeScri

android - 构建 yasm/source/patched-yasm/util.h :78:23: error: libintl. h 时出错:没有这样的文件或目录

构建将近半小时后,出现以下错误。到目前为止,谷歌搜索没有任何帮助......Infileincludedfromexternal/chromium_org/third_party/yasm/source/patched-yasm/libyasm/phash.c:2:external/chromium_org/third_party/yasm/source/patched-yasm/util.h:78:23:error:libintl.h:Nosuchfileordirectorymake:***[out/host/darwin-x86/obj/STATIC_LIBRARIES/thir

android - 调试 Android 应用程序时出现 No source attachment 错误

我刚刚开始使用Eclipse在MacOSX上进行Android开发。在调试Activity时,我不断收到以下错误:TheJARfile/platforms/android-10/android.jarhasnosourceattachment.这开始变得很烦人,这是否意味着某处某处抛出异常?(消息本身没有提供任何有意义的信息来说明为什么会发生这种情况)我不想进入源头;Eclipse是否默认执行此操作?如何禁用它? 最佳答案 看起来您的应用程序中有一些错误。Android子系统抛出异常。通常,如果此类异常源自android,您将看到此

android - react-native android assembleDebug日志: Unknown source file : warning: string 'catalyst_debugjs' has no default translation

测试一个新的react-native项目:react-nativeinitreact-native运行-android日志:...:app:bundleDebugJsAndAssetsSKIPPED:app:processDebugManifest:app:processDebugResourcesUnknownsourcefile:warning:string'catalyst_debugjs'hasnodefaulttranslation.Unknownsourcefile:warning:string'catalyst_element_inspector'hasnodefault

安卓NDK : custom WebView compiling from source

我的目标是在Android中创建WebView的修改版本(称为WebViewCustom)以供我在我的应用程序中使用。WebView是基于WebKit的,所以我需要通过NDK在C中编译它。我现在没有兴趣参与开源的Android项目,所以我的需求只是能够编译WebView的原始C源代码,并在我的Android应用程序中将其用作自定义控件(SDK和NDK都是可能的环境)为申请)。我认为没有我不感兴趣的所有GITWebKit东西是可能的,但我不是Android和WebKit项目的专家。是否可以只编辑和编译WebView代码并将其作为新控件放入我的应用程序中?你能告诉我这个任务的主要步骤吗?

android - 错误 : Source Path does not exist for android icon png when building for ionic

Yoursysteminformation:CordovaCLI:6.5.0IonicCLIVersion:2.2.1IonicAppLibVersion:2.2.0OS:macOSSierraNodeVersion:v6.9.5Xcodeversion:Xcode8.2.1Buildversion8C1002我正在尝试使用ionicplatformaddandroid创建一个android项目,但它总是提示resources/android/icon/drawable-hdpi-icon.png不存在。事实上它不存在——这些资源都不存在。它们可以通过ionicresources创建。

android - Firebase 性能监视器导致 "D8: Unsupported source file type"

我加了applyplugin:'com.google.firebase.firebase-perf'当我运行build脚本时,我得到了/transforms/FirebasePerformancePlugin/dev/debug/174/module-info.class:D8:Unsupportedsourcefiletype这可能是什么问题?我更新了所有插件、播放服务和AndroidStudio,但没有成功 最佳答案 我通过更新gradle版本解决了这个问题类路径'com.android.tools.build:gradle:3

android - "The signing configuration should be specified in Gradle build scripts"...我做到了

我在申请签名时遇到了一个大问题:我已经按照文档设置了签名配置:signingConfigs{release{storeFilefile("lomapnew.keystore")storePassword"myPassword"keyAlias"myAlias"keyPassword"Something...."}}但我仍然收到此错误消息:“应在Gradle构建脚本中指定签名配置” 最佳答案 我要大胆猜测您还没有为发布构建类型设置签名配置。调试构建类型是自动的,因此对于所有其他构建类型(包括发布)来说这是一个必要步骤并不明显。您可以像