erickou1124 / ksoap2-android

Automatically exported from code.google.com/p/ksoap2-android
0 stars 0 forks source link

Ksoap2 library soapobject does not exist #190

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
i'm using Android studio 0.3.1 and i made App:

1.import ksoap2 library to app as jar 
2.import library object or function in mainclass like (            SoapObject 
request = new SoapObject("http://website.com/page","methode");)
3.build project

What is the expected output? What do you see instead?
a) Gradle: Execution failed for task ':App:compileDebug'.
> Compilation failed; see the compiler error output for details.

b)Gradle: error: package org.ksoap2 does not exist
Gradle: error: package org.ksoap2.serialization does not exist
Gradle: error: package org.ksoap2.transport does not exist

c)Gradle: error: cannot find symbol class SoapObject
Gradle: error: cannot find symbol class SoapSerializationEnvelope
Gradle: error: cannot find symbol class HttpTransportSE

What version of the product are you using? On what operating system?

ksoap2 3.2.0 

Please provide any additional information below.

i tried editing this code at my build.gradle :

apply plugin: 'android'

buildscript {
    repositories {
        mavenCentral()
        maven { url 'http://ksoap2-android.googlecode.com/svn/m2-repo' }
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:0.8.+'
        classpath 'com.google.code.ksoap2-android:ksoap2-android:3.2.0'
    }
}

repositories {
    maven { url 'http://ksoap2-android.googlecode.com/svn/m2-repo' }
}

android {
    compileSdkVersion 19
    buildToolsVersion "19.0.1"

    defaultConfig {
        minSdkVersion 15
        targetSdkVersion 19
        versionCode 1
        versionName "1.0"
    }
    release {
        runProguard false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
    }
}

dependencies {

    compile 'com.google.code.ksoap2-android:ksoap2-android:3.2.0'

}

but it just gave me (copy of error) :

Gradle: A problem occurred evaluating project ':App'.
> Could not create plugin of type 'AppPlugin'.

so ... any ideas ???

Original issue reported on code.google.com by ayman.at...@gmail.com on 7 May 2014 at 1:59

GoogleCodeExporter commented 9 years ago
it said error about java.lang.string and not same type with this . i'm sorry i 
just can't get the error to show again

Original comment by ayman.at...@gmail.com on 7 May 2014 at 2:02

GoogleCodeExporter commented 9 years ago
 release {
        runProguard false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
    }

it's all in this line . could someone tell me what it means and how to fix it 
???
my gradle now is :

buildscript {
    repositories {
        mavenCentral()
        maven { url 'http://ksoap2-android.googlecode.com/svn/m2-repo' }
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:0.6.+'
        classpath 'com.google.code.ksoap2-android:ksoap2-android:3.2.0'
    }
}
apply plugin: 'android'

repositories {
    mavenCentral()

    maven { url 'http://ksoap2-android.googlecode.com/svn/m2-repo' }
}

android {
    compileSdkVersion 19
    buildToolsVersion "19.0.1"

    defaultConfig {
        minSdkVersion 9
        targetSdkVersion 19
        versionCode 1
        versionName "1.0"
    }
    release {
        runProguard false
        proguardFiles getDefaultProguardFile('android.txt'), 'rules.txt'
    }
}

dependencies {
    compile 'com.android.support:appcompat-v8:+'

    compile 'com.google.code.ksoap2-android:ksoap2-android:3.2.0'

}

and my errors are :Gradle: A problem occurred evaluating project ':App'.
> Could not find method release() for arguments 
[build_4qc430k8p6seb9f2i0b1qqfs2e$_run_closure2_closure6@751cc162] on project 
'App'.

Original comment by ayman.at...@gmail.com on 7 May 2014 at 2:40

GoogleCodeExporter commented 9 years ago
This seems like a problem with your gradle build script. I cant help you with 
that and it is not related to ksoap2 directly.

Original comment by mosa...@gmail.com on 8 May 2014 at 4:57