rezac 13 ارسال شده در 30 بهمن، ۱۳۹۷ اشتراک گذاری ارسال شده در 30 بهمن، ۱۳۹۷ سلام دوستان. من هنگام لود یک پروژه قدیمی در اندروید استودیو با این خطا مواجه شدم: Android resource linking failed و از فایل values.xml خطا گرفته و خطا مربوط به این کدهایی که مشخص کردم هست: <?xml version="1.0" encoding="utf-8"?> <resources> <color name="colorAccent">#D81B60</color> <color name="colorPrimary">#008577</color> <color name="colorPrimaryDark">#00574B</color> <string name="app_name">My Application</string> <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> <!-- Customize your theme here. --> ___________________________________________________________________________________ این سه خط <item name="colorPrimary">@color/colorPrimary</item> <item name="colorPrimaryDark">@color/colorPrimaryDark</item> <item name="colorAccent">@color/colorAccent</item> ___________________________________________________________________________________ </style> </resources> متن خطا هم درصورتی که نیاز بود بدونید اینه: Android resource linking failed Output: error: resource style/Theme.AppCompat.Light.DarkActionBar (aka com.example.np.myapplication:style/Theme.AppCompat.Light.DarkActionBar) not found. F:\projects\android Studio\testy\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:9: error: style attribute 'attr/colorPrimary (aka com.example.np.myapplication:attr/colorPrimary)' not found. F:\projects\android Studio\testy\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:10: error: style attribute 'attr/colorPrimaryDark (aka com.example.np.myapplication:attr/colorPrimaryDark)' not found. F:\projects\android Studio\testy\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:11: error: style attribute 'attr/colorAccent (aka com.example.np.myapplication:attr/colorAccent)' not found. error: failed linking references. Command: C:\Users\NP\.gradle\caches\transforms-1\files-1.1\aapt2-3.2.1-4818971-windows.jar\516d0ba81fb194b738ad96d8201bfccf\aapt2-3.2.1-4818971-windows\aapt2.exe link -I\ E:\android-SDK\platforms\android-27\android.jar\ --manifest\ F:\projects\android Studio\testy\app\build\intermediates\merged_manifests\debug\processDebugManifest\merged\AndroidManifest.xml\ -o\ F:\projects\android Studio\testy\app\build\intermediates\processed_res\debug\processDebugResources\out\resources-debug.ap_\ -R\ @F:\projects\android Studio\testy\app\build\intermediates\incremental\processDebugResources\resources-list-for-resources-debug.ap_.txt\ --auto-add-overlay\ --java\ F:\projects\android Studio\testy\app\build\generated\not_namespaced_r_class_sources\debug\processDebugResources\r\ --custom-package\ com.example.np.myapplication\ -0\ apk\ --preferred-density\ hdpi\ --no-version-vectors Daemon: AAPT2 aapt2-3.2.1-4818971-windows Daemon #0 لطفا راهنمایی کنید لینک ارسال به اشتراک گذاری در سایت های دیگر تنظیمات بیشتر اشتراک گذاری ...
سوال
rezac 13
سلام دوستان.
من هنگام لود یک پروژه قدیمی در اندروید استودیو با این خطا مواجه شدم:
Android resource linking failed
و از فایل values.xml خطا گرفته و خطا مربوط به این کدهایی که مشخص کردم هست:
متن خطا هم درصورتی که نیاز بود بدونید اینه:
Android resource linking failed Output: error: resource style/Theme.AppCompat.Light.DarkActionBar (aka com.example.np.myapplication:style/Theme.AppCompat.Light.DarkActionBar) not found. F:\projects\android Studio\testy\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:9: error: style attribute 'attr/colorPrimary (aka com.example.np.myapplication:attr/colorPrimary)' not found. F:\projects\android Studio\testy\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:10: error: style attribute 'attr/colorPrimaryDark (aka com.example.np.myapplication:attr/colorPrimaryDark)' not found. F:\projects\android Studio\testy\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:11: error: style attribute 'attr/colorAccent (aka com.example.np.myapplication:attr/colorAccent)' not found. error: failed linking references. Command: C:\Users\NP\.gradle\caches\transforms-1\files-1.1\aapt2-3.2.1-4818971-windows.jar\516d0ba81fb194b738ad96d8201bfccf\aapt2-3.2.1-4818971-windows\aapt2.exe link -I\ E:\android-SDK\platforms\android-27\android.jar\ --manifest\ F:\projects\android Studio\testy\app\build\intermediates\merged_manifests\debug\processDebugManifest\merged\AndroidManifest.xml\ -o\ F:\projects\android Studio\testy\app\build\intermediates\processed_res\debug\processDebugResources\out\resources-debug.ap_\ -R\ @F:\projects\android Studio\testy\app\build\intermediates\incremental\processDebugResources\resources-list-for-resources-debug.ap_.txt\ --auto-add-overlay\ --java\ F:\projects\android Studio\testy\app\build\generated\not_namespaced_r_class_sources\debug\processDebugResources\r\ --custom-package\ com.example.np.myapplication\ -0\ apk\ --preferred-density\ hdpi\ --no-version-vectors Daemon: AAPT2 aapt2-3.2.1-4818971-windows Daemon #0
لطفا راهنمایی کنید
لینک ارسال
به اشتراک گذاری در سایت های دیگر
0 پاسخ به این سوال تاکنون داده شده است
ارسالهای توصیه شده
بایگانی شده
این موضوع بایگانی و قفل شده و دیگر امکان ارسال پاسخ نیست.