-
Notifications
You must be signed in to change notification settings - Fork 45
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
编译出问题了 Task :app:compileDebugJavaWithJavac FAILED #203
Comments
我也是这个问题,你解决了么 |
这个问题困扰了一天,最后终于解决了 原因分析:这个问题的出现是因为今年1月份的时候对JMessageReactPackage.java做了一次commit,详细修改可见 4da1a83 。这个commit会导致更新后的JMessageReactPackage无法传递参数,因为在new JMessageModule(reactContext, false)中写死为false,用户无法传参,将JMessageReactPackage.java改为之前的版本就是正确的。按照文档走安装最新版本的话,用户100%会遇到这个问题。 解决方案:将node_modules/jmessage-react-plugin/android/src/io/jchat/android/JMessageReactPackage.java修改还原为之前版本,代码如下
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
安装没问题.
编译错误:> Task :app:compileDebugJavaWithJavac FAILED
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.2/userguide/command_line_interface.html#sec:command_line_warnings
269 actionable tasks: 30 executed, 239 up-to-date
D:\program\migu\android\app\build\generated\rncli\src\main\java\com\facebook\react\PackageList.java:83: ����: ������ JMessageReactPackage�еĹ����� JMessageReactPackageӦ�õ���������;
new JMessageReactPackage(false),
^
��Ҫ: û�в���
�ҵ�: boolean
ԭ��: ʵ�ʲ����б�����ʽ�����б����Ȳ�ͬ
ע: D:\program\migu\android\app\src\debug\java\com\migua\ReactNativeFlipper.javaʹ�û�����ѹ�ʱ�� API��
ע: �й���ϸ��Ϣ, ��ʹ�� -Xlint:deprecation ���±��롣
1 ������
FAILURE: Build failed with an exception.
Execution failed for task ':app:compileDebugJavaWithJavac'.
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.
Get more help at https://help.gradle.org
The text was updated successfully, but these errors were encountered: