質問編集履歴

3

修正

2016/07/21 05:27

投稿

tkmm
tkmm

スコア17

test CHANGED
File without changes
test CHANGED
@@ -16,10 +16,54 @@
16
16
 
17
17
 
18
18
 
19
- Error:Execution failed for task ':app:mergeDebugResources'.
19
+ public class MainActivity extends AppCompatActivity {
20
20
 
21
+ Bitmap bitmap;
22
+
23
+ int pixels[],r[], g[], b[] ;
24
+
25
+ int i,j,pixel,width,height;
26
+
27
+ @Override
28
+
21
- > Some file crunching failed, see logs for details
29
+ protected void onCreate(Bundle savedInstanceState) {
30
+
31
+ super.onCreate(savedInstanceState);
32
+
33
+ setContentView(new BitmapTest2View(this));
34
+
35
+ }
36
+
37
+
38
+
39
+ class BitmapTest2View extends View {
40
+
41
+ public BitmapTest2View(Context context) {
42
+
43
+ super(context);
22
44
 
23
45
 
24
46
 
47
+ bitmap = BitmapFactory.decodeResource(getResources(), R.drawable.icon);
48
+
49
+
50
+
51
+ if (!bitmap.isMutable()) {
52
+
53
+ bitmap = bitmap.copy(Bitmap.Config.ARGB_8888, true);
54
+
55
+ }
56
+
57
+
58
+
59
+ width = bitmap.getWidth();
60
+
25
- となっています( ;∀;)
61
+ height = bitmap.getHeight();
62
+
63
+ pixels = new int[width * height];
64
+
65
+ r = new int[width * height];
66
+
67
+ g = new int[width * height];
68
+
69
+ b = new int[width * height];

2

追記

2016/07/21 05:27

投稿

tkmm
tkmm

スコア17

test CHANGED
File without changes
test CHANGED
@@ -12,6 +12,10 @@
12
12
 
13
13
 
14
14
 
15
+
16
+
17
+
18
+
15
19
  Error:Execution failed for task ':app:mergeDebugResources'.
16
20
 
17
21
  > Some file crunching failed, see logs for details

1

追記

2016/07/21 02:44

投稿

tkmm
tkmm

スコア17

test CHANGED
File without changes
test CHANGED
@@ -7,3 +7,15 @@
7
7
  cannot resolve symbol Rと出てしまいます。
8
8
 
9
9
  どうしたらよいかわかりません( ;∀;)
10
+
11
+
12
+
13
+
14
+
15
+ Error:Execution failed for task ':app:mergeDebugResources'.
16
+
17
+ > Some file crunching failed, see logs for details
18
+
19
+
20
+
21
+ となっています( ;∀;)