Giter Site home page Giter Site logo

Comments (7)

mokai avatar mokai commented on July 21, 2024 2

建议优先使用 rootProject.compileSdkVersion、rootProject.buildToolsVersion、rootProject.targetSdkVersion


buildscript {
    repositories {
        jcenter()
    }

    dependencies {
        classpath 'com.android.tools.build:gradle:1.3.1'
    }
}

apply plugin: 'com.android.library'

def DEFAULT_COMPILE_SDK_VERSION = 23
def DEFAULT_BUILD_TOOLS_VERSION = "27.0.3"
def DEFAULT_TARGET_SDK_VERSION = 22

android {
    compileSdkVersion rootProject.hasProperty('compileSdkVersion') ? rootProject.compileSdkVersion : DEFAULT_COMPILE_SDK_VERSION
    buildToolsVersion rootProject.hasProperty('buildToolsVersion') ? rootProject.buildToolsVersion : DEFAULT_BUILD_TOOLS_VERSION

    defaultConfig {
        minSdkVersion 16
        targetSdkVersion rootProject.hasProperty('targetSdkVersion') ? rootProject.targetSdkVersion : DEFAULT_TARGET_SDK_VERSION
        versionCode 1
        versionName "1.0"
    }
    lintOptions {
        abortOnError false
    }
}

repositories {
    mavenCentral()
}

dependencies {
    implementation 'com.facebook.react:react-native:+'
    implementation 'com.aliyun.dpa:oss-android-sdk:+'
}

from aliyun-oss-react-native.

qinAI avatar qinAI commented on July 21, 2024 1

from aliyun-oss-react-native.

qinAI avatar qinAI commented on July 21, 2024

Android :
xmlns:tools="http://schemas.android.com/tools">

    tools:replace="android:allowBackup"
    android:allowBackup="true"

from aliyun-oss-react-native.

qinAI avatar qinAI commented on July 21, 2024

这里只需要将android:allowBackup="true" 就可以了

from aliyun-oss-react-native.

qinAI avatar qinAI commented on July 21, 2024

如果还是不行将 aliyun-oss-react-native build.gradle 修改

android {
compileSdkVersion 26
buildToolsVersion '27.0.3'

defaultConfig {
    minSdkVersion 16
    targetSdkVersion 26
    versionCode 1
    versionName "1.0"
}
lintOptions {
    abortOnError false
}

}

from aliyun-oss-react-native.

Pzz0912 avatar Pzz0912 commented on July 21, 2024

Task :aliyun-oss-react-native:verifyReleaseResources FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':aliyun-oss-react-native:verifyReleaseResources'.

java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed
error: resource android:style/TextAppearance.Material.Widget.Button.Borderless.Colored not found.
error: resource android:style/TextAppearance.Material.Widget.Button.Colored not found.

我也一样但是使用你的方法我还是会报错

from aliyun-oss-react-native.

qinAI avatar qinAI commented on July 21, 2024

Material.Widget.Button.Colored not found.
这个同样是SDK版本的问题需要和自己工程保持一致

from aliyun-oss-react-native.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.