Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

你好,请问下android build失败问题 #14

Open
yourenA opened this issue Apr 12, 2017 · 2 comments
Open

你好,请问下android build失败问题 #14

yourenA opened this issue Apr 12, 2017 · 2 comments

Comments

@yourenA
Copy link

yourenA commented Apr 12, 2017

如题所示,我在Android中build项目的时候会出现这样的错误
`
:app:compileDebugJavaWithJavac
:app:compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
E:\react-native\ReactNativePlatform\android\app\src\main\java\com\reactnativeplatform\MainApplication.java:13: 错误: 程 序包com.reactnativecomponent.amaplocation不存在
import com.reactnativecomponent.amaplocation.RCTAMapPackage;
^
E:\react-native\ReactNativePlatform\android\app\src\main\java\com\reactnativeplatform\MainApplication.java:33: 错误: 找 不到符号
new RCTAMapPackage() //register Module
^
符号: 类 RCTAMapPackage
2 个错误
:app:compileDebugJavaWithJavac FAILED

FAILURE: Build failed with an exception.
`
是不是导入包地址错误了,可以我是按照readme上面的写的

版本
"react": "16.0.0-alpha.6",
"react-native": "0.43.3",
"react-native-smart-amap": "^1.0.4",

@yourenA
Copy link
Author

yourenA commented Apr 12, 2017

@cyqresig @liukefu2050 第一次运行react-native run-android 会报下面的错误,是不是这个文件也要修改上面,我不懂java,你可以帮我看一下吗?
:react-native-smart-amap:compileReleaseJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
注: E:\react-native\ReactNativePlatform\node_modules\react-native-smart-amap\android\src\main\java\com\reactnativecomponent\amap\util\SensorEventHelper.java使用或覆盖了已过时的 API。
注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。

@yourenA yourenA changed the title 你好,我在README中看到MainApplication中看到的import com.reactnativecomponent.amaplocation.RCTAMapPackage;,在DEMO中却没有这个,为什么呢? 你好,请问下android build失败问题 Apr 12, 2017
@yourenA
Copy link
Author

yourenA commented Apr 13, 2017

是README.md 上的导入包错误
import com.reactnativecomponent.amap.RCTAMapPackage;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant