POST
|
Thanks Alexander. I may be happy too early, although 10.2.X can be used, but not what I want. I want 100.0, but synchronization failed again.I can download aar use url "http://dl.bintray.com/esri/arcgis/com/esri/arcgisruntime/arcgis-android/100.0.0/ " ,but it is failed when i use maven.I try to do it in other compter, it is failed too. in module buid.gradle: dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.android.support:design:25.3.1'
compile 'com.android.support:support-vector-drawable:25.3.1'
// compile 'com.esri.arcgis.android:arcgis-android:10.2.8'
compile 'com.esri.arcgisruntime:arcgis-android:100.0.0'
// compile files('libs/arcgis-android-api.jar')
} in project build.gradle: allprojects {
repositories {
jcenter()
maven {
url 'http://dl.bintray.com/esri/arcgis'
}
}
} I am in china, I open the vpn when sync gradle. When i use SDK of libs, there is this "java.lang.NoClassDefFoundError: Failed resolution of: Lcom/esri/arcgisruntime/R$drawable;" like this : NoClassDefFoundError - custom plugin · Issue #894 · eclipsesource/tabris-js · GitHub
... View more
05-26-2017
12:07 AM
|
0
|
1
|
165
|
POST
|
Oh , my god ! I sorry ,I just think it is same of the Mapview. I think i should take a break。haha~
... View more
05-25-2017
07:25 AM
|
0
|
3
|
1203
|
POST
|
Sorry , I forgot the password for GitHub.It has been bothering me for a long time.Here is all my code: this is mainActivity.java: ------------------------------------------------------------------------------------------------------------------------------------- public class MainActivity extends AppCompatActivity {
private MapView mapView;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
mapView=(MapView)findViewById(R.id.mapview);
}
} this is module build.gradle: -------------------------------------------------------------------------------------------------------------------------------------- apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion "25.0.2"
packagingOptions{
exclude 'META-INF/LGPL2.1'
exclude 'META-INF/LICENSE'
exclude 'META-INF/NOTICE'
}
defaultConfig {
applicationId "com.example.hjy.testmapview"
minSdkVersion 15
targetSdkVersion 25
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
// sourceSets {
// main {
// jniLibs.srcDirs = ['libs']
// }
// }
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.android.support:design:25.3.1'
compile 'com.android.support:support-vector-drawable:25.3.1'
compile 'com.esri.arcgis.android:arcgis-android:10.2.8'
// compile files('libs/arcgis-android-api.jar')
// compile files('libs/gson-2.3.1.jar')
}
this is project build.gradle: -------------------------------------------------------------------------------------------------------------------------------------------------------------- buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.2'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
maven {
url 'http://dl.bintray.com/esri/arcgis'
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
} this is main.xml: ----------------------------------------------------------------------------------------------------------------------------------------------------------------- <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/container"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.example.hjy.testmapview.MainActivity">
<com.esri.arcgisruntime.mapping.view.MapView
android:id="@+id/mapview"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
</RelativeLayout>
... View more
05-25-2017
06:58 AM
|
0
|
5
|
1203
|
POST
|
Hi, Alexander . Thank fot you. The files(app.rar and build.rar) is the module I created. I install the SDK. The imge file (download_sdk.png)is downloaded SDK. I tried many ways, but have no effect .
... View more
05-24-2017
07:23 PM
|
0
|
7
|
1203
|
POST
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/activity_main"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.example.hjy.myapplication.MainActivity">
<com.esri.arcgisruntime.mapping.view.MapView
android:id="@+id/mapview"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
</RelativeLayout>
this is my layout.Thanks for your reply
... View more
05-23-2017
06:28 PM
|
0
|
9
|
1203
|
POST
|
Caused by: android.view.InflateException: Binary XML file line #9: Binary XML file line #9: Error inflating class com.esri.arcgisruntime.mapping.view.MapView Caused by: android.view.InflateException: Binary XML file line #9: Error inflating class com.esri.arcgisruntime.mapping.view.MapView Caused by: java.lang.reflect.InvocationTargetException at java.lang.reflect.Constructor.newInstance0(Native Method) at java.lang.reflect.Constructor.newInstance(Constructor.java:430) at android.view.LayoutInflater.createView(LayoutInflater.java:656) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:798) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:738) at android.view.LayoutInflater.rInflate(LayoutInflater.java:869) at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:832) at android.view.LayoutInflater.inflate(LayoutInflater.java:518) at android.view.LayoutInflater.inflate(LayoutInflater.java:426) I am downloaded SDK100.0.0 for android ,and add to lib . I created a xml , but MapView throw InflateException. So i try to install the SDK that According to the official recommendation,but sync failed again,"Failed to resolve: com.esri.arcgisruntime:arcgis-android:100.0.0". I will be cry. Who can talk me it is why? thanks.
... View more
05-23-2017
05:32 AM
|
0
|
11
|
2594
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|