把Whitelist 改成AllowList
//import org.apache.cordova.Whitelist; import org.apache.cordova.AllowList;
// Whitelist whitelist = (Whitelist)gwl.invoke(webView); // shouldAllowRequest = whitelist.isUrlWhiteListed(source); AllowList whitelist = (AllowList)gwl.invoke(webView); shouldAllowRequest = whitelist.isUrlAllowListed(source);
标签:transfer,Whitelist,AllowList,file,gwl,org,whitelist From: https://www.cnblogs.com/dndt/p/17133266.html