首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >响应本地集成应用程序博览会配置错误--配置项目“:博览会”时出现的问题

响应本地集成应用程序博览会配置错误--配置项目“:博览会”时出现的问题
EN

Stack Overflow用户
提问于 2022-05-24 15:49:20
回答 1查看 763关注 0票数 0

我正在尝试构建一个与andriod应用程序集成的react本机包,我正在使用一个模板android应用程序来测试是否有可能工作的配置。当我试图将世博添加到上面,以便能够使用像世博字体这样的世博库时,我会不断地出错,而构建也会不断地发人深省。此外,没有expo和axpo库,react原生应用程序也完全可以使用:

代码语言:javascript
复制
FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* Where:
Build file 'C:\Users\ioann\Downloads\react-native-manual-setup-android-master\node_modules\expo-gl-cpp\android\build.gradle' line: 74

* What went wrong:
A problem occurred evaluating project ':expo-gl-cpp'.
> No signature of method: build_dc3qrybx70v962fdf5r1ztpro.android() is applicable for argument types: (build_dc3qrybx70v962fdf5r1ztpro$_run_closure3) values: [build_dc3qrybx70v962fdf5r
1ztpro$_run_closure3@2f6b06a1]

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
==============================================================================

2: Task failed with an exception.
-----------
* What went wrong:
A problem occurred configuring project ':expo'.
> compileSdkVersion is not specified. Please add it to build.gradle

应用程序/build.gradle:

代码语言:javascript
复制
apply plugin: 'com.android.application'
/**************** Hermes Setup ********************/
project.ext.react = [
        enableHermes: false
]
def jscFlavor = 'org.webkit:android-jsc:+'
def enableHermes = project.ext.react.get("enableHermes", false);
/**************** End of Hermes Setup***************/
android {
    compileSdkVersion 30
    buildToolsVersion "30.0.3"
    defaultConfig {
        applicationId "com.soumya.sethy.reactnativesetupandroid"
        minSdkVersion 21
        targetSdkVersion 30
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
    }

    compileOptions {
        sourceCompatibility 1.8
        targetCompatibility 1.8
    }

}
dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])

    implementation 'androidx.appcompat:appcompat:1.0.2'
    implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'androidx.test.ext:junit:1.1.1'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
    //firebase
    implementation 'com.google.firebase:firebase-config:19.1.4'
    //PR Downloader
    implementation 'com.mindorks.android:prdownloader:0.6.0'
    implementation'com.facebook.soloader:soloader:0.9.0+'

    //React Native Dependencies Setup Here...
    implementation "com.facebook.react:react-native:+"

    //Hermes Dependencies Setup here...
    if (enableHermes) {
        def hermesPath = "../../node_modules/hermes-engine/android/";
        debugImplementation files(hermesPath + "hermes-debug.aar")
        releaseImplementation files(hermesPath + "hermes-release.aar")
    } else {
        implementation jscFlavor
    }
}
//(MainApplication) Manual ReactPackage Setup here...
apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle")

apply plugin: 'com.google.gms.google-services';
applyNativeModulesAppBuildGradle(project)
EN

回答 1

Stack Overflow用户

发布于 2022-05-25 16:19:11

解决了它通过构建一个博览应用程序形式划痕使用世博init,然后运行世博弹出,一旦我完成。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/72365873

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档