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

Error while creating a build. #185

Closed
suvDroid opened this issue Feb 13, 2018 · 9 comments
Closed

Error while creating a build. #185

suvDroid opened this issue Feb 13, 2018 · 9 comments

Comments

@suvDroid
Copy link

suvDroid commented Feb 13, 2018

Information:Gradle tasks [:app:generateNoGethNoFirebaseForFDroidDebugSources, :app:generateNoGethNoFirebaseForFDroidDebugAndroidTestSources, :app:mockableAndroidJar]
C:\Users\Lenovo\.gradle\caches\transforms-1\files-1.1\preference-v14-26.1.0.aar\dbdc8071c9827084d6e3ae5e74884db6\res\values\values.xml
Error:(37, 5) error: style attribute 'attr/adjustable (aka org.walleth.test:attr/adjustable)' not found.
Error:(37, 5) error: style attribute 'attr/showSeekBarValue (aka org.walleth.test:attr/showSeekBarValue)' not found.
Error:(42, 5) error: resource string/v7_preference_on (aka org.walleth.test:string/v7_preference_on) not found.
Error:(42, 5) error: resource string/v7_preference_off (aka org.walleth.test:string/v7_preference_off) not found.
Error:(59, 5) error: style attribute 'attr/switchPreferenceStyle (aka org.walleth.test:attr/switchPreferenceStyle)' not found.
Error:resource style/Preference.Category (aka org.walleth.test:style/Preference.Category) not found.
Error:resource style/Preference.CheckBoxPreference (aka org.walleth.test:style/Preference.CheckBoxPreference) not found.
Error:resource style/Preference.DialogPreference.EditTextPreference (aka org.walleth.test:style/Preference.DialogPreference.EditTextPreference) not found.
Error:resource style/Preference.DialogPreference (aka org.walleth.test:style/Preference.DialogPreference) not found.
Error:resource style/Preference.DropDown (aka org.walleth.test:style/Preference.DropDown) not found.
Error:resource style/Preference.Information (aka org.walleth.test:style/Preference.Information) not found.
Error:resource style/Preference (aka org.walleth.test:style/Preference) not found.
Error:resource style/Preference.PreferenceScreen (aka org.walleth.test:style/Preference.PreferenceScreen) not found.
Error:resource style/Preference.SeekBarPreference (aka org.walleth.test:style/Preference.SeekBarPreference) not found.
Error:resource style/Preference (aka org.walleth.test:style/Preference) not found.
Error:resource style/Preference.SwitchPreferenceCompat (aka org.walleth.test:style/Preference.SwitchPreferenceCompat) not found.
Error:resource style/PreferenceFragment (aka org.walleth.test:style/PreferenceFragment) not found.
Error:resource style/PreferenceFragmentList (aka org.walleth.test:style/PreferenceFragmentList) not found.
Error:resource style/PreferenceThemeOverlay (aka org.walleth.test:style/PreferenceThemeOverlay) not found.
E:\suv\Projects\Walleth\walleth\app\build\intermediates\incremental\mergeNoGethNoFirebaseForFDroidDebugAndroidTestResources\merged.dir\values\values.xml
Error:(116) style attribute 'attr/adjustable (aka org.walleth.test:attr/adjustable)' not found.
Error:(117) style attribute 'attr/showSeekBarValue (aka org.walleth.test:attr/showSeekBarValue)' not found.
Error:(121) resource string/v7_preference_on (aka org.walleth.test:string/v7_preference_on) not found.
Error:(122) resource string/v7_preference_off (aka org.walleth.test:string/v7_preference_off) not found.
Error:(138) style attribute 'attr/switchPreferenceStyle (aka org.walleth.test:attr/switchPreferenceStyle)' not found.
Error:java.util.concurrent.ExecutionException: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
Error:java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
Error:com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
Error:Execution failed for task ':app:processNoGethNoFirebaseForFDroidDebugAndroidTestResources'.
> Failed to execute aapt
Information:BUILD FAILED in 1m 4s
Information:28 errors
Information:0 warnings
Information:See complete output in console
@ligi
Copy link
Member

ligi commented Feb 13, 2018

Do you build directly from master? Strange because at least the CI, @friedger, f-droid and I can build - not sure what is happening there. Please provide more information.

@ligi
Copy link
Member

ligi commented Feb 13, 2018

Or did you perhaps update to the build-plugin 3.0.0? This project does not yet build with 3.0.0 - if so this is a duplicate of #87 and should be closed

@suvDroid
Copy link
Author

suvDroid commented Feb 13, 2018

Yes, I did a git clone from master. The plugin version is 3.0.1, If this version is not supported then which version i should use and how, Please explain a bit.

@ligi
Copy link
Member

ligi commented Feb 13, 2018

The plugin version is 3.0.1, If this version is not supported then which version i should use

