• Post Reply Bookmark Topic Watch Topic
  • New Topic

Syntax error on token(s), misplaced construct(s)  RSS feed

 
jeans hernandez
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
package com.demandmedia.livestrong.android.constants;

public class BuildValues {
public static final boolean IS_DEBUG = @app.debug@;
public static final boolean IS_STAGING = @app.api.staging@;
public static final boolean IGNORE_INVALID_SSL_CERTS = @app.api.ignore_invalid_certs@;
public static final String PROXY_HOST = "@app.proxy.host@";
public static final int PROXY_PORT = @app.proxy.port@;
}
 
Winston Gutkowski
Bartender
Posts: 10575
66
Eclipse IDE Hibernate Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
jeans hernandez wrote:package com.demandmedia.livestrong.android.constants...

Erm...Sorry, is there a question here?

I just wondered; although the thread seems to have been marked as resolved.

Winston
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16060
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch.

That code is not valid Java code. It looks like the @app.debug@ tokens are intended to be replaced by some other text before the code is compiled.
 
jeans hernandez
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you help me to solve the problem because the error display is Syntax error in token(s), misplaced construct..
can you please debug it and post the right one.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!