草庐IT

eslint-plugin-import

全部标签

javascript - window.plugin.pushNotification 在 Cordova 3.6.4 上未定义

我不熟悉使用Cordova构建多平台应用程序。我已经按照许多教程来创建推送通知,但无法做到。我遵循的过程是:在Google控制台中创建了一个项目,将适用于Android的Google云通知消息传递设置为“开启”。创建项目如下指令:CordovacreatesampleAppcom.samplesampleAppcordovaplatformaddandroidcordovaaddpluginhttps://github.com/phonegap-build/PushPlugin.git编辑www/下的index.html添加了pushNotification.js文件。更改了www/j

android - import com.amazonaws 无法解析

我正在Eclipse中设置基于Android的AmazonAWSSimpleDB客户端(刚开始)。我在线上遇到错误:importcom.amazonaws.services.simpledb.AmazonSimpleDBClient;上面写着“导入com.amazonaws无法解析。”我已经在我的项目的lib目录中安装了AWSSimpleDBjar文件,并将lib目录添加到我的项目的构建路径中。如何让Eclipse解析导入语句中的名称?谢谢。 最佳答案 我找到了问题的答案。我想我在将lib目录添加到我的构建路径时出错了。正确的做法是

android - cordova-plugin-file-transfer 的转译错误

我想使用cordovafiletransferplugin.我通过Ionic-Nativetransfermodule使用它.应用程序无法运行,因为文件传输插件和fileplugin存在转译错误:transpilestarted...typescript:plugins/cordova-plugin-file-transfer/types/index.d.ts,line:9Cannotfindtypedefinitionfilefor'cordova-plugin-file'.L8:*@paramserverURLoftheservertoreceivethefile,asencode

android - import android.os.ServiceManager 无法解析

我正在使用aidl自动接听电话,代码如下:ITelephony.Stub.asInterface(ServiceManager.getService("phone")).answerRingingCall();我导入ServiceManager.classimportandroid.os.ServiceManager;但是有个问题:importandroid.os.ServiceManager无法解析我怎样才能让它发挥作用?谢谢 最佳答案 android.os.ServiceManager是一个隐藏类(即@hide)并且隐藏类(即使

android - 如何写一个 Android 共享 "plugin"?

我想将我的应用程序添加到Android的共享对话框中。这样用户就可以选择一张图片并与我的应用程序“分享”,在通过电子邮件发送之前会做一些修改。任何想法如何从哪里开始? 最佳答案 您需要向您的应用程序list添加一个intent-filter,使其能够处理MIME类型image/jpeg的对象。然后您的应用程序会收到该文件的Uri,您可以根据要求使用该Uri修改图像。Android开发者网站上有很多关于它的内容,包括代码示例:http://developer.android.com/guide/topics/intents/inten

mysql - 错误 : Tablespace for table xxx exists. Please DISCARD the tablespace before IMPORT

我对MySQL还很陌生,遇到了一个非常有趣的错误,我无法通过google和stackoverflow搜索找到任何帮助。我在MacOS10.8.3上运行MySQL5.6.10的本地服务器,并通过NavicatEssentialsforMySQL管理我的数据库。我得到的错误是,在运行和管理我的数据库几天/几周后,某些东西触发(它看起来不完整)删除我使用Navicat中的查询创建的一些表。当我尝试使用这些表运行查询时,Navicat会警告我该特定表不存在。到目前为止一切顺利-好的部分来了:当我尝试创建表时,例如名为“temp”,以前在那里,我收到以下错误消息:Error:Tablespace

mysql - 错误 : Tablespace for table xxx exists. Please DISCARD the tablespace before IMPORT

我对MySQL还很陌生,遇到了一个非常有趣的错误,我无法通过google和stackoverflow搜索找到任何帮助。我在MacOS10.8.3上运行MySQL5.6.10的本地服务器,并通过NavicatEssentialsforMySQL管理我的数据库。我得到的错误是,在运行和管理我的数据库几天/几周后,某些东西触发(它看起来不完整)删除我使用Navicat中的查询创建的一些表。当我尝试使用这些表运行查询时,Navicat会警告我该特定表不存在。到目前为止一切顺利-好的部分来了:当我尝试创建表时,例如名为“temp”,以前在那里,我收到以下错误消息:Error:Tablespace

android - 无法使用 `phonegap plugin add XXX` 添加插件

我已经使用npminstall-gphonegap安装了phonegap版本3,现在我想为andriod应用安装插件我安装了node.jsC:\var\www\sexdiaries.co.uk\app>node-vv0.10.17然后是Phonegapyphonegappluginaddhttps://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen.git但这给出了这个错误:[error]'plugin'isnotanodeC:\Users\Hutber\AppData\Roaming\npm\node_modul

Android Gradle plugin 3.0.1不得应用于项目

当我尝试构建我的项目时,我不断收到此错误。我不知道它有什么问题,我尝试的任何方法都不起作用。我正在尝试清理、重启AndroidStudio,并使用gradlew--stop停止守护进程。请帮帮我!错误:AndroidGradleplugin3.0.1mustnotbeappliedtoprojectsinceversion3.0.1wasalreadyappliedtothisproject模块:应用程序脚本applyplugin:'com.android.application'android{compileSdkVersion26applyplugin:'com.android.l

android import android-async-http-master 有错误

我从github上得到了一个名为android-async-http-master的android项目,这是下载链接:https://github.com/loopj/android-async-http但是当我导入项目到eclipse时,它有一个错误。我遇到这样的错误:importcz.msebera.android.httpclient.Header;importcz.msebera.android.httpclient.HeaderElement;所以我的问题是:项目包名称是com.loopj.android.http,其中是cz.msebera.android.httpclie