我在我的离子应用程序中使用facebook评论插件,并在index.html中使用下面的代码片段
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.11&appId='My_fbApp_Id'";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
Run Code Online (Sandbox Code Playgroud)
最后一个HTML代码显示评论框.
<div class="fb-comments" data-mobile="true" data-width="100%" page-href="https://facebook.com/" data-numposts="15"></div>
Run Code Online (Sandbox Code Playgroud)
这与铬工作正常,但当我构建APK文件并尝试在一秒钟内运行应用评论框隐形请解决我的问题
我正在运行最新版本的 Mac OS,我想通过命令行工具运行 android 模拟器。我在 Mac 终端上运行了以下命令并收到以下错误。
$ emulator -list-avds
Pixel_XL_API_28
$ emulator -avd Pixel_XL_API_28
PANIC: Missing emulator engine program for 'x86' CPU.
Run Code Online (Sandbox Code Playgroud)
我还使用以下可用选项运行命令,该命令也可在官方文档 developer.android.com 上找到
$ /Users/janedoe/Library/Android/sdk/emulator/emulator -avd Pixel_XL_API_28 -netdelay none -netspeed full
Run Code Online (Sandbox Code Playgroud)
我需要做什么,这样我就不需要每次只打开模拟器就打开android studios。
macos terminal android command-line-interface android-emulator