每次尝试在 VsCode 中启动应用程序时都会出现此错误
您没有用于调试 YAML 的扩展。我们应该在 Marketplace 中找到 YAML 扩展吗?
在我在 pubspec.yaml 中添加字体之前它就可以工作,重新启动我的应用程序,它就不再工作了。我多次尝试重新启动 VsCode、撤消更改、启动“flutter pub get”,但似乎没有任何效果。
昨天我的应用程序正常构建,今天没有更改我无法构建的任何内容,出现此错误:
Android依赖项“ com.google.android.gms:play-services-stats”具有不同的编译版本(16.0.1)和运行时版本(17.0.0)> classpath。您应该通过> DependencyResolution手动设置相同的版本
我尝试使用“ com.google.gms.googleservices.GoogleServicesPlugin.config.disableVersionCheck = true”绕过此操作,并多次清理了该项目,但错误仍然存在。
我的app / build.gradle文件:
apply plugin: "com.android.application"
apply plugin: "com.android.application"
apply plugin: "io.fabric"
import com.android.build.OutputFile
project.ext.react = [
entryFile: "index.js"
]
apply from: "../../node_modules/react-native/react.gradle"
/**
* Set this to true to create two separate APKs instead of one:
* - An APK that only works on ARM devices
* - An APK that only works on x86 devices
* The advantage is the size of the APK is reduced by about 4MB. …
Run Code Online (Sandbox Code Playgroud) 我正在使用 Chrome 调试 React Native 0.61.5 应用程序,通常当代码停止在断点上运行并且我悬停一个属性时,我可以在弹出窗口中看到它的所有详细信息。但是现在两天我无法恢复此功能。我重新启动计算机,清理 Chrome 和 Metro 捆绑器,尝试使用虚拟或真实设备,但仍然无法正常工作。我不小心停用了某些东西吗?
我正在尝试在 flutter 应用程序中实现 Firebase 动态链接。当我单击链接时,它会打开应用程序,但不会调用监听函数。
我根据 FlutterFire 一步步重新配置,所以我认为问题不在于配置,但可能在于我使用插件的方式,因为没有关于该插件最新版本的文档。
当我使用其他服务时,Firebase 在我的应用程序中正确初始化。
我正在android模拟器上进行测试
我正在尝试使用以下代码监听来自有状态小部件的动态链接
我首先导航到包含此小部件的页面,然后将应用程序置于后台,单击链接,应用程序在同一位置打开,但没有任何反应。
@override
void initState() {
super.initState();
initLink();
}
void initLink() {
FirebaseDynamicLinks.instance.onLink.listen((dynamicLinkData) {
print('dynamic link');
print(dynamicLinkData.toString());
// Navigator.pushNamed(context, dynamicLinkData.link.path);
}).onError((error) {
// Handle errors
});
}
Run Code Online (Sandbox Code Playgroud)
我正在尝试在React本机应用程序中实现AppsFlyer,但出现此错误“无法读取未定义的属性'initSdk'”
我导入了react-native-appsflyer
import React, { Component } from 'react';
import {
Alert,
Platform,
AppRegistry,
NetInfo,
Text,
} from 'react-native';
//...
import appsFlyer from 'react-native-appsflyer';
//...
Run Code Online (Sandbox Code Playgroud)
并尝试调用initSdk方法
export default class App extends Component {
initSdk(){
console.log('allo appsflyer');
let options = {
devKey: 'AF_DEV_KEY',
appId: "IOS_APP_ID",
isDebug: true
};
appsFlyer.initSdk(options,
(result) => {
this.setState( { ...this.state, initSdkResponse: result });
console.log(initSdkResponse);
},
(error) => {
console.error(error);
}
)
}
Run Code Online (Sandbox Code Playgroud)
并在我的startApp函数中启动它
startApp(root) {
this.initSdk();
console.log('app store update --> root', root);
switch (root) {
//... …
Run Code Online (Sandbox Code Playgroud) 我想知道是否可以在 React Native 中安装仅适用于 iOs 或 Android 的软件包?我正在为 Apple Pay 使用 tipsi-stripe,Android 和 RN0.61.5 存在一些错误,而我在 Android 上不需要它。
我试图从 Android Studio 和 packages.json 中删除模块并且它正在工作但它不干净,有人有更好的解决方案吗?
有人知道如何在 url mydomain.com/.well-known/apple-developer-merchantid-domain-association.txt 上使用 React.js 来验证 Apple 的域吗?
我尝试在公共文件夹中创建 .well-known 文件夹,并将 apple-developer-merchantid-domain-association.txt 文件放入其中。我可以访问该文件(只能访问,不能下载),但 Apple 网站上的验证仍然失败。有人有其他解决方案吗?
我也做了这样的自定义路线
<Route path="/.well-known/apple-developer-merchantid-domain-association.txt" render={() => (
<link rel="apple-developer-merchantid-domain-association.txt file" href="%PUBLIC_URL%/.well-known/apple-developer-merchantid-domain-association.txt" />
)}
Run Code Online (Sandbox Code Playgroud) react-native ×4
flutter ×2
reactjs ×2
android ×1
applepay ×1
appsflyer ×1
dart ×1
firebase ×1
java ×1
javascript ×1
package.json ×1