Build Error ...

30 views
Skip to first unread message

Nadim

unread,
Dec 2, 2019, 8:49:33 PM12/2/19
to App Inventor for All
Hello

Im not able to figure out the exact issue with the code as keep getting this error everytime I try to build the extension
AndroidRuntime:
   
[mkdir] Created dir: D:\AppInventor\appinventor-sources\appinventor\components\build\classes\AndroidRuntime
   
[javac] Compiling 267 source files to D:\AppInventor\appinventor-sources\appinventor\components\build\classes\AndroidRuntime
   
[javac] warning: [options] bootstrap class path not set in conjunction with -source 7
   
[javac] warning: [options] source value 7 is obsolete and will be removed in a future release
   
[javac] warning: [options] target value 7 is obsolete and will be removed in a future release
   
[javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
   
[javac] D:\AppInventor\appinventor-sources\appinventor\components\src\io\kodular\PayTMPG.java:175: error: cannot find symbol
   
[javac]         Service.initialize(order, null);
   
[javac]         ^
   
[javac]   symbol:   variable Service
   
[javac]   location: class PayTMPG
   
[javac] D:\AppInventor\appinventor-sources\appinventor\components\src\io\kodular\PayTMPG.java:182: error: cannot find symbol
   
[javac]                             Toast.makeText(getApplicationContext(), inErrorMessage, Toast.LENGTH_SHORT).show();
   
[javac]                                            ^
   
[javac]   symbol: method getApplicationContext()
   
[javac] D:\AppInventor\appinventor-sources\appinventor\components\src\io\kodular\PayTMPG.java:193: error: cannot find symbol
   
[javac]                         Toast.makeText(getApplicationContext(), "Payment Transaction response " + inResponse, Toast.LENGTH_LONG).show();
   
[javac]                                        ^
   
[javac]   symbol: method getApplicationContext()
   
[javac] D:\AppInventor\appinventor-sources\appinventor\components\src\io\kodular\PayTMPG.java:198: error: cannot find symbol
   
[javac]                         Toast.makeText(getApplicationContext(), "No Internet", Toast.LENGTH_SHORT).show();
   
[javac]                                        ^
   
[javac]   symbol: method getApplicationContext()
   
[javac] D:\AppInventor\appinventor-sources\appinventor\components\src\io\kodular\PayTMPG.java:208: error: cannot find symbol
   
[javac]                             Toast.makeText(getApplicationContext(), inErrorMessage, Toast.LENGTH_SHORT).show();
   
[javac]                                            ^
   
[javac]   symbol: method getApplicationContext()
   
[javac] D:\AppInventor\appinventor-sources\appinventor\components\src\io\kodular\PayTMPG.java:222: error: cannot find symbol
   
[javac]                                 Toast.makeText(getApplicationContext(), inErrorMessage + "inFailing Url : " + inFailingUrl + " iniErrorCode : " + iniErrorCode, Toast.LENGTH_SHORT).show();
   
[javac]                                                ^
   
[javac]   symbol: method getApplicationContext()
   
[javac] D:\AppInventor\appinventor-sources\appinventor\components\src\io\kodular\PayTMPG.java:232: error: cannot find symbol
   
[javac]                         Toast.makeText(getApplicationContext(), "Transaction cancelled" , Toast.LENGTH_LONG).show();
   
[javac]                                        ^
   
[javac]   symbol: method getApplicationContext()
   
[javac] D:\AppInventor\appinventor-sources\appinventor\components\src\io\kodular\PayTMPG.java:238: error: cannot find symbol
   
[javac]                         Toast.makeText(getApplicationContext(), "Payment Transaction Failed ", Toast.LENGTH_LONG).show();
   
[javac]                                        ^
   
[javac]   symbol: method getApplicationContext()
   
[javac] D:\AppInventor\appinventor-sources\appinventor\components\src\io\kodular\PayTMPG.java:177: error: cannot find symbol
   
[javac]         Service.startPaymentTransaction(this, true, true, new PaytmPaymentTransactionCallback() {
   
[javac]         ^
   
[javac]   symbol:   variable Service
   
[javac]   location: class PayTMPG
   
[javac] Note: Some input files use or override a deprecated API.
   
[javac] Note: Recompile with -Xlint:deprecation for details.
   
[javac] Note: Some input files use unchecked or unsafe operations.
   
[javac] Note: Recompile with -Xlint:unchecked for details.
   
[javac] 9 errors
   
[javac] 4 warnings

BUILD FAILED
D
:\AppInventor\appinventor-sources\appinventor\build.xml:42: The following error occurred while executing this line:
D
:\AppInventor\appinventor-sources\appinventor\components\build.xml:199: The following error occurred while executing this line:
D
:\AppInventor\appinventor-sources\appinventor\build-common.xml:125: Compile failed; see the compiler error output for details.
Trying to get Paytm payment gateway integration

Thanks

Taifun

unread,
Dec 11, 2019, 1:19:53 PM12/11/19
to App Inventor for All
for questions about working with the App Inventor sources, please ask in the open source community

Trying to push the limits of App Inventor! Snippets, Tutorials and Extensions from Pura Vida Apps by Taifun.        

Reply all
Reply to author
Forward
0 new messages