you need to use build-plugin 2.3.3

and how

just do not change it - master still uses 2.3.3 - you can use Android Studio 3 - just do not click yes when it asks you to update the build-plugin

you are also very welcome to work on #87 - would love to use the new build plugin at some point - just currently I have some problems with it.

@ligi ligi closed this as completed Feb 13, 2018
@suvDroid
Copy link
Author

suvDroid commented Feb 13, 2018

Ok thanks :), I would love to work for #87, sharing up the issues associated with it will be helpful.

@ligi
Copy link
Member

ligi commented Feb 13, 2018

you just posted one of the issues with it ;-)
But that might be the easier one to solve - my main blocker currently is that spoon and the plugin does not yet work with 3.X - spoon 2 should solve this but is not yet released - needs some experimentation which did not yet have priority for me

@suvDroid
Copy link
Author

ok thanks for sharing the issue. Will try to get some solution :)

@ligi
Copy link
Member

ligi commented Feb 13, 2018

have fun!

@armandRobled
Copy link

Information:Gradle tasks [:app:generateNoGethNoFirebaseForFDroidDebugSources, :app:generateNoGethNoFirebaseForFDroidDebugAndroidTestSources, :app:mockableAndroidJar]
C:\Users\Lenovo\.gradle\caches\transforms-1\files-1.1\preference-v14-26.1.0.aar\dbdc8071c9827084d6e3ae5e74884db6\res\values\values.xml
Error:(37, 5) error: style attribute 'attr/adjustable (aka org.walleth.test:attr/adjustable)' not found.
Error:(37, 5) error: style attribute 'attr/showSeekBarValue (aka org.walleth.test:attr/showSeekBarValue)' not found.
Error:(42, 5) error: resource string/v7_preference_on (aka org.walleth.test:string/v7_preference_on) not found.
Error:(42, 5) error: resource string/v7_preference_off (aka org.walleth.test:string/v7_preference_off) not found.
Error:(59, 5) error: style attribute 'attr/switchPreferenceStyle (aka org.walleth.test:attr/switchPreferenceStyle)' not found.
Error:resource style/Preference.Category (aka org.walleth.test:style/Preference.Category) not found.
Error:resource style/Preference.CheckBoxPreference (aka org.walleth.test:style/Preference.CheckBoxPreference) not found.
Error:resource style/Preference.DialogPreference.EditTextPreference (aka org.walleth.test:style/Preference.DialogPreference.EditTextPreference) not found.
Error:resource style/Preference.DialogPreference (aka org.walleth.test:style/Preference.DialogPreference) not found.
Error:resource style/Preference.DropDown (aka org.walleth.test:style/Preference.DropDown) not found.
Error:resource style/Preference.Information (aka org.walleth.test:style/Preference.Information) not found.
Error:resource style/Preference (aka org.walleth.test:style/Preference) not found.
Error:resource style/Preference.PreferenceScreen (aka org.walleth.test:style/Preference.PreferenceScreen) not found.
Error:resource style/Preference.SeekBarPreference (aka org.walleth.test:style/Preference.SeekBarPreference) not found.
Error:resource style/Preference (aka org.walleth.test:style/Preference) not found.
Error:resource style/Preference.SwitchPreferenceCompat (aka org.walleth.test:style/Preference.SwitchPreferenceCompat) not found.
Error:resource style/PreferenceFragment (aka org.walleth.test:style/PreferenceFragment) not found.
Error:resource style/PreferenceFragmentList (aka org.walleth.test:style/PreferenceFragmentList) not found.
Error:resource style/PreferenceThemeOverlay (aka org.walleth.test:style/PreferenceThemeOverlay) not found.
E:\suv\Projects\Walleth\walleth\app\build\intermediates\incremental\mergeNoGethNoFirebaseForFDroidDebugAndroidTestResources\merged.dir\values\values.xml
Error:(116) style attribute 'attr/adjustable (aka org.walleth.test:attr/adjustable)' not found.
Error:(117) style attribute 'attr/showSeekBarValue (aka org.walleth.test:attr/showSeekBarValue)' not found.
Error:(121) resource string/v7_preference_on (aka org.walleth.test:string/v7_preference_on) not found.
Error:(122) resource string/v7_preference_off (aka org.walleth.test:string/v7_preference_off) not found.
Error:(138) style attribute 'attr/switchPreferenceStyle (aka org.walleth.test:attr/switchPreferenceStyle)' not found.
Error:java.util.concurrent.ExecutionException: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
Error:java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
Error:com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
Error:Execution failed for task ':app:processNoGethNoFirebaseForFDroidDebugAndroidTestResources'.
> Failed to execute aapt
Information:BUILD FAILED in 1m 4s
Information:28 errors
Information:0 warnings
Information:See complete output in console

@suvDroid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants