Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing dependencies? #3

Open
usernamenumber opened this issue Jul 26, 2016 · 0 comments
Open

Missing dependencies? #3

usernamenumber opened this issue Jul 26, 2016 · 0 comments

Comments

@usernamenumber
Copy link

usernamenumber commented Jul 26, 2016

If I install the searchbar plugin, my builds begin to fail because searchbar tries to pull in a bunch of java libs that aren't installed, e.g. org.nm.finddoctor.R. I've searched around some, but haven't found where to get these packages. Could you please update the README with instructions? Very excited to try this plugin!

Here's the complete output:

BUILD FAILED

Total time: 6.664 secs
Error: /Users/me/Project/cordova/platforms/android/gradlew: Command failed with exit code 1 Error output:
/Users/me/Project/cordova/platforms/android/src/net/spantree/searchbar/SearchBar.java:21: error: package org.nm.finddoctor does not exist
import org.nm.finddoctor.R;
                        ^
/Users/me/Project/cordova/platforms/android/src/net/spantree/searchbar/SearchBar.java:70: error: package R does not exist
        l.setAnimator(LayoutTransition.APPEARING, AnimatorInflater.loadAnimator(cordova.getActivity(), R.animator.slide_in));
                                                                                                        ^
/Users/me/Project/cordova/platforms/android/src/net/spantree/searchbar/SearchBar.java:71: error: package R does not exist
        l.setAnimator(LayoutTransition.DISAPPEARING, AnimatorInflater.loadAnimator(cordova.getActivity(), R.animator.slide_out));
                                                                                                           ^
/Users/me/Project/cordova/platforms/android/src/net/spantree/searchbar/SearchBar.java:72: error: cannot find symbol
        webView.setLayoutTransition(l);
               ^
  symbol:   method setLayoutTransition(LayoutTransition)
  location: variable webView of type CordovaWebView
/Users/me/Project/cordova/platforms/android/src/net/spantree/searchbar/SearchBar.java:89: error: cannot find symbol
            ((ViewGroup) webView.getParent()).addView(view, 0, params);
                                ^
  symbol:   method getParent()
  location: variable webView of type CordovaWebView
/Users/me/Project/cordova/platforms/android/src/net/spantree/searchbar/SearchBar.java:97: error: cannot find symbol
        webView.addView(view, params);
               ^
  symbol:   method addView(View,LayoutParams)
  location: variable webView of type CordovaWebView
/Users/me/Project/cordova/platforms/android/src/net/spantree/searchbar/SearchBar.java:124: error: cannot find symbol
                webView.removeView(searchView);
                       ^
  symbol:   method removeView(SearchView)
  location: variable webView of type CordovaWebView
/Users/me/Project/cordova/platforms/android/src/net/spantree/searchbar/SearchBar.java:133: error: cannot find symbol
        webView.requestFocus();
               ^
  symbol:   method requestFocus()
  location: variable webView of type CordovaWebView
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.
8 errors

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileArmv7DebugJavaWithJavac'.
> 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant