重要提示 - 我希望此功能仅适用于移动应用程序,而不适用于 flutter web。
我在保存 flutter 应用程序中的网站时遇到一些问题。我尝试过对 inappwebview 使用缓存方法和 savewebarchive 方法。该方法的问题在于它没有保存网站的完整内容。它仅保存 HTML 和 CSS 文件。
我想保存整个网站的所有内容,如 HTML、CSS、js、字体文件、图像,并将其存储在 flutter 应用程序中。我已经使用了一些插件,但没有一个有帮助。
我正在寻找与 httrack 相同的功能。
任何正确的方向都会受到重视。
如此图所示,我想使用Jsoup检索自动完成的搜索结果。我已经在使用视频ID检索视频URL,视频标题和缩略图,但是我一直坚持从搜索结果中删除它们。
我必须不使用Youtube的Data Api而仅使用Jsoup来完成此操作。
任何可以指出正确方向的建议将不胜感激。
我正在使用 inappwebview https://pub.dev/packages/flutter_inappwebview插件来显示 webview,但出现 SSL 错误。
E/chromium(15303): [错误:ssl_client_socket_impl.cc(946)] 握手失败;返回 -1,SSL 错误代码 1,net_error -200
onReceivedServerTrustAuthRequest: (InAppWebViewController controller, ServerTrustChallenge challenge) async {
print('ignoring the ssl');
return ServerTrustAuthResponse(action: ServerTrustAuthResponseAction.PROCEED);
},
Run Code Online (Sandbox Code Playgroud)
但它不起作用。
我可以获得解决该错误的任何建议吗?
我在 android studio 中有一个项目,其中我只有 1 个包,并且在生成签名的 apk 或调试应用程序时,它安装了 2 个 apk 文件,两者都打开了相同的 apk。我不确定问题出在哪里。我能得到一些建议吗?
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.example.myapplication">
<uses-permission
android:name="android.permission.INSTALL_LOCATION_PROVIDER"
tools:ignore="ProtectedPermissions" />
<application
android:name="androidx.multidex.MultiDexApplication"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:hardwareAccelerated="true"
android:screenOrientation="portrait"
android:supportsRtl="true"
android:testOnly="false"
android:theme="@style/AppTheme"
android:usesCleartextTraffic="true"
tools:ignore="GoogleAppIndexingWarning,HardcodedDebugMode"
tools:targetApi="m">
<activity android:name="com.example.myapplication.Activity.ImageViewer" />
<activity
android:name="com.example.myapplication.Fragments.LeadManagement.ProcessingLeadUpdate"
android:theme="@style/AppTheme.NoActionBar" >
</activity>
<activity
android:name="com.example.myapplication.Activity.Splash"
android:configChanges="orientation|screenSize|keyboardHidden"
android:noHistory="false"
android:theme="@style/AppTheme.NoActionBar"
android:usesCleartextTraffic="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="com.example.myapplication.Activity.MainActivity"
android:configChanges="orientation|screenSize|keyboardHidden"
android:label="@string/app_name"
android:noHistory="false"
android:theme="@style/AppTheme.NoActionBar"
android:usesCleartextTraffic="true"
android:windowSoftInputMode="adjustResize" />
<activity
android:name="com.schibstedspain.leku.LocationPickerActivity"
android:label="@string/leku_title_activity_location_picker"
android:theme="@style/Theme.AppCompat.Light.NoActionBar"
android:windowSoftInputMode="adjustPan">
<meta-data
android:name="android.app.searchable"
android:resource="@xml/leku_searchable" />
</activity>
</application> …Run Code Online (Sandbox Code Playgroud) android ×3
flutter ×2
flutter-ios ×1
httrack ×1
java ×1
jsoup ×1
ssl ×1
web-scraping ×1
webview ×1
youtube ×1