yixia / VitamioBundle

Vitamio for Android
http://www.vitamio.org/en/
Other
5.27k stars 2.07k forks source link

Can't build example with gradle #145

Closed catbaxter closed 10 years ago

catbaxter commented 10 years ago

If I run gradle build from the command line, I got the following error:

:vitamio-sample:lint Ran lint on variant release: 14 issues found Ran lint on variant debug: 14 issues found Wrote HTML report to file:/E:/8/VitamioBundle-master/vitamio-sample/build/lint-results.html Wrote XML report to E:\8\VitamioBundle-master\vitamio-sample\build\lint-results.xml :vitamio-sample:lint FAILED

FAILURE: Build failed with an exception.

The first error in lint-results.html:

../AndroidManifest.xml:61: Class referenced in the manifest, io.vov.vitamio.demo.VideoSubtitleDemo, was not found in the project or the libraries

The second error is:

../res/values/styles.xml:4: android:windowActionBar requires API level 11 (current min is 7) 1 2 3

crossle commented 10 years ago

What's your Gradle version? I used Gradle 1.12, build success. or change min sdk version to 11 and try.

catbaxter commented 10 years ago

I use the version 1.12. If I change min sdk version to 11 - It fixes the second error, but the first still exists:

../AndroidManifest.xml:61: Class referenced in the manifest, io.vov.vitamio.demo.VideoSubtitleDemo, was not found in the project or the libraries

crossle commented 10 years ago

You can see the error line, what's wrong.

catbaxter commented 10 years ago

Bingo! Please fix the AndroidManifest.xml line 61 and min sdk version too :)

crossle commented 10 years ago

I used Gradle, it's build OK. I dont known why you have this error.

catbaxter commented 10 years ago

I see. But there isn't the class io.vov.vitamio.demo.VideoSubtitleDemo referenced in the manifest - is it ok for you? Anyway, I'll check it on the second PC.

crossle commented 10 years ago

OK, Thanks, I deleted VideoSubtitleDemo

catbaxter commented 10 years ago

The second error is still exist. Tested on home PC (win7 x64, gradle 1.12):

../res/values/styles.xml:4: android:windowActionBar requires API level 11 (current min is 7)

crossle commented 10 years ago

OK