2
2
3
3
/*
4
4
Part of the Processing project - http://processing.org
5
-
6
5
Copyright (c) 2016-21 The Processing Foundation
7
6
8
7
This program is free software; you can redistribute it and/or modify
9
8
it under the terms of the GNU General Public License version 2
10
9
as published by the Free Software Foundation.
11
-
12
10
This program is distributed in the hope that it will be useful,
13
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
14
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
13
GNU General Public License for more details.
16
-
17
14
You should have received a copy of the GNU General Public License
18
15
along with this program; if not, write to the Free Software Foundation,
19
16
Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
@@ -253,12 +250,16 @@ private void getDownloadUrls(UrlHolder urlHolder,
253
250
XPathExpression expr ;
254
251
NodeList remotePackages ;
255
252
256
- if (abi .equals ("arm" ))
253
+ if (abi .equals ("arm" )) {
257
254
expr = xpath .compile ("//remotePackage[contains(@path, '" + AVD .TARGET_SDK_ARM + "')" +
258
255
"and contains(@path, \" armeabi-v7a\" )]" );
259
- else
256
+ } else if (abi .equals ("arm64-v8a" )) {
257
+ expr = xpath .compile ("//remotePackage[contains(@path, '" + AndroidBuild .TARGET_SDK + "')" +
258
+ "and contains(@path, \" arm64-v8a\" )]" );
259
+ } else {
260
260
expr = xpath .compile ("//remotePackage[contains(@path, '" + AndroidBuild .TARGET_SDK + "')" +
261
261
"and contains(@path, \" x86\" )]" );
262
+ }
262
263
263
264
if (wear ) {
264
265
Document docSysImgWear = db .parse (new URL (repositoryUrl ).openStream ());
@@ -561,4 +562,4 @@ public void actionPerformed(ActionEvent actionEvent) {
561
562
setResizable (false );
562
563
setLocationRelativeTo (editor );
563
564
}
564
- }
565
+ }
0 commit comments