Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Sonstige Werkzeuge (https://www.delphipraxis.net/63-sonstige-werkzeuge/)
-   -   HTML5 Builder Probleme (https://www.delphipraxis.net/171203-html5-builder-probleme.html)

delphinia 25. Okt 2012 14:24

HTML5 Builder Probleme
 
Habe ein Komplett neues Projekt erstellt nach der Installation von HTML5 Builder und wollte das dann auf einem Emulierten Android Gerät ausgeben.....

Geht nicht....

Code:
    [javac] Compiling 4 source files to DD:\Wntwicklung\android\bin\classes
    [javac] D:\Wntwicklung\android\src\org\apache\cordova\CordovaWebViewClientPatched.java:8: error: cannot find symbol
    [javac]   import android.webkit.WebResourceResponse;
    [javac]                        ^
    [javac]  symbol:  class WebResourceResponse
    [javac]  location: package android.webkit
    [javac] D:\Wntwicklung\android\src\org\apache\cordova\CordovaWebViewClientPatched.java:21: error: cannot find symbol
    [javac]    public WebResourceResponse shouldInterceptRequest(WebView view, String url) {
    [javac]           ^
    [javac]  location: class CordovaWebViewClientPatched
    [javac] D:\Wntwicklung\android\src\org\apache\cordova\CordovaWebViewClientPatched.java:29: error: cannot find symbol
    [javac]    private WebResourceResponse generateWebResourceResponse(String url) {
    [javac]            ^
    [javac] D:\Wntwicklung\android\src\org\apache\cordova\CordovaWebViewClientPatched.java:25: error: cannot find symbol
    [javac]            return super.shouldInterceptRequest(view, url);
    [javac]  symbol: method shouldInterceptRequest(WebView,String)
    [javac] D:\Wntwicklung\android\src\org\apache\cordova\CordovaWebViewClientPatched.java:47: error: cannot find symbol
    [javac]                WebResourceResponse response = new WebResourceResponse(mimetype, "UTF-8", stream);
    [javac]                ^
    [javac]                                                   ^
    [javac] 6 errors
BUILD FAILED
D:\Entwicklung\eclipse\android-sdk\tools\ant\build.xml:679: The following error occurred while
D:\Entwicklung\eclipse\android-sdk\tools\ant\build.xml:679: The following error occurred while executing this line:
D:\Entwicklung\eclipse\android-sdk\tools\ant\build.xml:692: Compile failed; see the compiler error output for details.

mjustin 25. Okt 2012 17:12

AW: HTML5 Builder Probleme
 
Die Klasse WebResourceResponse ist erst ab Android API Level 11 (Android 3 / Honeycomb) in Android enthalten:

http://developer.android.com/referen...eResponse.html

Kann es sein, dass im HTML5 Builder Projekt eine niedrigere Zielplattform eingestellt ist? Zum Beispiel wenn ich eine Android App für Android 2.1 (Eclair MR1) entwickle, ist dies Plattform Level 7, und darin ist diese Klasse noch nicht verfügbar. I(ch kenne HTML5 Builder aber leider nicht.

ueding 28. Dez 2012 10:28

AW: HTML5 Builder Probleme
 
Hallo
ich habe das gleiche Problem.
Wenn du das Problem gelöst hast, würdest du es auch der Allgemeinheit verraten ?

Danke schon mal
und guten Rutsch.

Gregor


Alle Zeitangaben in WEZ +1. Es ist jetzt 18:20 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz