[
https://issues.apache.org/jira/browse/CB-9032?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Joe Bowser closed CB-9032.
--------------------------
Resolution: Won't Fix
Those third party plugins are using deprecated methods that we removed in
Android 4.0.0, and they need to be updated to be compatible. I would recommend
filing issues against the third-party plugins instead.
> [Mobilespec] Fail to build mobilespec with --thirdpartyplugins
> --------------------------------------------------------------
>
> Key: CB-9032
> URL: https://issues.apache.org/jira/browse/CB-9032
> Project: Apache Cordova
> Issue Type: Bug
> Components: mobile-spec
> Reporter: Wanming Lin
> Priority: Critical
> Labels: mobilespec
>
> Reproduce Test Steps
> ====================
> 1. $ sudo npm install [email protected] -g
> 2. $ git clone https://github.com/apache/cordova-coho.git
> 3. $ git clone https://github.com/apache/cordova-mobile-spec.git
> $ cd cordova-mobile-spec/createmobilespec/ & sudo npm install
> 4. $ cd ../../ &./cordova-mobile-spec/createmobilespec/createmobilespec.js
> --android --global --thirdpartyplugins --variable API_KEY_FOR_ANDROID="key"
> 5. $ cd mobilespec & cordova build android
> Expected Outcome
> ================
> Cordova build successfully
> Actual Outcome
> ==============
> {code}
> warning: android/util/AttributeSet.class(android/util:AttributeSet.class):
> major version 51 is newer than 50, the highest major version supported by
> this compiler.
> It is recommended that the compiler be upgraded.
> /home/lei/work/workspace/cordova/cordova-4.0/mobilespec/platforms/android/src/de/appplant/cordova/plugin/localnotification/LocalNotification.java:495:
> cannot find symbol
> symbol : method evaluateJavascript(java.lang.String,<nulltype>)
> location: interface org.apache.cordova.CordovaWebView
> webView.evaluateJavascript(js, null);
> ^
> /home/lei/work/workspace/cordova/cordova-4.0/mobilespec/platforms/android/src/de/appplant/cordova/plugin/localnotification/LocalNotification.java:492:
> cannot find symbol
> symbol : method post(<anonymous java.lang.Runnable>)
> location: interface org.apache.cordova.CordovaWebView
> webView.post(new Runnable(){
> ^
> /home/lei/work/workspace/cordova/cordova-4.0/mobilespec/platforms/android/src/com/cranberrygame/phonegap/plugin/ad/Admob.java:119:
> cannot find symbol
> symbol : method addOnLayoutChangeListener(<anonymous
> android.view.View.OnLayoutChangeListener>)
> location: interface org.apache.cordova.CordovaWebView
> webView.addOnLayoutChangeListener(new View.OnLayoutChangeListener(){
> ^
> /home/lei/work/workspace/cordova/cordova-4.0/mobilespec/platforms/android/src/com/cranberrygame/phonegap/plugin/ad/Admob.java:468:
> cannot find symbol
> symbol : method addView(android.widget.RelativeLayout)
> location: interface org.apache.cordova.CordovaWebView
> webView.addView(bannerViewLayout);
> ^
> /home/lei/work/workspace/cordova/cordova-4.0/mobilespec/platforms/android/src/com/cranberrygame/phonegap/plugin/ad/Admob.java:579:
> cannot find symbol
> symbol : method getParent()
> location: interface org.apache.cordova.CordovaWebView
> ViewGroup parentView = (ViewGroup)webView.getParent();
> ^
> 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.
> 5 errors
> 100 warnings
> :compileArmv7DebugJava FAILED
> FAILURE: Build failed with an exception.
> * What went wrong:
> Execution failed for task ':compileArmv7DebugJava'.
> > Compilation failed; see the compiler error output for details.
> * Try:
> Run with --stacktrace option to get the stack trace. Run with --info or
> --debug option to get more log output.
> BUILD FAILED
> Total time: 4 mins 34.76 secs
> /home/lei/work/workspace/cordova/cordova-4.0/mobilespec/platforms/android/cordova/node_modules/q/q.js:126
> throw e;
> ^
> Error code 1 for command:
> /home/lei/work/workspace/cordova/cordova-4.0/mobilespec/platforms/android/gradlew
> with args:
> cdvBuildDebug,-b,/home/lei/work/workspace/cordova/cordova-4.0/mobilespec/platforms/android/build.gradle,-PcdvBuildArch=arm,-Dorg.gradle.daemon=true
> ERROR running one or more of the platforms: Error:
> /home/lei/work/workspace/cordova/cordova-4.0/mobilespec/platforms/android/cordova/run:
> Command failed with exit code 8
> You may not have the required environment or OS to run this project
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]