Comments (7)
建议优先使用 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.
from aliyun-oss-react-native.
Android :
xmlns:tools="http://schemas.android.com/tools">
tools:replace="android:allowBackup"
android:allowBackup="true"
from aliyun-oss-react-native.
这里只需要将android:allowBackup="true" 就可以了
from aliyun-oss-react-native.
如果还是不行将 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.
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.
Material.Widget.Button.Colored not found.
这个同样是SDK版本的问题需要和自己工程保持一致
from aliyun-oss-react-native.
Related Issues (20)
- 上传事件监听没有效果 HOT 3
- 上传图片和视频如何获取进度
- 请问还会更新吗? HOT 3
- 在pod install的时候 Installing AliyunOSSiOS 一直卡在这边 HOT 2
- com.aliyun.oss.clientError Code=6 HOT 1
- AliyunOSS.asyncDownload 下载文件问题
- android studio下,加载aliyun-oss-react-native包报错
- 请问下这个问题如何解决?Unable to resolve host "xxx.aliyuncs.com": No address associated with hostname
- 调用initWithSecurityToken会卡住js线程吗?
- 安装OSS模块后app launch compile错误 HOT 6
- asyncUpload method can't find the file path HOT 3
- android Q没有适配,上传图片路径会出错 HOT 1
- Attempt to invoke virtual method 'void com.reactlibrary.AliyunUploadManager.asyncUpload(com.facebook.react.bridge.ReactContext, java.lang.String, java.lang.String, java.lang.String, com.facebook.react.bridge.ReadableMap, com.facebook.react.bridge.Promise)' on a null object reference HOT 2
- 模块3年没有更新,已经abandoned? HOT 1
- AliyunUploadManager.java uses unchecked or unsafe operations.
- 公告:这个SDK后面有时间准备重新搞起来了,大家有issue,有PR的欢迎可以提交 HOT 17
- 上传图像在Android emulator运行通畅但在安桌手机上stuck HOT 1
- 请为 Expo 创建一个 Config Plugin
- yarn ios 报错 HOT 5
- 这个项目还在维护嘛?还能使用嘛? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aliyun-oss-react-native.