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

Guidelines for importing library to Android Studio #16

Closed
ghost opened this issue Apr 30, 2015 · 4 comments
Closed

Guidelines for importing library to Android Studio #16

ghost opened this issue Apr 30, 2015 · 4 comments

Comments

@ghost
Copy link

ghost commented Apr 30, 2015

Hi,
I am experiencing some difficulties with importing the library to Android Studio. Whenever I import it I get 2 errors:

  1. all of a sudden ActionBarActivity cannot be resolved
  2. I get gradle error: "Error:The SDK Build Tools revision (18.1.0) is too low for project ':PhysicaloidLibrary'. Minimum required is 19.1.0" even tough SDK Build Tools revison 19.1.0 (and higer) are all installed. I also looked in every possible gradle file and I haven't been able to found any reference to numbers 18.1.0 nor 19.1.0

I don't know if there is an issue with configuration of my parent project or the issue arises from the fact that this project was developed in Eclipse and has a different file structure. When I create a new project I set the minSDK to 12 since USB Host mode is only part of Android 3.1+.

It would be nice if there would be a tutorial for importing into Android Studio since it is now the official IDE. I am willing to create a tutorial with screenshots and everything, it's just I cannot resolve the problem.

Any help is much appreciated.

@Lauszus
Copy link
Contributor

Lauszus commented Apr 30, 2015

@jakadirnbek note that #15 solves this issue.

@ghost
Copy link
Author

ghost commented Apr 30, 2015

It kind of works but now I get other errors. I am not sure if there is a problem with my configuration or it is the library.

