小编Pre*_*ika的帖子

LLSimpleCamera:AVAssetWriterInput appendSampleBuffer崩溃

我正在使用LLSimpleCamera录制视频.当我使用后置摄像头时它录制得很好但是当我切换到前置摄像头时,应用程序崩溃并且报告的错误是

*终止应用程序由于未捕获的异常"NSInvalidArgumentException",原因是:"* - [AVAssetWriterInput appendSampleBuffer:]介质类型的样品缓冲液必须接收器的媒体类型('soun’)匹配"

我已经尝试了很多stackOverflow帖子,但无法修复崩溃.任何人都可以让我知道可能是什么问题?

objective-c ios avassetwriterinput

7
推荐指数
1
解决办法
150
查看次数

评估项目“:app”时出现问题。> 无法对 null 对象调用 getAbsolutePath() 方法

我面临着 React Native 构建的问题。无法进一步进行,并且在任何地方都找不到解决方案。这是我的 build.gradle 文件

import org.apache.tools.ant.taskdefs.condition.Os


buildscript {
ext {
    buildToolsVersion = "31.0.0"
    minSdkVersion = 21
    compileSdkVersion = 31
    targetSdkVersion = 31 
    kotlinVersion = "1.5.31"


    if (findProperty('android.kotlinVersion')) {
        kotlinVersion = findProperty('android.kotlinVersion')
    }
    frescoVersion = findProperty('expo.frescoVersion') ?: '2.5.0'

    if (System.properties['os.arch'] == 'aarch64') {
        
        ndkVersion = '24.0.8215888'
    } else {
        
        ndkVersion = '21.4.7075529'
    }
}
repositories {
    google()
    mavenCentral()
}
dependencies {
    classpath('com.android.tools.build:gradle:7.3.0')
    classpath('com.facebook.react:react-native-gradle-plugin')
    classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
    classpath('de.undercouch:gradle-download-task:4.1.2')
    classpath 'com.google.gms:google-services:4.3.13'
    
}}
allprojects {
repositories {
    mavenLocal()
    maven {
        
        url(new File(['node', '--print', …
Run Code Online (Sandbox Code Playgroud)

android exception gradle react-native

7
推荐指数
1
解决办法
7278
查看次数

Instagram - 通过 iOS 应用程序分享图像、文本和网址:swift

我正在尝试将带有一些文本和网址的图像从我的应用程序共享到 Instagram,稍后会从 Instagram 应用程序重定向到手机上安装的 iOS 应用程序。我可以在 Instagram 上分享图像,但不能分享文本和网址。任何与此相关的帮助都会很棒!

ios instagram swift

2
推荐指数
1
解决办法
9647
查看次数