Tôi có nhật thực, công cụ sdk android 22.6.3, công cụ nền tảng android 19.0.1 và tôi đặt cả hai dự án này API 19 android 4.4.2.
Tôi đã có thể biên dịch và chạy hellocompute (từ các mẫu của android 19) và muốn thay đổi nó thành android v8 hỗ trợ mọi thứ.
bước sau làm việc cho tôi:
1.set android xây dựng mục tiêu 4.4.2 api 19.
2.Add "rendersrcipt-v8.jar" để các thư viện trong android xây dựng con đường
3.in project.properties thiết lập những thứ như
"target=android-19
renderscript.target=19
renderscript.support.mode=true
sdk.buildtools=19.0.3"
4.Comment ra các dòng nhập khẩu sau:
import android.renderscript.RenderScript;
import android.renderscript.Allocation;
và nhập
import android.support.v8.renderscript.*;
5.clean dự án và xây dựng lại.
Đúng, cảm ơn bạn đã cập nhật câu trả lời. Bắt buộc I/O nói chuyện - https://developers.google.com/events/io/sessions/331954522 – Delyan
Chọn hỗ trợ v8 từ "sdk \ build-tools \ APILEVEL \ renderscript \ lib \ renderscript-v8.jar" ở cấp api ở trên 18 –