C:\Users\Jaka\AndroidStudioProjects\PhysicaloidArduinov1\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\22.1.1\res\values-v21\values.xml
Error:(1) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material'.
Error:(1) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Body1'.
Error:(1) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Body2'.
Error:(1) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Button'.
Error:(1) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Caption'.
Error:(1) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Display1'.
Error:(1) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Display2'.
Error:(1) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Display3'.
Error:(1) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Display4'.
Error:(1) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Headline'.
Error:(1) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Inverse'.
Error:(1) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Large'.
Error:(1) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Large.Inverse'.
Error:(1) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.PopupMenu.Large'.
Error:(1) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.PopupMenu.Small'.
Error:(1) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Medium'.
Error:(1) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Medium.Inverse'.
Error:(1) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Menu'.
Error:(1) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.SearchResult.Subtitle'.
Error:(1) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.SearchResult.Title'.
Error:(1) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Small'.
Error:(1) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Small.Inverse'.
Error:(1) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Subhead'.
Error:(1) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Title'.
Error:(1) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Menu'.
Error:(1) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Subtitle'.
Error:(1) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Subtitle.Inverse'.
Error:(1) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Title'.
Error:(1) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Title.Inverse'.
Error:(1) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionMode.Subtitle'.
Error:(1) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionMode.Title'.
Error:(1) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.PopupMenu.Large'.
Error:(1) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.PopupMenu.Small'.
Error:(1) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Button'.
Error:(1) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.TextView.SpinnerItem'.
Error:(1) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Subtitle'.
Error:(1) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Title'.
Error:(1) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionBar.TabText'.
Error:(1) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionBar.TabView'.
Error:(1) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton'.
Error:(1) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton.CloseMode'.
Error:(1) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton.Overflow'.
Error:(1) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.AutoCompleteTextView'.
Error:(1) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Button'.
Error:(1) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Button.Borderless'.
Error:(1) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Button.Borderless.Colored'.
Error:(1) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Button.Small'.
Error:(1) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ButtonBar'.
Error:(1) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.CompoundButton.CheckBox'.
Error:(1) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.CompoundButton.RadioButton'.
Error:(1) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.DropDownItem.Spinner'.
Error:(1) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Light.ActionBar.TabText'.
Error:(1) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Light.ActionBar.TabText'.
Error:(1) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Light.ActionBar.TabView'.
Error:(1) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Light.PopupMenu'.
Error:(211, 21) No resource found that matches the given name: attr 'android:overlapAnchor'.
Error:(1) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ListPopupWindow'.
Error:(1) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ListView'.
Error:(1) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ListView.DropDown'.
Error:(1) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.PopupMenu'.
Error:(211, 21) No resource found that matches the given name: attr 'android:overlapAnchor'.
Error:(1) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ProgressBar'.
Error:(1) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ProgressBar.Horizontal'.
Error:(1) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.RatingBar'.
Error:(1) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Spinner'.
Error:(1) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Spinner'.
Error:(1) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Spinner.Underlined'.
Error:(1) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.TextView.SpinnerItem'.
Error:(1) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Toolbar.Button.Navigation'.
Error:(1) Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Material'.
Error:(1) Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Material.Light'.
Error:(119, 21) No resource found that matches the given name: attr 'android:colorAccent'.
Error:(123, 21) No resource found that matches the given name: attr 'android:colorButtonNormal'.
Error:(121, 21) No resource found that matches the given name: attr 'android:colorControlActivated'.
Error:(122, 21) No resource found that matches the given name: attr 'android:colorControlHighlight'.
Error:(120, 21) No resource found that matches the given name: attr 'android:colorControlNormal'.
Error:(117, 21) No resource found that matches the given name: attr 'android:colorPrimary'.
Error:(118, 21) No resource found that matches the given name: attr 'android:colorPrimaryDark'.
Error:(119, 21) No resource found that matches the given name: attr 'android:colorAccent'.
Error:(123, 21) No resource found that matches the given name: attr 'android:colorButtonNormal'.
Error:(121, 21) No resource found that matches the given name: attr 'android:colorControlActivated'.
Error:(122, 21) No resource found that matches the given name: attr 'android:colorControlHighlight'.
Error:(120, 21) No resource found that matches the given name: attr 'android:colorControlNormal'.
Error:(117, 21) No resource found that matches the given name: attr 'android:colorPrimary'.
Error:(118, 21) No resource found that matches the given name: attr 'android:colorPrimaryDark'.
Error:(119, 21) No resource found that matches the given name: attr 'android:colorAccent'.
Error:(123, 21) No resource found that matches the given name: attr 'android:colorButtonNormal'.
Error:(121, 21) No resource found that matches the given name: attr 'android:colorControlActivated'.
Error:(122, 21) No resource found that matches the given name: attr 'android:colorControlHighlight'.
Error:(120, 21) No resource found that matches the given name: attr 'android:colorControlNormal'.
Error:(117, 21) No resource found that matches the given name: attr 'android:colorPrimary'.
Error:(118, 21) No resource found that matches the given name: attr 'android:colorPrimaryDark'.
Error:(126, 21) No resource found that matches the given name: attr 'android:windowElevation'.
Error:(119, 21) No resource found that matches the given name: attr 'android:colorAccent'.
Error:(123, 21) No resource found that matches the given name: attr 'android:colorButtonNormal'.
Error:(121, 21) No resource found that matches the given name: attr 'android:colorControlActivated'.
Error:(122, 21) No resource found that matches the given name: attr 'android:colorControlHighlight'.
Error:(120, 21) No resource found that matches the given name: attr 'android:colorControlNormal'.
Error:(117, 21) No resource found that matches the given name: attr 'android:colorPrimary'.
Error:(118, 21) No resource found that matches the given name: attr 'android:colorPrimaryDark'.
Error:(126, 21) No resource found that matches the given name: attr 'android:windowElevation'.
Error:Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Users\Jaka\AppData\Local\Android\android-sdk\build-tools\19.1.0\aapt.exe'' finished with non-zero exit value 1
Information:BUILD FAILED

@Lauszus
Copy link
Contributor

Lauszus commented Apr 30, 2015

You need to download the newest build tools: 22.0.1.

@ghost
Copy link
Author

ghost commented May 4, 2015

I reinstalled everything and now it works.. thanks :)

@ghost ghost closed this as completed May 4, 2015
This issue was closed.
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