Bruce Stuart
Posts: 0
Joined: Fri Oct 24, 2014 4:42 am

AndroidBuild - Compile Error

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 ??

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

AndroidBuild - Compile Error

Hello Bruce,

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

M&M
Posts: 0
Joined: Tue Nov 11, 2014 6:59 am

AndroidBuild - Compile Error

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

Bruce Stuart
Posts: 0
Joined: Fri Oct 24, 2014 4:42 am

AndroidBuild - Compile Error

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

M&M
Posts: 0
Joined: Tue Nov 11, 2014 6:59 am

AndroidBuild - Compile Error

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... :-)

M&M
Posts: 0
Joined: Tue Nov 11, 2014 6:59 am

AndroidBuild - Compile Error

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...

M&M
Posts: 0
Joined: Tue Nov 11, 2014 6:59 am

AndroidBuild - Compile Error

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...

Sam8264500
Posts: 0
Joined: Tue May 31, 2016 4:23 am

AndroidBuild - Compile Error

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

Return to “Issues”