- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在尝试更新应用程序中的一些模块,因此我更改了模块的版本,并通过更改 gradle 版本、构建工具和 android 插件版本修复了构建的一些问题。
无论如何,在那之后我遇到了任务 ':app:compileDebugJavaWithJavac 执行失败的错误,我在网上到处查找它(我什至在这里阅读了有关它的所有问题,但我没有找到任何可以帮助我修复的内容)我现在遇到的问题-我什至也尝试了多种解决方案-)
当我构建和同步我的项目时,我没有收到此错误,但当我尝试运行该项目时,我收到了此错误
模块等级:
buildscript {
repositories {
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
classpath 'io.fabric.tools:gradle:1.+'
}
}
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'
repositories {
maven { url 'https://maven.fabric.io/public' }
}
android {
compileSdkVersion 27
buildToolsVersion "27.0.3"
sourceSets.main {
jniLibs.srcDir 'libs'
jni.srcDirs = [] //disable automatic ndk-build call
}
defaultConfig {
applicationId "com.labayh"
minSdkVersion 17
targetSdkVersion 27
versionCode 22
versionName "1.5.4"
multiDexEnabled true
manifestPlaceholders = [HOCKEYAPP_APP_ID: "5b5787324c7a46f98cdc66acd2404594"]
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
lintOptions {
checkReleaseBuilds false
// Or, if you prefer, you can continue to check for errors in release builds,
// but continue the build even when errors are found:
abortOnError false
}
dexOptions {
javaMaxHeapSize "4g"
}
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation project(':rangeseekbar')
compile('com.twitter.sdk.android:twitter:2.3.1@aar') {
transitive = true;
}
// implementation project(':PayFort')
implementation project(':library')
//implementation files('libs/libjingle_peerconnection.jar')
/*compile('io.socket:socket.io-client:0.7.0') {
exclude group: 'org.json', module: 'json'
}*/
//implementation files('libs/base_java.jar')
implementation project(':FORTSDKv1.4.3')
//noinspection GradleCompatible
implementation 'com.android.support:support-compat:27.1.1'
implementation 'com.github.orangegangsters:swipy:1.2.3@aar'
implementation 'com.android.support:multidex:1.0.3'
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support:design:27.1.1'
implementation 'com.merhold.extensiblepageindicator:extensiblepageindicator:1.0.1'
implementation 'com.android.support:recyclerview-v7:27.1.1'
implementation 'com.android.support:cardview-v7:27.1.1'
implementation 'de.hdodenhof:circleimageview:2.1.0'
implementation 'com.wdullaer:materialdatetimepicker:2.5.0'
implementation 'com.github.bumptech.glide:glide:4.0.0'
implementation 'com.daimajia.swipelayout:library:1.2.0'
implementation 'com.squareup.picasso:picasso:2.5.2'
implementation 'me.leolin:ShortcutBadger:1.1.10@aar'
implementation 'com.facebook.android:facebook-android-sdk:4.18.0'
implementation 'com.github.castorflex.smoothprogressbar:library-circular:1.0.0'
implementation 'net.hockeyapp.android:HockeySDK:5.1.0'
implementation 'com.google.firebase:firebase-database:16.0.1'
implementation 'com.google.firebase:firebase-storage:16.0.1'
implementation 'com.google.firebase:firebase-messaging:17.3.0'
implementation 'com.google.android.gms:play-services-auth:16.0.0'
/*implementation 'com.google.firebase:firebase-messaging:9.6.0'
implementation 'com.google.firebase:firebase-database:9.6.0'
implementation 'com.google.firebase:firebase-storage:9.6.0'*/
implementation 'com.firebaseui:firebase-ui-database:3.3.1'
implementation 'com.mikhaellopez:circularimageview:3.0.2'
implementation 'com.skyfishjy.ripplebackground:library:1.0.1'
//implementation 'com.android.support:support-v4:25.0.0'
implementation 'com.android.support:support-v4:27.1.1'
implementation 'com.nex3z:notification-badge:0.2.0'
implementation 'com.wang.avi:library:2.1.3'
implementation 'com.victor:lib:1.0.1'
implementation 'com.google.code.gson:gson:2.8.0'
implementation 'com.shamanland:fonticon:0.1.8'
implementation 'com.google.guava:guava:23.0'
implementation 'org.bouncycastle:bcprov-jdk16:1.46'
implementation 'commons-codec:commons-codec:1.11'
implementation 'com.google.firebase:firebase-appindexing:16.0.1'
//implementation 'com.google.android.gms:play-services-appindexing:9.6.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.mixpanel.android:mixpanel-android:5.+'
implementation 'com.google.firebase:firebase-core:16.0.3'
//implementation 'com.google.android.gms:play-services-tagmanager-v4-impl:15.0.0'
//implementation 'com.google.android.gms:play-services-tagmanager:15.0.0'
implementation 'com.google.firebase:firebase-core:16.0.3'
implementation 'com.google.firebase:firebase-auth:16.0.3'
implementation 'com.github.dmytrodanylyk.shadow-layout:library:1.0.1'
implementation 'io.intercom.android:intercom-sdk-base:4.0.5'
implementation 'com.kyleduo.switchbutton:library:1.4.4'
testImplementation 'junit:junit:4.12'
implementation 'info.hoang8f:android-segmented:1.0.6'
implementation 'com.appsee:appsee-android:+'
implementation 'com.squareup.retrofit2:retrofit:2.0.2'
implementation 'com.squareup.retrofit2:converter-gson:2.0.2'
implementation 'com.squareup.okhttp3:logging-interceptor:3.2.0'
//noinspection GradleDynamicVersion
implementation 'com.appsflyer:af-android-sdk:4+@aar'
implementation('com.crashlytics.sdk.android:crashlytics:2.9.0@aar') {
transitive = true;
}
implementation 'com.android.installreferrer:installreferrer:1.0'
/*
* record view
*/
implementation 'com.github.safetysystemtechnology:audio-recorder-button:v1.3'
/**
* TokBox and easy permissions
* */
implementation 'pub.devrel:easypermissions:1.3.0'
implementation 'com.opentok.android:opentok-android-sdk:2.14.0'
/**
* ButterKnife
* */
implementation 'com.jakewharton:butterknife:8.8.1'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'
/**
* Calendar
* */
implementation 'com.github.applikeysolutions:cosmocalendar:1.0.4'
// fortsdk new one..
implementation 'com.android.support:multidex:1.0.3'
api project(path: ':FORTSDKv1.4.3')
api 'com.victor:lib:1.0.1'
api 'com.google.code.gson:gson:2.8.0'
api 'com.shamanland:fonticon:0.1.8'
api 'com.android.support:design:27.1.1'
api('com.nispok:snackbar:2.11.+') {
// exclusion is not necessary, but generally a good idea.
exclude group: 'com.google.android', module: 'support-v4'
}
api 'com.google.guava:guava:23.0'
api 'org.bouncycastle:bcprov-jdk16:1.46'
api 'commons-codec:commons-codec:1.11'
}
apply plugin: 'com.google.gms.google-services'
项目 gradle::
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.4'
classpath 'com.google.gms:google-services:4.1.0'
}
}
allprojects {
repositories {
jcenter()
maven {
url "https://maven.google.com" // Google's Maven repository
}
maven { url 'https://tokbox.bintray.com/maven' }
maven {
url "https://jitpack.io"
}
google()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
我的项目设置gradle:
include ':app', ':rangeseekbar', ':library', ':FORTSDKv1.4.3'
我尝试升级的模块是FORTSDK1.4.3(这是新版本)
gradle clean assembleDebug::的输出
> Configure project :app
WARNING: The option 'android.enableAapt2' is deprecated and should not be used anymore.
Use 'android.enableAapt2=true' to remove this warning.
It will be removed at the end of 2018..
WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.
It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
> Configure project :library
WARNING: The option 'android.enableAapt2' is deprecated and should not be used anymore.
Use 'android.enableAapt2=true' to remove this warning.
It will be removed at the end of 2018..
WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.
It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html
WARNING: The specified Android SDK Build Tools version (27.0.0) is ignored, as it is below the minimum supported version (27.0.3) for Android Gradle Plugin 3.1.4.
Android SDK Build Tools 27.0.3 will be used.
To suppress this warning, remove "buildToolsVersion '27.0.0'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.
> Configure project :rangeseekbar
WARNING: The option 'android.enableAapt2' is deprecated and should not be used anymore.
Use 'android.enableAapt2=true' to remove this warning.
It will be removed at the end of 2018..
WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.
It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html
WARNING: Configuration 'testCompile' is obsolete and has been replaced with 'testImplementation' and 'testApi'.
It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html
WARNING: Configuration 'testApi' is obsolete and has been replaced with 'testImplementation'.
It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html
> Task :clean UP-TO-DATE
> Task :app:clean
> Task :library:clean
> Task :rangeseekbar:clean
> Task :app:preBuild UP-TO-DATE
> Task :library:preBuild UP-TO-DATE
> Task :library:preDebugBuild UP-TO-DATE
> Transform FORTSDKv1.4.3.aar (project :FORTSDKv1.4.3) with ExtractAarTransform
> Transform FORTSDKv1.4.3.aar (project :FORTSDKv1.4.3) with ExtractAarTransform
> Transform FORTSDKv1.4.3.aar (project :FORTSDKv1.4.3) with ExtractAarTransform
> Task :library:checkDebugManifest
> Transform 282a617b37c05600dd284dbe60659b77 with AarTransform
> Transform 282a617b37c05600dd284dbe60659b77 with AarTransform
> Transform 282a617b37c05600dd284dbe60659b77 with AarTransform
> Task :library:processDebugManifest
> Task :rangeseekbar:preBuild UP-TO-DATE
> Task :rangeseekbar:preDebugBuild UP-TO-DATE
> Task :rangeseekbar:checkDebugManifest
> Task :rangeseekbar:processDebugManifest
> Task :app:preDebugBuild
> Task :library:compileDebugAidl
> Task :rangeseekbar:compileDebugAidl
> Task :app:compileDebugAidl
> Transform FORTSDKv1.4.3.aar (project :FORTSDKv1.4.3) with ExtractAarTransform
> Transform 282a617b37c05600dd284dbe60659b77 with AarTransform
> Task :library:packageDebugRenderscript NO-SOURCE
> Task :rangeseekbar:packageDebugRenderscript NO-SOURCE
> Task :app:compileDebugRenderscript
> Task :app:checkDebugManifest
> Task :app:generateDebugBuildConfig
> Task :app:prepareLintJar
> Transform FORTSDKv1.4.3.aar (project :FORTSDKv1.4.3) with ExtractAarTransform
> Task :app:mainApkListPersistenceDebug
> Transform FORTSDKv1.4.3.aar (project :FORTSDKv1.4.3) with ExtractAarTransform
> Transform FORTSDKv1.4.3.aar (project :FORTSDKv1.4.3) with ExtractAarTransform
> Transform 282a617b37c05600dd284dbe60659b77 with LibrarySymbolTableTransform
> Task :app:mergeDebugShaders
> Transform 282a617b37c05600dd284dbe60659b77 with AarTransform
> Transform 282a617b37c05600dd284dbe60659b77 with AarTransform
> Task :app:compileDebugShaders
> Task :app:generateDebugAssets
> Task :library:mergeDebugShaders
> Task :library:compileDebugShaders
> Task :library:generateDebugAssets
> Task :library:packageDebugAssets
> Task :rangeseekbar:mergeDebugShaders
> Task :rangeseekbar:compileDebugShaders
> Task :rangeseekbar:generateDebugAssets
> Task :rangeseekbar:packageDebugAssets
> Task :app:mergeDebugAssets
> Task :app:processDebugGoogleServices
Parsing json file: /home/akumanotatsujin/AndroidStudioProjects/Android-Labayh/app/google-services.json
> Task :app:createDebugCompatibleScreenManifests
> Task :app:processDebugManifest
> Task :app:fabricGenerateResourcesDebug
> Task :app:generateDebugResValues
> Task :app:generateDebugResources
> Task :library:compileDebugRenderscript
> Task :library:generateDebugResValues
> Task :library:generateDebugResources
> Task :library:packageDebugResources
> Task :rangeseekbar:compileDebugRenderscript
> Task :rangeseekbar:generateDebugResValues
> Task :rangeseekbar:generateDebugResources
> Task :rangeseekbar:packageDebugResources
> Task :app:mergeDebugResources
> Task :app:splitsDiscoveryTaskDebug
> Task :library:generateDebugBuildConfig
> Task :library:prepareLintJar
> Task :library:javaPreCompileDebug
> Task :library:processDebugJavaRes NO-SOURCE
> Task :rangeseekbar:generateDebugBuildConfig
> Task :rangeseekbar:prepareLintJar
> Task :rangeseekbar:javaPreCompileDebug
> Task :rangeseekbar:processDebugJavaRes NO-SOURCE
> Task :app:compileDebugNdk NO-SOURCE
> Transform FORTSDKv1.4.3.aar (project :FORTSDKv1.4.3) with ExtractAarTransform
> Task :rangeseekbar:platformAttrExtractor
> Task :rangeseekbar:generateDebugRFile
> Task :rangeseekbar:generateDebugSources
> Task :rangeseekbar:compileDebugJavaWithJavac
Note: /home/akumanotatsujin/AndroidStudioProjects/Android-Labayh/rangeseekbar/src/main/java/org/florescu/android/rangeseekbar/RangeSeekBar.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /home/akumanotatsujin/AndroidStudioProjects/Android-Labayh/rangeseekbar/src/main/java/org/florescu/android/rangeseekbar/RangeSeekBar.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
> Task :rangeseekbar:transformClassesAndResourcesWithPrepareIntermediateJarsForDebug
> Transform 282a617b37c05600dd284dbe60659b77 with AarTransform
> Task :library:platformAttrExtractor
> Task :library:generateDebugRFile
warning: string 'b20hg' has no default translation.
> Task :app:processDebugResources
> Task :app:generateDebugSources
> Task :library:generateDebugSources
> Task :library:compileDebugJavaWithJavac
Note: /home/akumanotatsujin/AndroidStudioProjects/Android-Labayh/library/src/main/java/com/github/gfranks/collapsible/calendar/widget/DayView.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /home/akumanotatsujin/AndroidStudioProjects/Android-Labayh/library/src/main/java/com/github/gfranks/collapsible/calendar/CollapsibleCalendarView.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
> Task :library:transformClassesAndResourcesWithPrepareIntermediateJarsForDebug
> Task :app:javaPreCompileDebug
> Task :app:compileDebugJavaWithJavac FAILED
/home/akumanotatsujin/AndroidStudioProjects/Android-Labayh/app/src/main/java/com/labayh/customer/activity/PaymentActivity.java:41: error: package com.payfort.start does not exist
import com.payfort.start.Card;
^
/home/akumanotatsujin/AndroidStudioProjects/Android-Labayh/app/src/main/java/com/labayh/customer/activity/PaymentActivity.java:42: error: package com.payfort.start does not exist
import com.payfort.start.Start;
^
/home/akumanotatsujin/AndroidStudioProjects/Android-Labayh/app/src/main/java/com/labayh/customer/activity/PaymentActivity.java:43: error: package com.payfort.start does not exist
import com.payfort.start.Token;
^
/home/akumanotatsujin/AndroidStudioProjects/Android-Labayh/app/src/main/java/com/labayh/customer/activity/PaymentActivity.java:44: error: package com.payfort.start does not exist
import com.payfort.start.TokenCallback;
^
/home/akumanotatsujin/AndroidStudioProjects/Android-Labayh/app/src/main/java/com/labayh/customer/activity/PaymentActivity.java:45: error: package com.payfort.start.error does not exist
import com.payfort.start.error.CardVerificationException;
^
/home/akumanotatsujin/AndroidStudioProjects/Android-Labayh/app/src/main/java/com/labayh/customer/activity/PaymentActivity.java:46: error: package com.payfort.start.error does not exist
import com.payfort.start.error.StartApiException;
^
/home/akumanotatsujin/AndroidStudioProjects/Android-Labayh/app/src/main/java/com/labayh/customer/activity/PaymentActivity.java:70: error: cannot find symbol
public class PaymentActivity extends AppCompatActivity implements TokenCallback {
^
symbol: class TokenCallback
/home/akumanotatsujin/AndroidStudioProjects/Android-Labayh/app/src/main/java/com/labayh/customer/activity/PaymentActivity.java:83: error: cannot find symbol
private Start start = new Start(API_OPEN_KEY);
^
symbol: class Start
location: class PaymentActivity
/home/akumanotatsujin/AndroidStudioProjects/Android-Labayh/app/src/main/java/com/labayh/customer/activity/PaymentActivity.java:335: error: cannot find symbol
public void checkLastFour(View view, Card card) throws CardVerificationException {
^
symbol: class Card
location: class PaymentActivity
/home/akumanotatsujin/AndroidStudioProjects/Android-Labayh/app/src/main/java/com/labayh/customer/activity/PaymentActivity.java:335: error: cannot find symbol
public void checkLastFour(View view, Card card) throws CardVerificationException {
^
symbol: class CardVerificationException
location: class PaymentActivity
/home/akumanotatsujin/AndroidStudioProjects/Android-Labayh/app/src/main/java/com/labayh/customer/activity/PaymentActivity.java:354: error: cannot find symbol
public void createToken(View view, Card card) {
^
symbol: class Card
location: class PaymentActivity
/home/akumanotatsujin/AndroidStudioProjects/Android-Labayh/app/src/main/java/com/labayh/customer/activity/PaymentActivity.java:532: error: cannot find symbol
public void createCard(final Card crd) {
^
symbol: class Card
location: class PaymentActivity
/home/akumanotatsujin/AndroidStudioProjects/Android-Labayh/app/src/main/java/com/labayh/customer/activity/PaymentActivity.java:678: error: cannot find symbol
private Card unbindCard() throws CardVerificationException {
^
symbol: class Card
location: class PaymentActivity
/home/akumanotatsujin/AndroidStudioProjects/Android-Labayh/app/src/main/java/com/labayh/customer/activity/PaymentActivity.java:678: error: cannot find symbol
private Card unbindCard() throws CardVerificationException {
^
symbol: class CardVerificationException
location: class PaymentActivity
/home/akumanotatsujin/AndroidStudioProjects/Android-Labayh/app/src/main/java/com/labayh/customer/activity/PaymentActivity.java:739: error: package Card does not exist
private void setErrors(EnumSet<Card.Field> errors) {
^
/home/akumanotatsujin/AndroidStudioProjects/Android-Labayh/app/src/main/java/com/labayh/customer/activity/PaymentActivity.java:760: error: cannot find symbol
public void onSuccess(Token token) {
^
symbol: class Token
location: class PaymentActivity
/home/akumanotatsujin/AndroidStudioProjects/Android-Labayh/app/src/main/java/com/labayh/customer/activity/PaymentActivity.java:768: error: cannot find symbol
public actionablevoid onError(StartApiException e) {
^
symbol: class StartApiException
location: class PaymentActivity
17 errors
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 42s
56 actionable tasks: 55 executed, 1 up-to-date
最佳答案
当我按照 @IzabelaOrlowska 建议使用命令 gradlew clean assembleDebug 时,我可以检测到问题
感谢您的帮助,我希望其他人在阅读此答案后会发现修复此构建错误会更容易一些。
在我将 FORTSDK 更改为新版本后,他们对服务的集成进行了很大的更改,因此我最终在代码的 java 部分中得到了许多未定义的方法和类,但我一开始没有检查它们,因为我没有除了他们改变这么多事情
<小时/>如 gradlew clean assembleDebug 的最后输出所述,即::
> Task :app:compileDebugJavaWithJavac FAILED
/home/akumanotatsujin/AndroidStudioProjects/Android-Labayh/app/src/main/java/com/labayh/customer/activity/PaymentActivity.java:41: error: package com.payfort.start does not exist
import com.payfort.start.Card;
^
/home/akumanotatsujin/AndroidStudioProjects/Android-Labayh/app/src/main/java/com/labayh/customer/activity/PaymentActivity.java:42: error: package com.payfort.start does not exist
import com.payfort.start.Start;
^
/home/akumanotatsujin/AndroidStudioProjects/Android-Labayh/app/src/main/java/com/labayh/customer/activity/PaymentActivity.java:43: error: package com.payfort.start does not exist
import com.payfort.start.Token;
^
/home/akumanotatsujin/AndroidStudioProjects/Android-Labayh/app/src/main/java/com/labayh/customer/activity/PaymentActivity.java:44: error: package com.payfort.start does not exist
import com.payfort.start.TokenCallback;
^
/home/akumanotatsujin/AndroidStudioProjects/Android-Labayh/app/src/main/java/com/labayh/customer/activity/PaymentActivity.java:45: error: package com.payfort.start.error does not exist
import com.payfort.start.error.CardVerificationException;
^
/home/akumanotatsujin/AndroidStudioProjects/Android-Labayh/app/src/main/java/com/labayh/customer/activity/PaymentActivity.java:46: error: package com.payfort.start.error does not exist
import com.payfort.start.error.StartApiException;
^
/home/akumanotatsujin/AndroidStudioProjects/Android-Labayh/app/src/main/java/com/labayh/customer/activity/PaymentActivity.java:70: error: cannot find symbol
public class PaymentActivity extends AppCompatActivity implements TokenCallback {
^
symbol: class TokenCallback
/home/akumanotatsujin/AndroidStudioProjects/Android-Labayh/app/src/main/java/com/labayh/customer/activity/PaymentActivity.java:83: error: cannot find symbol
private Start start = new Start(API_OPEN_KEY);
^
symbol: class Start
location: class PaymentActivity
/home/akumanotatsujin/AndroidStudioProjects/Android-Labayh/app/src/main/java/com/labayh/customer/activity/PaymentActivity.java:335: error: cannot find symbol
public void checkLastFour(View view, Card card) throws CardVerificationException {
^
symbol: class Card
location: class PaymentActivity
/home/akumanotatsujin/AndroidStudioProjects/Android-Labayh/app/src/main/java/com/labayh/customer/activity/PaymentActivity.java:335: error: cannot find symbol
public void checkLastFour(View view, Card card) throws CardVerificationException {
^
symbol: class CardVerificationException
location: class PaymentActivity
/home/akumanotatsujin/AndroidStudioProjects/Android-Labayh/app/src/main/java/com/labayh/customer/activity/PaymentActivity.java:354: error: cannot find symbol
public void createToken(View view, Card card) {
^
symbol: class Card
location: class PaymentActivity
/home/akumanotatsujin/AndroidStudioProjects/Android-Labayh/app/src/main/java/com/labayh/customer/activity/PaymentActivity.java:532: error: cannot find symbol
public void createCard(final Card crd) {
^
symbol: class Card
location: class PaymentActivity
/home/akumanotatsujin/AndroidStudioProjects/Android-Labayh/app/src/main/java/com/labayh/customer/activity/PaymentActivity.java:678: error: cannot find symbol
private Card unbindCard() throws CardVerificationException {
^
symbol: class Card
location: class PaymentActivity
/home/akumanotatsujin/AndroidStudioProjects/Android-Labayh/app/src/main/java/com/labayh/customer/activity/PaymentActivity.java:678: error: cannot find symbol
private Card unbindCard() throws CardVerificationException {
^
symbol: class CardVerificationException
location: class PaymentActivity
/home/akumanotatsujin/AndroidStudioProjects/Android-Labayh/app/src/main/java/com/labayh/customer/activity/PaymentActivity.java:739: error: package Card does not exist
private void setErrors(EnumSet<Card.Field> errors) {
^
/home/akumanotatsujin/AndroidStudioProjects/Android-Labayh/app/src/main/java/com/labayh/customer/activity/PaymentActivity.java:760: error: cannot find symbol
public void onSuccess(Token token) {
^
symbol: class Token
location: class PaymentActivity
/home/akumanotatsujin/AndroidStudioProjects/Android-Labayh/app/src/main/java/com/labayh/customer/activity/PaymentActivity.java:768: error: cannot find symbol
public actionablevoid onError(StartApiException e) {
^
symbol: class StartApiException
location: class PaymentActivity
17 errors
所以他们基本上改变了我获取 token 的方式,因此所有旧类最终都未定义......
这就是我错误的原因......
关于java - 任务“:app:compileDebugJavaWithJavac”执行失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52185479/
如果我调用一个应用程序两次或多次,但只有一个实例应该运行(这是所需的),我就会遇到一个问题。 首先一些(可能必要的)背景信息: 使用 MAC OS X El Capitan (10.11.6) 我有一
覆盖文件。覆盖 Apps 脚本文件。 这是不是 创建一个新的 Apps 脚本文件的问题。那对我没有帮助。我需要更新 现有的 Apps 脚本文件。这个问题类似于创建一个新文件,但不是同一个问题。更新的语
我是 Apps 脚本的新手,正在尝试了解使用另一个帐户在一个帐户中运行/触发脚本的基础知识。需要注意的是:我想在访问脚本的用户而不是拥有脚本的用户的情况下运行脚本——以便将运行时间分配给访问的用户。
我是 Apps 脚本的新手,正在尝试了解使用另一个帐户在一个帐户中运行/触发脚本的基础知识。需要注意的是:我想在访问脚本的用户而不是拥有脚本的用户的情况下运行脚本——以便将运行时间分配给访问的用户。
我有一个安卓应用程序。我想为我的应用程序实现 App Indexing。 我已经点击了 Google 开发者链接 https://developers.google.com/app-indexing/
有什么区别: import App from '../components/App'; 和 var App = require('../components/App'); 两者都用于获取组件,但它没有
问题: 我有一个使用 requireJS 的简单演示应用程序。当require.min.js脚本加载时,它尝试加载入口点脚本。但是,问题是,而不是 localhost:8090/js/app.js它尝
我正在构建一个 React Native 应用程序,目前正在尝试通过 Firebase Auth 实现一个身份验证注册系统。我已经按照指南/网站上的文档来设置 Firebase 配置文件。我运行该应用
因此 app.yaml 文件的一部分如下所示(至少在 GAE 教程中): handlers: - url: /.* script: main.app 但是,我也看到它看起来像这样: handler
我是Android App开发的新手。当我尝试创建一个新项目Android Project时,弹出以下消息: Information:Gradle tasks [:app:generateDebugS
我正在编写一个应用程序脚本(用于处理电子邮件、任务和日历事件)并希望将其部署为网络应用程序。 该应用程序将在运行它的用户的上下文中运行。该应用程序将被超过 10k+ 的用户使用,甚至可能更多。 在将其
我需要实现一个用于登录网站的 Google Apps 脚本应用,然后如果该网站上的身份验证过程成功,用户应该会在 google 脚本边栏中收到一条消息。 例如:用户输入他的邮箱和密码,然后他点击登录按
我正在开发一个跨平台应用程序,它将在 Google Play 商店和 App Store 上发布。 Google Play 政策以及 App Store 政策规定,您不能使用其他支付系统购买将在应用程
我的 AppEngine 应用程序在我的台式机上的开发服务器上运行良好,但我无法在 Google 服务器上获取版本以关注我的源代码更新。 这是最有说服力的例证。我的 app.yaml 文件开始于: a
我像这样将所有内容重定向到我的 app.yaml 中的单个文件 - url: /.* script: frontcontroller.application 但我仍然必须使用 robots.txt
我想构建一个基于 App Engine 的网络应用程序,并使用 Google 帐户对用户进行身份验证。我需要来自多个域的用户可以登录。从我读到的内容看来,仅使用 Google Accounts API
我无法将我的域指向我使用 Google App Engine 托管的网站。这是背景……注意区分“google apps”(域托管、电子邮件等)和“google app engine”(网站框架)的概念
是否可以通过 App Engine 上内置的 OpenId 实现单点登录?我一直在尝试集成一个 Marketplace 应用程序,并让用户在来自 Google Apps(管理面板或通用导航)时登录。我
有没有办法从 azure-cli 为 Web 应用或函数应用创建和/或激活 App Insights? 现在浏览文档。 最佳答案 我之前也考虑过你的问题。要创建应用程序洞察力,az resource
我在以 Angular 创建新项目时遇到问题。当我运行 ng new myapp 命令时,我得到以下命令 ng 新问候语 Error: Path "/app/app.module.ts" does n
我是一名优秀的程序员,十分优秀!