Page 1 of 1

AndroidBuild - Compile Error

Posted: Tue Mar 08, 2016 1:14 am
by Bruce Stuart

When building my project I get this error (for Android):

Build error

Most likely build error cause:

:compileReleaseJava/srv/tiggzi/jenkins/workspace/308886-android/162951/308886/android/SmartDart/src/com/adobe/phonegap/push/GCMIntentService.java:483: error: cannot find symbol
mBuilder.setColor(iconColor);
^
symbol: method setColor(int)
location: variable mBuilder of type Builder
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
FAILED

FAILURE: Build failed with an exception.

Please try again.
You can also email us a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a and tell us about this problem

As shown here:

Image

Can you help ??


AndroidBuild - Compile Error

Posted: Tue Mar 08, 2016 11:14 am
by Evgene Karachevtsev

Hello Bruce,

Could you please clarify have you checked the file, described in this error?


AndroidBuild - Compile Error

Posted: Tue Mar 08, 2016 3:00 pm
by M&M

Guess it's a missing jar file, or facebook plugin...if you have used it :-)


AndroidBuild - Compile Error

Posted: Wed Mar 09, 2016 5:48 am
by Bruce Stuart

M&M - please tell me more? I have imported the Facebook plugin - and it's a part of my build. Builds fine on the IOS side - no issue. How did you come to the conclusion it may be facebook plugin ??

Evgene, I turned off debugging - and set to release - and then received this error:

Image

Now I'm confused - how do i get to the bottom of this??

Bruce


AndroidBuild - Compile Error

Posted: Wed Mar 09, 2016 10:31 am
by M&M

well, the included jar files could be the cause...either incompatible or missing. But most probable reason is that the plugin may be incompatible with phonegap plugin push plugin ( because android-support-v4.jar is included or something? )...You could try to narrow in by getting the suspects out first... :-)


AndroidBuild - Compile Error

Posted: Wed Mar 09, 2016 10:33 am
by M&M

Well, the included jar files could be the cause...either incompatible or missing. But most probable reason is that the plugin may be incompatible with phonegap plugin push plugin ( because android-support-v4.jar is included or something? )...You could try to narrow in by getting the suspects out first... :-)

Btw is this the facebook plugin to used? if not then would you want to try this: https://github.com/jeduan/cordova-plu...


AndroidBuild - Compile Error

Posted: Wed Mar 09, 2016 10:35 am
by M&M

Well, the included jar files could be the cause...either incompatible or missing. But most probable reason is that the plugin may be incompatible with phonegap plugin push plugin ( because android-support-v4.jar is included or something? )...You could try to narrow in by getting the suspects out first... :-)

Btw is this the facebook plugin to used? if not then would you want to try this: https://github.com/jeduan/cordova-plu...


AndroidBuild - Compile Error

Posted: Mon Sep 26, 2016 8:00 am
by Sam8264500

HI

I have the same problem . I tried https://github.com/jeduan/cordova-plu... as well but i get the same error

How did you guys resolve it in appery?

Thanks

Build error

Most likely build error cause:

:compileReleaseJava/Weight_Loss_21_days_Challenge/src/org/apache/cordova/facebook/ConnectPlugin.java:781: error: cannot find symbol
builder.setQuote(paramBundle.get("quote"));
^
symbol: method setQuote(String)
location: variable builder of type Builder
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
1 error
FAILED

FAILURE: Build failed with an exception.

Please try again.
You can also email us a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a and tell us about this problem