Start a new topic

attach google map places with POIs

image

I have created android app till this image in android studio using javascript API. I want POIs that contain google map places instead of this randon POIs. What should I do?



Can you please send me ur email address so that we can talk there.

1 person likes this

Which one did you use? The SDK samples or from scratch? 


Can you send me your gradle file? And the print of the installed SDK tools?


yes, I have that line duplicated :/ but without it, the same error, android-26 not found.

in your gradle file this line is two times in dependencies
compile 'com.android.support:appcompat-v7:26.1.0'

 make it one time and then try again.

I also used this
which steps you have followed to create this app in android studio?Is there Any reference?

 

If I create a new project, the compileSdkVersion 26 builds successfully. I don't understand why in the sdk-examples it doesn't work :/

I have this: 

image




Did you setup from scratch or did you used the Wikitude-sdk-samples folder from the SDK?

 

 

 

I am trying to do it in both ways. But I don't have advances:/ 

You should check SDK TOOLS instead of SDK PLATFORM

 

image



but it is installed

Right now, it is :


Error:A problem occurred configuring project ':wikitude-sdk-samples'.

> Failed to find target with hash string 'android-26' in: C:\Sdk




this is my build.gradle :



apply plugin: 'com.android.application'

android {

compileSdkVersion 26
buildToolsVersion commonBuildToolsVersion

defaultConfig {
applicationId "com.wikitude.sdksamples"
minSdkVersion 15
targetSdkVersion 26
versionName "7.2.1"
versionCode 7210
}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
debuggable true
}
}

applicationVariants.all { variant ->
variant.outputs.each { output ->
def outputFile = output.outputFile
if (outputFile != null && outputFile.name.endsWith('.apk')) {
def fileName = "wikitude-sdk-samples-" + variant.buildType.name + ".apk"
output.outputFile = new File(outputFile.parent, fileName)
}
}
}

flavorDimensions "arch"

productFlavors {
arm7 {
dimension "arch"
}
arm8 {
dimension "arch"
}
x86 {
dimension "arch"
}
allarchs {
dimension "arch"
}
}
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile (name: 'wikitudesdk', ext :'aar')
compile 'com.android.support:appcompat-v7:26.1.0'
compile 'com.android.support.constraint:constraint-layout:1.0.2'

arm7Compile project(path: ':plugins', configuration: 'arm7Release')
arm8Compile project(path: ':plugins', configuration: 'arm8Release')
x86Compile project(path: ':plugins', configuration: 'x86Release')
allarchsCompile project(path: ':plugins', configuration: 'allarchsRelease')

compile "com.android.support:appcompat-v7:26.1.0"
}

repositories {
flatDir {
dirs 'libs'
}
}


What error are you getting joel carneiro?

1 person likes this

bhoomi vaghasiya can you help me to make the setup the project in the Android Studio? I always have errors in gradle. How did you do that?


PS: I also want to do an app like yours, using the map POI.


Thanks in advance!

Are you talking about web service?
Thanks for your help
Login or Signup to post a comment