Comments (5)
Unable to resolve applicationId
from stringfog.
import com.github.megatronking.stringfog.plugin.StringFogMode
plugins {
id 'com.android.application'
id 'stringfog'
}
android {
namespace 'com.hades.air'
compileSdk 33
defaultConfig {
applicationId "com.hades.air"
minSdk 24
targetSdk 33
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildFeatures {
buildConfig = true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
}
stringfog {
// 必要:加解密库的实现类路径,需和上面配置的加解密算法库一致。
implementation 'com.github.megatronking.stringfog.xor.StringFogImpl'
// 可选:加密开关,默认开启。
enable true
// 可选:指定需加密的代码包路径,可配置多个,未指定将默认全部加密。
//fogPackages = ['com.xxx.xxx']
// 可选(3.0版本新增):指定密钥生成器,默认使用长度8的随机密钥(每个字符串均有不同随机密钥),
// 也可以指定一个固定的密钥:HardCodeKeyGenerator("This is a key")
//kg new SatanKeyGenerator()
// 可选(4.0版本新增):用于控制字符串加密后在字节码中的存在形式, 默认为base64,
// 也可以使用text或者bytes
mode StringFogMode.base64
}
dependencies {
implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'com.google.android.material:material:1.8.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
implementation 'com.github.megatronking.stringfog:xor:5.0.0'
}
from stringfog.
AndroidManifest.xml里面把package加上
from stringfog.
环境
jdk 17
AS 2022.2.1 Patch 2 222.4459.24.2221.10121639 2023年5.12构建
Win11 Build253375
项目是新建的,删掉StringFog就正常编译,添加StringFog后提示报错Unable to resolve applicationId
from stringfog.
AndroidManifest.xml里面把package加上
谢谢大哥
from stringfog.
Related Issues (20)
- How to decrypt?
- java 17 compileSdk 34 报错 HOT 2
- AGP7.1.3,按照主页的文档配置好,sync后报错如下
- 注解的字符串不会被加密
- build.gradle.kts DSL 怎么接入 HOT 2
- 5.1.0不能同时对app module和lib module同时加密
- 空字符加密
- 4.0.1+Gradle7.2.2 无法生成加密后的APK
- (PermittedSubclasses requires ASM9) - java 17 compileSdk 34 kotlin 1.9.20 agp 8.2.0, gradle-8.5
- 能否添加一个package的黑名单的功能
- kotlin 编码中,拼接的字符串没法进行加密
- 编译release 包报错,gradle版本7.6
- 导入插件后报错 Caused by: groovy.lang.MissingMethodException: No signature of method: build_26t8m1aom9cwu9lbzmfu05547.stringfog() HOT 4
- 在有sealed class密封类的module中使用时报错 PermittedSubclasses requires ASM9,编译都不能通过 。 HOT 1
- 不会用,新版Android studio的根目录build.gradle就三行代码 HOT 4
- 字符创混淆跟代码混淆有冲突
- 大佬能把解密的函数写到字符串对应的类中吗?
- 使用最新版Android Studio和gradle 8.7在Kotlin DSL如何添加classpath? HOT 5
- Gradle 8.2 + StringFog plug 5.2 + stringfog:xor:5.0.0 , module 无法加密
- 最近我有一些海外包疑似加了这个库之后,频繁被谷歌封号,大家有碰到吗 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stringfog.