User Tag List

Results 1 to 5 of 5

Thread: Problem with Webview Object on Android

  1. #1
    No Products Registered

    Join Date
    May 2016
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Problem with Webview Object on Android

    Hi!

    I am building an app that uses the webview object. However, I am having the following problem: the app works normally until I set it to release mode (i. e., until I sign it with the .keystore file). After that the frames that have a webview object stop loading and the app crashes.

    Any workarounds?

  2. #2
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    6,136
    Mentioned
    155 Post(s)
    Tagged
    3 Thread(s)
    Please download and update from extension manager, the last version address this problem.
    Regards,


    Fernando Vivolo

    ... new things are coming ...

  3. #3
    No Products Registered

    Join Date
    May 2016
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I just did that, now I get an error compiling:


    Buildfile: C:\Users\mm123\AppData\Local\Temp\And96F4.tmp\buil d.xml

    -set-mode-check:

    -set-release-mode:

    -release-obfuscation-check:
    [echo] proguard.config is ${proguard.config}

    -pre-build:

    -check-env:
    [checkenv] Android SDK Tools Revision 25.1.3
    [checkenv] Installed at C:\Users\mm123\AppData\Local\Android\android-sdk

    -setup:
    [echo] Project Name: RuntimeAndroid
    [gettype] Project Type: Application

    -build-setup:
    [getbuildtools] Using latest Build Tools: 23.0.3
    [echo] Resolving Build Target for RuntimeAndroid...
    [gettarget] Project Target: Android 5.0.1
    [gettarget] API level: 21
    [echo] ----------
    [echo] Creating output directories if needed...
    [mkdir] Created dir: C:\Users\mm123\AppData\Local\Temp\And96F4.tmp\bin
    [mkdir] Created dir: C:\Users\mm123\AppData\Local\Temp\And96F4.tmp\bin\ res
    [mkdir] Created dir: C:\Users\mm123\AppData\Local\Temp\And96F4.tmp\bin\ rsObj
    [mkdir] Created dir: C:\Users\mm123\AppData\Local\Temp\And96F4.tmp\bin\ rsLibs
    [mkdir] Created dir: C:\Users\mm123\AppData\Local\Temp\And96F4.tmp\gen
    [mkdir] Created dir: C:\Users\mm123\AppData\Local\Temp\And96F4.tmp\bin\ classes
    [mkdir] Created dir: C:\Users\mm123\AppData\Local\Temp\And96F4.tmp\bin\ dexedLibs
    [echo] ----------
    [echo] Resolving Dependencies for RuntimeAndroid...
    [dependency] Library dependencies:
    [dependency] No Libraries
    [dependency]
    [dependency] ------------------
    [echo] ----------
    [echo] Building Libraries with 'release'...
    [subant] No sub-builds to iterate on

    -code-gen:
    [mergemanifest] Merging AndroidManifest files into one.
    [mergemanifest] Manifest merger disabled. Using project manifest only.
    [echo] Handling aidl files...
    [aidl] No AIDL files to compile.
    [echo] ----------
    [echo] Handling RenderScript files...
    [echo] ----------
    [echo] Handling Resources...
    [aapt] Generating resource IDs...
    [echo] ----------
    [echo] Handling BuildConfig class...
    [buildconfig] Generating BuildConfig class.

    -pre-compile:

    -compile:
    [javac] Compiling 452 source files to C:\Users\mm123\AppData\Local\Temp\And96F4.tmp\bin\ classes
    [javac] C:\Users\mm123\AppData\Local\Temp\And96F4.tmp\src\ Extensions\CRunWebView2.java:555: error: cannot find symbol
    [javac] if(!MMFRuntime.inst.verifyOkPermissionsApi23(permi ssionsApi23))
    [javac] ^
    [javac] symbol: method verifyOkPermissionsApi23(HashMap<String,String>)
    [javac] location: variable inst of type MMFRuntime
    [javac] C:\Users\mm123\AppData\Local\Temp\And96F4.tmp\src\ Extensions\CRunWebView2.java:557: error: cannot find symbol
    [javac] MMFRuntime.inst.pushForPermissions(permissionsApi2 3, PERMISSIONS_WEBVIEW_REQUEST);
    [javac] ^
    [javac] symbol: method pushForPermissions(HashMap<String,String>,int)
    [javac] location: variable inst of type MMFRuntime
    [javac] C:\Users\mm123\AppData\Local\Temp\And96F4.tmp\src\ Extensions\CRunWebView2.java:607: error: cannot find symbol
    [javac] enabled_perms = verifyResponseApi23(permissions, permissionsApi23);
    [javac] ^
    [javac] symbol: method verifyResponseApi23(String[],HashMap<String,String>)
    [javac] location: class CRunWebView2
    [javac] C:\Users\mm123\AppData\Local\Temp\And96F4.tmp\src\ Extensions\CRunWebView2.java:604: error: method does not override or implement a method from a supertype
    [javac] @Override
    [javac] ^
    [javac] C:\Users\mm123\AppData\Local\Temp\And96F4.tmp\src\ Runtime\MMFRuntime.java:1645: warning: non-varargs call of varargs method with inexact argument type for last parameter;
    [javac] Method m = c.getDeclaredMethod("disconnect", null);
    [javac] ^
    [javac] cast to Class<?> for a varargs call
    [javac] cast to Class<?>[] for a non-varargs call and to suppress this warning
    [javac] C:\Users\mm123\AppData\Local\Temp\And96F4.tmp\src\ Runtime\MMFRuntime.java:1646: warning: non-varargs call of varargs method with inexact argument type for last parameter;
    [javac] Object o = m.invoke(null, null);
    [javac] ^
    [javac] cast to Object for a varargs call
    [javac] cast to Object[] for a non-varargs call and to suppress this warning
    [javac] C:\Users\mm123\AppData\Local\Temp\And96F4.tmp\src\ Runtime\MMFRuntime.java:1660: warning: non-varargs call of varargs method with inexact argument type for last parameter;
    [javac] Method m = c.getDeclaredMethod("connect", null);
    [javac] ^
    [javac] cast to Class<?> for a varargs call
    [javac] cast to Class<?>[] for a non-varargs call and to suppress this warning
    [javac] C:\Users\mm123\AppData\Local\Temp\And96F4.tmp\src\ Runtime\MMFRuntime.java:1661: warning: non-varargs call of varargs method with inexact argument type for last parameter;
    [javac] Object o = m.invoke(null, null);
    [javac] ^
    [javac] cast to Object for a varargs call
    [javac] cast to Object[] for a non-varargs call and to suppress this warning
    [javac] C:\Users\mm123\AppData\Local\Temp\And96F4.tmp\src\ Runtime\MMFRuntime.java:1675: warning: non-varargs call of varargs method with inexact argument type for last parameter;
    [javac] Method m = c.getDeclaredMethod("isConnected", null);
    [javac] ^
    [javac] cast to Class<?> for a varargs call
    [javac] cast to Class<?>[] for a non-varargs call and to suppress this warning
    [javac] C:\Users\mm123\AppData\Local\Temp\And96F4.tmp\src\ Runtime\MMFRuntime.java:1676: warning: non-varargs call of varargs method with inexact argument type for last parameter;
    [javac] Object o = m.invoke(null, null);
    [javac] ^
    [javac] cast to Object for a varargs call
    [javac] cast to Object[] for a non-varargs call and to suppress this warning
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 4 errors
    [javac] 6 warnings

    BUILD FAILED
    C:\Users\mm123\AppData\Local\Android\android-sdk\tools\ant\build.xml:716: The following error occurred while executing this line:
    C:\Users\mm123\AppData\Local\Android\android-sdk\tools\ant\build.xml:730: Compile failed; see the compiler error output for details.

    Total time: 13 seconds

  4. #4
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    6,136
    Mentioned
    155 Post(s)
    Tagged
    3 Thread(s)
    Sorry you need to update also to version 285.8 so it can work with api 23 permission system

  5. #5
    No Products Registered

    Join Date
    May 2016
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok, will do that. Thanks.

Similar Threads

  1. WebView crashing problem on iOS
    By kirkmet in forum iOS Export Module 2.5
    Replies: 2
    Last Post: 16th June 2016, 02:48 PM
  2. Webview issue on android - not resizing properly.
    By Redsquirrel in forum Android Export Module 2.5
    Replies: 0
    Last Post: 2nd January 2016, 05:26 PM
  3. Webview object is not working on Android?
    By luikagames in forum Fusion 2.5
    Replies: 3
    Last Post: 27th October 2015, 09:02 AM
  4. WebView Object is here!
    By Fernando in forum Android Export Module Version 2.0
    Replies: 57
    Last Post: 3rd August 2015, 06:41 PM
  5. WebView Object Visualization in Android Different Screen Resolutions
    By BGUSMAOKM in forum Android Export Module Version 2.0
    Replies: 1
    Last Post: 30th October 2013, 04:37 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •