打开项目中的phonegap 3.5.0版本警告

时间:2014-07-17 08:57:24

标签: android cordova phonegap-build

我是一个带有phonegap的新手,并且在过去2天里一直在努力。我找到了很多关于如何安装它的教程,但是没有一个给我详细的细节,所以我将它们组合在一起以使它工作。在某些页面上,用户编写只安装phonegap,而不是cordova和phonegap,在其他页面上我看到用户编写安装两者。由于文档非常糟糕,我要求提供的信息是什么?

我不是Android的本地开发人员,因此我决定将phonegap与javascript,html,php,css结合使用。我在cmd中使用此命令创建了项目:

C:\user\AndroidDev\vprojects\hello>phonegap create hello com.ex.hello "hello ved"

之后我添加了平台:

phonegap platform add android

我收到了一条消息:

debug:
BUILD SUCCESSFUL
Total time: 28 seconds
[phonegap] successfully compiled Android app

之后我在Eclipse中打开了我的项目(Android Project From Existing Code),我收到了28条警告。我不确定为什么,这应该让我担心,但这让我感到不舒服。警告是:

Description Resource    Path    Location    Type
Unnecessary @SuppressWarnings("unused") CordovaWebView.java /helloved-CordovaLib/src/org/apache/cordova line 85 Java Problem
Class is a raw type. References to generic type Class<T> should be parameterized    HttpsURLConnectionImpl.java /helloved-CordovaLib/src/com/squareup/okhttp/internal/http  line 174    Java Problem
The value of the field CordovaWebView.url is not used   CordovaWebView.java /helloved-CordovaLib/src/org/apache/cordova line 88 Java Problem
Unnecessary @SuppressWarnings("unchecked")  HttpsURLConnectionImpl.java /helloved-CordovaLib/src/com/squareup/okhttp/internal/http  line 173    Java Problem
The value of the field CordovaWebView.mResult is not used   CordovaWebView.java /helloved-CordovaLib/src/org/apache/cordova line 106    Java Problem
The value of the local variable slot is not used    Spdy3.java  /helloved-CordovaLib/src/com/squareup/okhttp/internal/spdy  line 198    Java Problem
The import java.io.FileNotFoundException is never used  FileHelper.java /helloved-CordovaLib/src/org/apache/cordova line 29 Java Problem
The import java.io.FileOutputStream is never used   FileHelper.java /helloved-CordovaLib/src/org/apache/cordova line 30 Java Problem
The import java.io.OutputStream is never used   FileHelper.java /helloved-CordovaLib/src/org/apache/cordova line 33 Java Problem
The import java.nio.charset.Charset is never used   FileHelper.java /helloved-CordovaLib/src/org/apache/cordova line 34 Java Problem
The import android.widget.ImageView is never used   CordovaActivity.java    /helloved-CordovaLib/src/org/apache/cordova line 55 Java Problem
The value of the field CordovaActivity.lastRequestCode is not used  CordovaActivity.java    /helloved-CordovaLib/src/org/apache/cordova line 138    Java Problem
The value of the field CordovaActivity.lastResponseCode is not used CordovaActivity.java    /helloved-CordovaLib/src/org/apache/cordova line 144    Java Problem
The constructor WebView(Context, AttributeSet, int, boolean) is deprecated  CordovaWebView.java /helloved-CordovaLib/src/org/apache/cordova line 205    Java Problem
The value of the field CordovaActivity.LOG_TAG is not used  CordovaActivity.java    /helloved-CordovaLib/src/org/apache/cordova line 148    Java Problem
Dead code   CordovaWebViewClient.java   /helloved-CordovaLib/src/org/apache/cordova line 129    Java Problem
The value of the field CordovaActivity.responseCode is not used CordovaActivity.java    /helloved-CordovaLib/src/org/apache/cordova line 140    Java Problem
The value of the field CordovaActivity.lastIntent is not used   CordovaActivity.java    /helloved-CordovaLib/src/org/apache/cordova line 142    Java Problem
The import android.webkit.WebResourceResponse is never used CordovaWebViewClient.java   /helloved-CordovaLib/src/org/apache/cordova line 42 Java Problem
Dead code   CordovaWebViewClient.java   /helloved-CordovaLib/src/org/apache/cordova line 129    Java Problem
The value of the local variable serverProtocols is not used Platform.java   /helloved-CordovaLib/src/com/squareup/okhttp/internal   line 359    Java Problem
The import java.io.ByteArrayInputStream is never used   CordovaWebViewClient.java   /helloved-CordovaLib/src/org/apache/cordova line 21 Java Problem
List is a raw type. References to generic type List<E> should be parameterized  Platform.java   /helloved-CordovaLib/src/com/squareup/okhttp/internal   line 359    Java Problem
The value of the field CordovaChromeClient.LOG_TAG is not used  CordovaChromeClient.java    /helloved-CordovaLib/src/org/apache/cordova line 62 Java Problem
The method updateQuota(long) from the type WebStorage.QuotaUpdater is deprecated    CordovaChromeClient.java    /helloved-CordovaLib/src/org/apache/cordova line 294    Java Problem
The type WebStorage.QuotaUpdater is deprecated  CordovaChromeClient.java    /helloved-CordovaLib/src/org/apache/cordova line 291    Java Problem
Unnecessary @SuppressWarnings("deprecation")    FileHelper.java /helloved-CordovaLib/src/org/apache/cordova line 50 Java Problem
Resource leak: 'snapshot' is never closed   HttpResponseCache.java  /helloved-CordovaLib/src/com/squareup/okhttp    line 272    Java Problem

enter image description here

任何建议都会对我或任何信息有所帮助,这些警告是否应该让我担心或有办法避免它们?提前谢谢。

0 个答案:

没有答案