codingpapi / blog Goto Github PK
View Code? Open in Web Editor NEWSimple blog with Github issues
Simple blog with Github issues
The SDK Build Tools revision (23.0.1) is too low for project ':aliyun-oss-react-native-sdk'. Minimum required is 25.0.0
第三方库使用的buildToolsVersion版本太低,不需要手动修改库内容,在android/build.gradle中添加以下内容,强制所有依赖使用相同版本。
subprojects {
afterEvaluate {project ->
if (project.hasProperty("android")) {
android {
compileSdkVersion 26
buildToolsVersion '26.0.3'
}
}
}
}
Could not find method google() for arguments [] on repository container of type org.gradle.api.internal.artifacts.dsl.DefaultRepositoryHandler.
这个问题的本质是gradle版本过低
可通过手动修改第三方库build.gradle文件,把google()函数替换为maven链接 maven{url
'http://maven.aliyun.com/nexus/service/local/repositories/google/content/'}
或者升级gradle版本到3.0之上,就不用改第三方库了
Could not find method compileOnly() for arguments [com.facebook.react:react-native:+] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
gradle 版本太低,只能通过升级gradle版本解决
https://gist.github.com/nazrdogan/87c63e89a2bfd4cefee24990e4e7ed0e
uncompiled PNG file passed as argument. Must be compiled first into .flat file..
依赖库以及react-native对gradle3.0以上版本适配有问题,主要是高版本gradle使用Aapt2替换了Aapt打包应用资源。上面有依赖需要升级gradle版本到3.0,官方又对3.0依赖支持差。两种办法可以尝试把这个问题暂时绕过去
I wouldn't be surprised to see more people try out Flutter
Cannot merge new index 68188 into a non-jumbo instruction!
方法数量超过单dex上限
https://stackoverflow.com/questions/26093664/dexexception-cannot-merge-new-index-65536-into-a-non-jumbo-instruction
Cannot read property 'bindings' of null
babel-preset-react-native 版本过低
facebook/react-native#20042
comma issue
Node7 不再支持尾comma,{ temp, } 写法会报错,导致第三方库编译不过。
自己clone库,修改代码
react-native-modal编译不过
babel有bug,需要升级react-native-modal库规避
react-native/Libraries/StyleSheet/normalizeColor
from /home/supermario/Nodejs/test/fromScrach/Sinopec/node_modules/antd-mobile-rn/lib/segmented-control/segmented.android.js
: Module react-native/Libraries/StyleSheet/normalizeColor
does not exist in the Haste module map
antd-mobile-rn 库使用了react-native弃用迁移的变量。最新版本的antd库就有问题,没法升级,我们会只有一个weldNew页面用到了SegmentedControl控件,可以考虑替换该控件。
react-native 的 自带Image控件
运行时崩溃。未找到原因。自此卡住
7.9号 灵感一现,继续
resizeMode={Image.resizeMode.cover} 替换为 resizeMode="cover"
NavigationActions.reset undefined
NavigationActions库版升级导致的不兼容, reset 方法被移到新的StackActions中了
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.